node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
17,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
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
],
[
52,
14
],
[
52,
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
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
26,
32
],
[
17,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
39,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
45,
45
],
[
45,
46
],
[
45,
47
],
[
45,
48
],
[
15,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
]
| [
"import java.util.*;\nimport java.util.function.*;\nimport java.lang.*;\nimport java.io.*;\n\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n \n System.err.printf(\"a = %d\\n\", a);\n System.out.println(a + a*a + a*a*a);\n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.util.function.*;",
"function.*",
"java.util",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n \n System.err.printf(\"a = %d\\n\", a);\n System.out.println(a + a*a + a*a*a);\n \n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n \n System.err.printf(\"a = %d\\n\", a);\n System.out.println(a + a*a + a*a*a);\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n \n System.err.printf(\"a = %d\\n\", a);\n System.out.println(a + a*a + a*a*a);\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.err.printf(\"a = %d\\n\", a)",
"System.err.printf",
"System.err",
"System",
"System.err",
"\"a = %d\\n\"",
"a",
"System.out.println(a + a*a + a*a*a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a + a*a + a*a*a",
"a + a*a + a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n \n System.err.printf(\"a = %d\\n\", a);\n System.out.println(a + a*a + a*a*a);\n \n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n \n System.err.printf(\"a = %d\\n\", a);\n System.out.println(a + a*a + a*a*a);\n \n }\n}",
"Main"
]
| import java.util.*;
import java.util.function.*;
import java.lang.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
System.err.printf("a = %d\n", a);
System.out.println(a + a*a + a*a*a);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
88,
5
],
[
88,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
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
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
53,
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
],
[
72,
74
],
[
75,
75
],
[
75,
76
],
[
75,
77
],
[
75,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
6,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int input = Integer.parseInt(sc.nextLine());\n\t\tint result = 0;\n\t\tfor (int i=0; i<1; i++) {\n\t\t\tresult = 1 * input;\n\t\t\tfor (int j=0; j<1; j++) {\n\t\t\t\tresult += input * input;\n\t\t\t\tfor (int k=0; k<1; k++) {\n\t\t\t\t\tresult += input * input * input;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t System.out.println(result);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int input = Integer.parseInt(sc.nextLine());\n\t\tint result = 0;\n\t\tfor (int i=0; i<1; i++) {\n\t\t\tresult = 1 * input;\n\t\t\tfor (int j=0; j<1; j++) {\n\t\t\t\tresult += input * input;\n\t\t\t\tfor (int k=0; k<1; k++) {\n\t\t\t\t\tresult += input * input * input;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t System.out.println(result);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int input = Integer.parseInt(sc.nextLine());\n\t\tint result = 0;\n\t\tfor (int i=0; i<1; i++) {\n\t\t\tresult = 1 * input;\n\t\t\tfor (int j=0; j<1; j++) {\n\t\t\t\tresult += input * input;\n\t\t\t\tfor (int k=0; k<1; k++) {\n\t\t\t\t\tresult += input * input * input;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t System.out.println(result);\n\t}",
"main",
"{\n\t Scanner sc = new Scanner(System.in);\n\t int input = Integer.parseInt(sc.nextLine());\n\t\tint result = 0;\n\t\tfor (int i=0; i<1; i++) {\n\t\t\tresult = 1 * input;\n\t\t\tfor (int j=0; j<1; j++) {\n\t\t\t\tresult += input * input;\n\t\t\t\tfor (int k=0; k<1; k++) {\n\t\t\t\t\tresult += input * input * input;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t System.out.println(result);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int input = Integer.parseInt(sc.nextLine());",
"input",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int result = 0;",
"result",
"0",
"for (int i=0; i<1; i++) {\n\t\t\tresult = 1 * input;\n\t\t\tfor (int j=0; j<1; j++) {\n\t\t\t\tresult += input * input;\n\t\t\t\tfor (int k=0; k<1; k++) {\n\t\t\t\t\tresult += input * input * input;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<1",
"i",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tresult = 1 * input;\n\t\t\tfor (int j=0; j<1; j++) {\n\t\t\t\tresult += input * input;\n\t\t\t\tfor (int k=0; k<1; k++) {\n\t\t\t\t\tresult += input * input * input;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tresult = 1 * input;\n\t\t\tfor (int j=0; j<1; j++) {\n\t\t\t\tresult += input * input;\n\t\t\t\tfor (int k=0; k<1; k++) {\n\t\t\t\t\tresult += input * input * input;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"result = 1 * input",
"result",
"1 * input",
"1",
"input",
"for (int j=0; j<1; j++) {\n\t\t\t\tresult += input * input;\n\t\t\t\tfor (int k=0; k<1; k++) {\n\t\t\t\t\tresult += input * input * input;\n\t\t\t\t}\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<1",
"j",
"1",
"j++",
"j++",
"j",
"{\n\t\t\t\tresult += input * input;\n\t\t\t\tfor (int k=0; k<1; k++) {\n\t\t\t\t\tresult += input * input * input;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tresult += input * input;\n\t\t\t\tfor (int k=0; k<1; k++) {\n\t\t\t\t\tresult += input * input * input;\n\t\t\t\t}\n\t\t\t}",
"result += input * input",
"result",
"input * input",
"input",
"input",
"for (int k=0; k<1; k++) {\n\t\t\t\t\tresult += input * input * input;\n\t\t\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<1",
"k",
"1",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tresult += input * input * input;\n\t\t\t\t}",
"{\n\t\t\t\t\tresult += input * input * input;\n\t\t\t\t}",
"result += input * input * input",
"result",
"input * input * input",
"input * input * input",
"input",
"input",
"input",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int input = Integer.parseInt(sc.nextLine());\n\t\tint result = 0;\n\t\tfor (int i=0; i<1; i++) {\n\t\t\tresult = 1 * input;\n\t\t\tfor (int j=0; j<1; j++) {\n\t\t\t\tresult += input * input;\n\t\t\t\tfor (int k=0; k<1; k++) {\n\t\t\t\t\tresult += input * input * input;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t System.out.println(result);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int input = Integer.parseInt(sc.nextLine());\n\t\tint result = 0;\n\t\tfor (int i=0; i<1; i++) {\n\t\t\tresult = 1 * input;\n\t\t\tfor (int j=0; j<1; j++) {\n\t\t\t\tresult += input * input;\n\t\t\t\tfor (int k=0; k<1; k++) {\n\t\t\t\t\tresult += input * input * input;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t System.out.println(result);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int input = Integer.parseInt(sc.nextLine());
int result = 0;
for (int i=0; i<1; i++) {
result = 1 * input;
for (int j=0; j<1; j++) {
result += input * input;
for (int k=0; k<1; k++) {
result += input * input * input;
}
}
}
System.out.println(result);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
17,
0,
13,
20,
0,
13,
20,
4,
13,
41,
13,
4,
13,
4,
18,
13,
4,
18,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
111,
8
],
[
111,
9
],
[
9,
10
],
[
111,
11
],
[
11,
12
],
[
111,
13
],
[
13,
14
],
[
111,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
17,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
17,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
40,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
46,
46
],
[
46,
47
],
[
46,
48
],
[
46,
49
],
[
17,
50
],
[
50,
51
],
[
51,
52
],
[
17,
53
],
[
53,
54
],
[
54,
55
],
[
15,
56
],
[
56,
57
],
[
111,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
111,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
72,
73
],
[
111,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
82,
83
],
[
111,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
92,
93
],
[
111,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
111,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
]
]
| [
"//package atcoder.beginner_172;\n\nimport java.io.*;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n public static void main (String[] args) throws Exception {\n\n String s = \"2\";\n\n// br = new BufferedReader(new StringReader(s));\n br = new BufferedReader(new InputStreamReader(System.in));\n bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n rl(); int a=nin();\n\n\n bw.write(Integer.toString(a+a*a+a*a*a));\n bw.newLine();\n bw.flush();\n\n }\n\n static BufferedReader br;\n static BufferedWriter bw;\n static StringTokenizer st;\n static void rl() throws Exception{\n st = new StringTokenizer(br.readLine());\n }\n static long nlo(){\n return Long.parseLong(st.nextToken());\n }\n static int nin(){\n return Integer.parseInt(st.nextToken());\n }\n /*private static void te(){\n }*/\n static double ndo(){\n return Double.parseDouble(st.nextToken());\n }\n static char[] nca(){\n return st.nextToken().toCharArray();\n }\n static String nstr(){\n return st.nextToken();\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 Exception {\n\n String s = \"2\";\n\n// br = new BufferedReader(new StringReader(s));\n br = new BufferedReader(new InputStreamReader(System.in));\n bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n rl(); int a=nin();\n\n\n bw.write(Integer.toString(a+a*a+a*a*a));\n bw.newLine();\n bw.flush();\n\n }\n\n static BufferedReader br;\n static BufferedWriter bw;\n static StringTokenizer st;\n static void rl() throws Exception{\n st = new StringTokenizer(br.readLine());\n }\n static long nlo(){\n return Long.parseLong(st.nextToken());\n }\n static int nin(){\n return Integer.parseInt(st.nextToken());\n }\n /*private static void te(){\n }*/\n static double ndo(){\n return Double.parseDouble(st.nextToken());\n }\n static char[] nca(){\n return st.nextToken().toCharArray();\n }\n static String nstr(){\n return st.nextToken();\n }\n}",
"Main",
"static BufferedReader br;",
"br",
"static BufferedWriter bw;",
"bw",
"static StringTokenizer st;",
"st",
"public static void main (String[] args) throws Exception {\n\n String s = \"2\";\n\n// br = new BufferedReader(new StringReader(s));\n br = new BufferedReader(new InputStreamReader(System.in));\n bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n rl(); int a=nin();\n\n\n bw.write(Integer.toString(a+a*a+a*a*a));\n bw.newLine();\n bw.flush();\n\n }",
"main",
"{\n\n String s = \"2\";\n\n// br = new BufferedReader(new StringReader(s));\n br = new BufferedReader(new InputStreamReader(System.in));\n bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n rl(); int a=nin();\n\n\n bw.write(Integer.toString(a+a*a+a*a*a));\n bw.newLine();\n bw.flush();\n\n }",
"String s = \"2\";",
"s",
"\"2\"",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"bw = new BufferedWriter(new OutputStreamWriter(System.out))",
"bw",
"new BufferedWriter(new OutputStreamWriter(System.out))",
"rl()",
"rl",
"int a=nin();",
"a",
"nin()",
"nin",
"bw.write(Integer.toString(a+a*a+a*a*a))",
"bw.write",
"bw",
"Integer.toString(a+a*a+a*a*a)",
"Integer.toString",
"Integer",
"a+a*a+a*a*a",
"a+a*a+a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"bw.newLine()",
"bw.newLine",
"bw",
"bw.flush()",
"bw.flush",
"bw",
"String[] args",
"args",
"static void rl() throws Exception{\n st = new StringTokenizer(br.readLine());\n }",
"rl",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"static long nlo(){\n return Long.parseLong(st.nextToken());\n }",
"nlo",
"{\n return Long.parseLong(st.nextToken());\n }",
"return Long.parseLong(st.nextToken());",
"Long.parseLong(st.nextToken())",
"Long.parseLong",
"Long",
"st.nextToken()",
"st.nextToken",
"st",
"static int nin(){\n return Integer.parseInt(st.nextToken());\n }",
"nin",
"{\n return Integer.parseInt(st.nextToken());\n }",
"return Integer.parseInt(st.nextToken());",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"/*private static void te(){\n }*/\n static double ndo(){\n return Double.parseDouble(st.nextToken());\n }",
"ndo",
"{\n return Double.parseDouble(st.nextToken());\n }",
"return Double.parseDouble(st.nextToken());",
"Double.parseDouble(st.nextToken())",
"Double.parseDouble",
"Double",
"st.nextToken()",
"st.nextToken",
"st",
"static char[] nca(){\n return st.nextToken().toCharArray();\n }",
"nca",
"{\n return st.nextToken().toCharArray();\n }",
"return st.nextToken().toCharArray();",
"st.nextToken().toCharArray()",
"st.nextToken().toCharArray",
"st.nextToken()",
"st.nextToken",
"st",
"static String nstr(){\n return st.nextToken();\n }",
"nstr",
"{\n return st.nextToken();\n }",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public class Main {\n\n public static void main (String[] args) throws Exception {\n\n String s = \"2\";\n\n// br = new BufferedReader(new StringReader(s));\n br = new BufferedReader(new InputStreamReader(System.in));\n bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n rl(); int a=nin();\n\n\n bw.write(Integer.toString(a+a*a+a*a*a));\n bw.newLine();\n bw.flush();\n\n }\n\n static BufferedReader br;\n static BufferedWriter bw;\n static StringTokenizer st;\n static void rl() throws Exception{\n st = new StringTokenizer(br.readLine());\n }\n static long nlo(){\n return Long.parseLong(st.nextToken());\n }\n static int nin(){\n return Integer.parseInt(st.nextToken());\n }\n /*private static void te(){\n }*/\n static double ndo(){\n return Double.parseDouble(st.nextToken());\n }\n static char[] nca(){\n return st.nextToken().toCharArray();\n }\n static String nstr(){\n return st.nextToken();\n }\n}",
"public class Main {\n\n public static void main (String[] args) throws Exception {\n\n String s = \"2\";\n\n// br = new BufferedReader(new StringReader(s));\n br = new BufferedReader(new InputStreamReader(System.in));\n bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\n rl(); int a=nin();\n\n\n bw.write(Integer.toString(a+a*a+a*a*a));\n bw.newLine();\n bw.flush();\n\n }\n\n static BufferedReader br;\n static BufferedWriter bw;\n static StringTokenizer st;\n static void rl() throws Exception{\n st = new StringTokenizer(br.readLine());\n }\n static long nlo(){\n return Long.parseLong(st.nextToken());\n }\n static int nin(){\n return Integer.parseInt(st.nextToken());\n }\n /*private static void te(){\n }*/\n static double ndo(){\n return Double.parseDouble(st.nextToken());\n }\n static char[] nca(){\n return st.nextToken().toCharArray();\n }\n static String nstr(){\n return st.nextToken();\n }\n}",
"Main"
]
| //package atcoder.beginner_172;
import java.io.*;
import java.util.StringTokenizer;
public class Main {
public static void main (String[] args) throws Exception {
String s = "2";
// br = new BufferedReader(new StringReader(s));
br = new BufferedReader(new InputStreamReader(System.in));
bw = new BufferedWriter(new OutputStreamWriter(System.out));
rl(); int a=nin();
bw.write(Integer.toString(a+a*a+a*a*a));
bw.newLine();
bw.flush();
}
static BufferedReader br;
static BufferedWriter bw;
static StringTokenizer st;
static void rl() throws Exception{
st = new StringTokenizer(br.readLine());
}
static long nlo(){
return Long.parseLong(st.nextToken());
}
static int nin(){
return Integer.parseInt(st.nextToken());
}
/*private static void te(){
}*/
static double ndo(){
return Double.parseDouble(st.nextToken());
}
static char[] nca(){
return st.nextToken().toCharArray();
}
static String nstr(){
return st.nextToken();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
39,
5
],
[
39,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
20,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
26,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
6,
36
],
[
36,
37
],
[
0,
38
],
[
38,
39
],
[
38,
40
]
]
| [
"import java.util.Scanner;\npublic class Main{\npublic static void main(String args[]){\nScanner sc=new Scanner(System.in);\n long n=sc.nextInt();\n long sum=n+n*n+n*n*n;\n System.out.println(sum);\n}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\npublic static void main(String args[]){\nScanner sc=new Scanner(System.in);\n long n=sc.nextInt();\n long sum=n+n*n+n*n*n;\n System.out.println(sum);\n}\n}",
"Main",
"public static void main(String args[]){\nScanner sc=new Scanner(System.in);\n long n=sc.nextInt();\n long sum=n+n*n+n*n*n;\n System.out.println(sum);\n}",
"main",
"{\nScanner sc=new Scanner(System.in);\n long n=sc.nextInt();\n long sum=n+n*n+n*n*n;\n System.out.println(sum);\n}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sum=n+n*n+n*n*n;",
"sum",
"n+n*n+n*n*n",
"n+n*n+n*n*n",
"n",
"n*n",
"n",
"n",
"n*n*n",
"n*n*n",
"n",
"n",
"n",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String args[]",
"args",
"public class Main{\npublic static void main(String args[]){\nScanner sc=new Scanner(System.in);\n long n=sc.nextInt();\n long sum=n+n*n+n*n*n;\n System.out.println(sum);\n}\n}",
"public class Main{\npublic static void main(String args[]){\nScanner sc=new Scanner(System.in);\n long n=sc.nextInt();\n long sum=n+n*n+n*n*n;\n System.out.println(sum);\n}\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String args[]){
Scanner sc=new Scanner(System.in);
long n=sc.nextInt();
long sum=n+n*n+n*n*n;
System.out.println(sum);
}
} |
[
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,
41,
13,
41,
13,
12,
13,
30,
41,
13,
4,
13,
4,
18,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
12,
13,
30,
29,
4,
13,
4,
13,
12,
13,
30,
29,
4,
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,
38,
5,
13,
30,
4,
18,
13,
4,
13,
17,
30,
0,
13,
20,
0,
13,
20,
4,
13,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
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
],
[
121,
26
],
[
121,
27
],
[
27,
28
],
[
121,
29
],
[
29,
30
],
[
121,
31
],
[
31,
32
],
[
121,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
35,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
44,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
50,
50
],
[
50,
51
],
[
50,
52
],
[
50,
53
],
[
121,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
121,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
121,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
73,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
72,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
121,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
93,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
107,
109
],
[
103,
110
],
[
110,
111
],
[
103,
112
],
[
112,
113
],
[
113,
114
],
[
103,
115
],
[
115,
116
],
[
116,
117
],
[
90,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
]
| [
"import static java.lang.Integer.*;\nimport static java.lang.Long.*;\nimport static java.lang.System.*;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n static void solve() throws Exception {\n int a = scanInt();\n out.print(a+ a*a + a*a*a);\n }\n\n static int scanInt() throws IOException {\n return parseInt(scanString());\n }\n\n static long scanLong() throws IOException {\n return parseLong(scanString());\n }\n\n static String scanString() throws IOException {\n while (tok == null || !tok.hasMoreTokens()) {\n tok = new StringTokenizer(in.readLine());\n }\n return tok.nextToken();\n }\n\n static BufferedReader in;\n static PrintWriter out;\n static StringTokenizer tok;\n\n public static void main(String[] args) {\n try {\n in = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n in.close();\n out.close();\n }\n catch (Throwable e) {\n e.printStackTrace();\n exit(1);\n }\n }\n}",
"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.System.*;",
"import static java.lang.System.*;",
"import static java.lang.System.*;",
"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.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n static void solve() throws Exception {\n int a = scanInt();\n out.print(a+ a*a + a*a*a);\n }\n\n static int scanInt() throws IOException {\n return parseInt(scanString());\n }\n\n static long scanLong() throws IOException {\n return parseLong(scanString());\n }\n\n static String scanString() throws IOException {\n while (tok == null || !tok.hasMoreTokens()) {\n tok = new StringTokenizer(in.readLine());\n }\n return tok.nextToken();\n }\n\n static BufferedReader in;\n static PrintWriter out;\n static StringTokenizer tok;\n\n public static void main(String[] args) {\n try {\n in = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n in.close();\n out.close();\n }\n catch (Throwable e) {\n e.printStackTrace();\n exit(1);\n }\n }\n}",
"Main",
"static BufferedReader in;",
"in",
"static PrintWriter out;",
"out",
"static StringTokenizer tok;",
"tok",
"static void solve() throws Exception {\n int a = scanInt();\n out.print(a+ a*a + a*a*a);\n }",
"solve",
"{\n int a = scanInt();\n out.print(a+ a*a + a*a*a);\n }",
"int a = scanInt();",
"a",
"scanInt()",
"scanInt",
"out.print(a+ a*a + a*a*a)",
"out.print",
"out",
"a+ a*a + a*a*a",
"a+ a*a + a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"static int scanInt() throws IOException {\n return parseInt(scanString());\n }",
"scanInt",
"{\n return parseInt(scanString());\n }",
"return parseInt(scanString());",
"parseInt(scanString())",
"parseInt",
"scanString()",
"scanString",
"static long scanLong() throws IOException {\n return parseLong(scanString());\n }",
"scanLong",
"{\n return parseLong(scanString());\n }",
"return parseLong(scanString());",
"parseLong(scanString())",
"parseLong",
"scanString()",
"scanString",
"static String scanString() throws IOException {\n while (tok == null || !tok.hasMoreTokens()) {\n tok = new StringTokenizer(in.readLine());\n }\n return tok.nextToken();\n }",
"scanString",
"{\n while (tok == null || !tok.hasMoreTokens()) {\n tok = new StringTokenizer(in.readLine());\n }\n return tok.nextToken();\n }",
"while (tok == null || !tok.hasMoreTokens()) {\n tok = new StringTokenizer(in.readLine());\n }",
"tok == null || !tok.hasMoreTokens()",
"tok == null",
"tok",
"null",
"!tok.hasMoreTokens()",
"tok.hasMoreTokens()",
"tok.hasMoreTokens",
"tok",
"{\n tok = new StringTokenizer(in.readLine());\n }",
"tok = new StringTokenizer(in.readLine())",
"tok",
"new StringTokenizer(in.readLine())",
"return tok.nextToken();",
"tok.nextToken()",
"tok.nextToken",
"tok",
"public static void main(String[] args) {\n try {\n in = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n in.close();\n out.close();\n }\n catch (Throwable e) {\n e.printStackTrace();\n exit(1);\n }\n }",
"main",
"{\n try {\n in = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n in.close();\n out.close();\n }\n catch (Throwable e) {\n e.printStackTrace();\n exit(1);\n }\n }",
"try {\n in = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n in.close();\n out.close();\n }\n catch (Throwable e) {\n e.printStackTrace();\n exit(1);\n }",
"catch (Throwable e) {\n e.printStackTrace();\n exit(1);\n }",
"Throwable e",
"{\n e.printStackTrace();\n exit(1);\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"exit(1)",
"exit",
"1",
"{\n in = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n in.close();\n out.close();\n }",
"in = new BufferedReader(new InputStreamReader(System.in))",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"solve()",
"solve",
"in.close()",
"in.close",
"in",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"public class Main {\n\n static void solve() throws Exception {\n int a = scanInt();\n out.print(a+ a*a + a*a*a);\n }\n\n static int scanInt() throws IOException {\n return parseInt(scanString());\n }\n\n static long scanLong() throws IOException {\n return parseLong(scanString());\n }\n\n static String scanString() throws IOException {\n while (tok == null || !tok.hasMoreTokens()) {\n tok = new StringTokenizer(in.readLine());\n }\n return tok.nextToken();\n }\n\n static BufferedReader in;\n static PrintWriter out;\n static StringTokenizer tok;\n\n public static void main(String[] args) {\n try {\n in = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n in.close();\n out.close();\n }\n catch (Throwable e) {\n e.printStackTrace();\n exit(1);\n }\n }\n}",
"public class Main {\n\n static void solve() throws Exception {\n int a = scanInt();\n out.print(a+ a*a + a*a*a);\n }\n\n static int scanInt() throws IOException {\n return parseInt(scanString());\n }\n\n static long scanLong() throws IOException {\n return parseLong(scanString());\n }\n\n static String scanString() throws IOException {\n while (tok == null || !tok.hasMoreTokens()) {\n tok = new StringTokenizer(in.readLine());\n }\n return tok.nextToken();\n }\n\n static BufferedReader in;\n static PrintWriter out;\n static StringTokenizer tok;\n\n public static void main(String[] args) {\n try {\n in = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n in.close();\n out.close();\n }\n catch (Throwable e) {\n e.printStackTrace();\n exit(1);\n }\n }\n}",
"Main"
]
| import static java.lang.Integer.*;
import static java.lang.Long.*;
import static java.lang.System.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Main {
static void solve() throws Exception {
int a = scanInt();
out.print(a+ a*a + a*a*a);
}
static int scanInt() throws IOException {
return parseInt(scanString());
}
static long scanLong() throws IOException {
return parseLong(scanString());
}
static String scanString() throws IOException {
while (tok == null || !tok.hasMoreTokens()) {
tok = new StringTokenizer(in.readLine());
}
return tok.nextToken();
}
static BufferedReader in;
static PrintWriter out;
static StringTokenizer tok;
public static void main(String[] args) {
try {
in = new BufferedReader(new InputStreamReader(System.in));
out = new PrintWriter(System.out);
solve();
in.close();
out.close();
}
catch (Throwable e) {
e.printStackTrace();
exit(1);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
4,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
36,
5
],
[
36,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
23,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
28,
32
],
[
6,
33
],
[
33,
34
],
[
0,
35
],
[
35,
36
],
[
35,
37
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner scan = new Scanner(System.in);\n \n int x = scan.nextInt();\n \n System.out.println(x + x*x + (int)Math.pow(x,3));\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner scan = new Scanner(System.in);\n \n int x = scan.nextInt();\n \n System.out.println(x + x*x + (int)Math.pow(x,3));\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner scan = new Scanner(System.in);\n \n int x = scan.nextInt();\n \n System.out.println(x + x*x + (int)Math.pow(x,3));\n }",
"main",
"{\n // Your code here!\n \n Scanner scan = new Scanner(System.in);\n \n int x = scan.nextInt();\n \n System.out.println(x + x*x + (int)Math.pow(x,3));\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"System.out.println(x + x*x + (int)Math.pow(x,3))",
"System.out.println",
"System.out",
"System",
"System.out",
"x + x*x + (int)Math.pow(x,3)",
"x + x*x + (int)Math.pow(x,3)",
"x",
"x*x",
"x",
"x",
"(int)Math.pow(x,3)",
"Math.pow",
"Math",
"x",
"3",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner scan = new Scanner(System.in);\n \n int x = scan.nextInt();\n \n System.out.println(x + x*x + (int)Math.pow(x,3));\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner scan = new Scanner(System.in);\n \n int x = scan.nextInt();\n \n System.out.println(x + x*x + (int)Math.pow(x,3));\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
System.out.println(x + x*x + (int)Math.pow(x,3));
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
12,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
19,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
39,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
44,
48
],
[
9,
49
],
[
49,
50
]
]
| [
"import java.util.*;\nimport java.math.*;\n \nclass Main{\n public static void main(String[] args) {\n \n try(Scanner sc = new Scanner(System.in)){\n double a = Double.parseDouble(sc.next());\n System.out.println((long)(a + Math.pow(a, 2) + Math.pow(a, 3)));\n\n }catch(Exception e){\n e.printStackTrace();\n } \n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"class Main{\n public static void main(String[] args) {\n \n try(Scanner sc = new Scanner(System.in)){\n double a = Double.parseDouble(sc.next());\n System.out.println((long)(a + Math.pow(a, 2) + Math.pow(a, 3)));\n\n }catch(Exception e){\n e.printStackTrace();\n } \n }\n}",
"Main",
"public static void main(String[] args) {\n \n try(Scanner sc = new Scanner(System.in)){\n double a = Double.parseDouble(sc.next());\n System.out.println((long)(a + Math.pow(a, 2) + Math.pow(a, 3)));\n\n }catch(Exception e){\n e.printStackTrace();\n } \n }",
"main",
"{\n \n try(Scanner sc = new Scanner(System.in)){\n double a = Double.parseDouble(sc.next());\n System.out.println((long)(a + Math.pow(a, 2) + Math.pow(a, 3)));\n\n }catch(Exception e){\n e.printStackTrace();\n } \n }",
"try(Scanner sc = new Scanner(System.in)){\n double a = Double.parseDouble(sc.next());\n System.out.println((long)(a + Math.pow(a, 2) + Math.pow(a, 3)));\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 double a = Double.parseDouble(sc.next());\n System.out.println((long)(a + Math.pow(a, 2) + Math.pow(a, 3)));\n\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"double a = Double.parseDouble(sc.next());",
"a",
"Double.parseDouble(sc.next())",
"Double.parseDouble",
"Double",
"sc.next()",
"sc.next",
"sc",
"System.out.println((long)(a + Math.pow(a, 2) + Math.pow(a, 3)))",
"System.out.println",
"System.out",
"System",
"System.out",
"(long)(a + Math.pow(a, 2) + Math.pow(a, 3))",
"a + Math.pow(a, 2) + Math.pow(a, 3)",
"a",
"Math.pow(a, 2)",
"Math.pow",
"Math",
"a",
"2",
"Math.pow(a, 3)",
"Math.pow",
"Math",
"a",
"3",
"String[] args",
"args"
]
| import java.util.*;
import java.math.*;
class Main{
public static void main(String[] args) {
try(Scanner sc = new Scanner(System.in)){
double a = Double.parseDouble(sc.next());
System.out.println((long)(a + Math.pow(a, 2) + Math.pow(a, 3)));
}catch(Exception e){
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
36,
5
],
[
36,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
6,
33
],
[
33,
34
],
[
0,
35
],
[
35,
36
],
[
35,
37
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner c = new Scanner(System.in);\n\n long num = c.nextInt();\n System.out.println((num + (num * num) + (num * num * num)));\n\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner c = new Scanner(System.in);\n\n long num = c.nextInt();\n System.out.println((num + (num * num) + (num * num * num)));\n\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner c = new Scanner(System.in);\n\n long num = c.nextInt();\n System.out.println((num + (num * num) + (num * num * num)));\n\n }",
"main",
"{\n Scanner c = new Scanner(System.in);\n\n long num = c.nextInt();\n System.out.println((num + (num * num) + (num * num * num)));\n\n }",
"Scanner c = new Scanner(System.in);",
"c",
"new Scanner(System.in)",
"long num = c.nextInt();",
"num",
"c.nextInt()",
"c.nextInt",
"c",
"System.out.println((num + (num * num) + (num * num * num)))",
"System.out.println",
"System.out",
"System",
"System.out",
"(num + (num * num) + (num * num * num))",
"num + (num * num) + (num * num * num)",
"num",
"(num * num)",
"num",
"num",
"(num * num * num)",
"num * num * num",
"num",
"num",
"num",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner c = new Scanner(System.in);\n\n long num = c.nextInt();\n System.out.println((num + (num * num) + (num * num * num)));\n\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner c = new Scanner(System.in);\n\n long num = c.nextInt();\n System.out.println((num + (num * num) + (num * num * num)));\n\n }\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner c = new Scanner(System.in);
long num = c.nextInt();
System.out.println((num + (num * num) + (num * num * num)));
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
17,
41,
13,
4,
18,
13,
13,
17,
41,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
19,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
26,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
34,
34
],
[
34,
35
],
[
34,
36
],
[
34,
37
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
6,
44
],
[
44,
45
]
]
| [
"import java.util.*;\n \nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n double power2 = Math.pow(a, 2);\n double power3 = Math.pow(a, 3);\n int sum = a + (int)power2 + (int)power3;\n System.out.println(sum);\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 a = sc.nextInt();\n double power2 = Math.pow(a, 2);\n double power3 = Math.pow(a, 3);\n int sum = a + (int)power2 + (int)power3;\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n double power2 = Math.pow(a, 2);\n double power3 = Math.pow(a, 3);\n int sum = a + (int)power2 + (int)power3;\n System.out.println(sum);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n double power2 = Math.pow(a, 2);\n double power3 = Math.pow(a, 3);\n int sum = a + (int)power2 + (int)power3;\n System.out.println(sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double power2 = Math.pow(a, 2);",
"power2",
"Math.pow(a, 2)",
"Math.pow",
"Math",
"a",
"2",
"double power3 = Math.pow(a, 3);",
"power3",
"Math.pow(a, 3)",
"Math.pow",
"Math",
"a",
"3",
"int sum = a + (int)power2 + (int)power3;",
"sum",
"a + (int)power2 + (int)power3",
"a + (int)power2 + (int)power3",
"a",
"(int)power2",
"(int)power3",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args"
]
| import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
double power2 = Math.pow(a, 2);
double power3 = Math.pow(a, 3);
int sum = a + (int)power2 + (int)power3;
System.out.println(sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
41,
5
],
[
41,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
28,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
33,
37
],
[
6,
38
],
[
38,
39
],
[
0,
40
],
[
40,
41
],
[
40,
42
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = Integer.parseInt(sc.next());\n\t\tSystem.out.println((int) (a + Math.pow(a, 2) + Math.pow(a, 3)));\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 a = Integer.parseInt(sc.next());\n\t\tSystem.out.println((int) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = Integer.parseInt(sc.next());\n\t\tSystem.out.println((int) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = Integer.parseInt(sc.next());\n\t\tSystem.out.println((int) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = Integer.parseInt(sc.next());",
"a",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"System.out.println((int) (a + Math.pow(a, 2) + Math.pow(a, 3)))",
"System.out.println",
"System.out",
"System",
"System.out",
"(int) (a + Math.pow(a, 2) + Math.pow(a, 3))",
"a + Math.pow(a, 2) + Math.pow(a, 3)",
"a",
"Math.pow(a, 2)",
"Math.pow",
"Math",
"a",
"2",
"Math.pow(a, 3)",
"Math.pow",
"Math",
"a",
"3",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = Integer.parseInt(sc.next());\n\t\tSystem.out.println((int) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = Integer.parseInt(sc.next());\n\t\tSystem.out.println((int) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = Integer.parseInt(sc.next());
System.out.println((int) (a + Math.pow(a, 2) + Math.pow(a, 3)));
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
13,
2,
17,
2,
13,
2,
17,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
9,
34
],
[
34,
35
]
]
| [
"import java.io.*;\nimport java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n System.out.println(n*(1+n*(1+n)));\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n System.out.println(n*(1+n*(1+n)));\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n System.out.println(n*(1+n*(1+n)));\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n System.out.println(n*(1+n*(1+n)));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(n*(1+n*(1+n)))",
"System.out.println",
"System.out",
"System",
"System.out",
"n*(1+n*(1+n))",
"n",
"(1+n*(1+n))",
"1",
"n*(1+n)",
"n",
"(1+n)",
"1",
"n",
"String[] args",
"args"
]
| import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println(n*(1+n*(1+n)));
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
6,
13,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
18,
13,
13,
12,
13,
30,
14,
2,
13,
17,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
37,
20,
29,
2,
13,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
42,
2,
40,
4,
13,
13,
2,
13,
17,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
37,
20,
14,
2,
13,
17,
30,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
2,
13,
17,
13,
0,
13,
4,
13,
37,
20,
29,
2,
13,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
29,
17,
29,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
341,
8
],
[
341,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
9,
36
],
[
36,
37
],
[
341,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
38,
44
],
[
44,
45
],
[
38,
46
],
[
46,
47
],
[
38,
48
],
[
48,
49
],
[
38,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
38,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
60,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
71,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
60,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
38,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
95,
111
],
[
111,
112
],
[
111,
113
],
[
95,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
95,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
138,
140
],
[
133,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
147,
149
],
[
141,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
133,
154
],
[
154,
155
],
[
95,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
38,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
162,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
162,
178
],
[
178,
179
],
[
178,
180
],
[
162,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
185,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
162,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
195,
200
],
[
200,
201
],
[
200,
202
],
[
194,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
205,
209
],
[
209,
210
],
[
209,
211
],
[
204,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
218,
220
],
[
212,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
204,
225
],
[
225,
226
],
[
162,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
227,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
231,
236
],
[
236,
237
],
[
236,
238
],
[
231,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
239,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
246,
250
],
[
250,
251
],
[
250,
252
],
[
245,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
253,
257
],
[
257,
258
],
[
257,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
259,
263
],
[
253,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
245,
268
],
[
268,
269
],
[
162,
270
],
[
270,
271
],
[
271,
272
],
[
271,
273
],
[
38,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
277,
278
],
[
277,
279
],
[
276,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
276,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
284,
288
],
[
288,
289
],
[
288,
290
],
[
290,
291
],
[
276,
292
],
[
292,
293
],
[
293,
294
],
[
294,
295
],
[
294,
296
],
[
292,
297
],
[
297,
298
],
[
298,
299
],
[
299,
300
],
[
298,
301
],
[
297,
302
],
[
302,
303
],
[
302,
304
],
[
304,
305
],
[
276,
306
],
[
306,
307
],
[
307,
308
],
[
308,
309
],
[
38,
310
],
[
310,
311
],
[
310,
312
],
[
312,
313
],
[
313,
314
],
[
317,
315
],
[
327,
316
],
[
324,
317
],
[
317,
318
],
[
318,
319
],
[
318,
320
],
[
317,
321
],
[
321,
322
],
[
321,
323
],
[
324,
324
],
[
324,
325
],
[
324,
326
],
[
327,
327
],
[
327,
328
],
[
327,
329
],
[
317,
330
],
[
330,
331
],
[
330,
332
],
[
332,
333
],
[
313,
334
],
[
334,
335
],
[
312,
336
],
[
336,
337
],
[
310,
338
],
[
338,
339
],
[
0,
340
],
[
340,
341
],
[
340,
342
]
]
| [
"import java.util.*;\nimport java.io.*;\npublic class Main {\n static class Scan {\n private byte[] buf=new byte[1024];\n private int index;\n private InputStream in;\n private int total;\n public Scan()\n {\n in=System.in;\n }\n public int scan()throws IOException\n {\n if(total<0)\n throw new InputMismatchException();\n if(index>=total)\n {\n index=0;\n total=in.read(buf);\n if(total<=0)\n return -1;\n }\n return buf[index++];\n }\n public int scanInt()throws IOException\n {\n int integer=0;\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n int neg=1;\n if(n=='-')\n {\n neg=-1;\n n=scan();\n }\n while(!isWhiteSpace(n))\n {\n if(n>='0'&&n<='9')\n {\n integer*=10;\n integer+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();\n }\n return neg*integer;\n }\n public double scanDouble()throws IOException\n {\n double doub=0;\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n int neg=1;\n if(n=='-')\n {\n neg=-1;\n n=scan();\n }\n while(!isWhiteSpace(n)&&n!='.')\n {\n if(n>='0'&&n<='9')\n {\n doub*=10;\n doub+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();\n }\n if(n=='.')\n {\n n=scan();\n double temp=1;\n while(!isWhiteSpace(n))\n {\n if(n>='0'&&n<='9')\n {\n temp/=10;\n doub+=(n-'0')*temp;\n n=scan();\n }\n else throw new InputMismatchException();\n }\n }\n return doub*neg;\n }\n public String scanString()throws IOException\n {\n StringBuilder sb=new StringBuilder();\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n while(!isWhiteSpace(n))\n {\n sb.append((char)n);\n n=scan();\n }\n return sb.toString();\n }\n private boolean isWhiteSpace(int n)\n {\n if(n==' '||n=='\\n'||n=='\\r'||n=='\\t'||n==-1)\n return true;\n return false;\n }\n }\n public static void main(String args[]) throws IOException {\n Scan input=new Scan();\n int a=input.scanInt();\n System.out.println(a+(a*a)+(a*a*a));\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n static class Scan {\n private byte[] buf=new byte[1024];\n private int index;\n private InputStream in;\n private int total;\n public Scan()\n {\n in=System.in;\n }\n public int scan()throws IOException\n {\n if(total<0)\n throw new InputMismatchException();\n if(index>=total)\n {\n index=0;\n total=in.read(buf);\n if(total<=0)\n return -1;\n }\n return buf[index++];\n }\n public int scanInt()throws IOException\n {\n int integer=0;\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n int neg=1;\n if(n=='-')\n {\n neg=-1;\n n=scan();\n }\n while(!isWhiteSpace(n))\n {\n if(n>='0'&&n<='9')\n {\n integer*=10;\n integer+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();\n }\n return neg*integer;\n }\n public double scanDouble()throws IOException\n {\n double doub=0;\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n int neg=1;\n if(n=='-')\n {\n neg=-1;\n n=scan();\n }\n while(!isWhiteSpace(n)&&n!='.')\n {\n if(n>='0'&&n<='9')\n {\n doub*=10;\n doub+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();\n }\n if(n=='.')\n {\n n=scan();\n double temp=1;\n while(!isWhiteSpace(n))\n {\n if(n>='0'&&n<='9')\n {\n temp/=10;\n doub+=(n-'0')*temp;\n n=scan();\n }\n else throw new InputMismatchException();\n }\n }\n return doub*neg;\n }\n public String scanString()throws IOException\n {\n StringBuilder sb=new StringBuilder();\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n while(!isWhiteSpace(n))\n {\n sb.append((char)n);\n n=scan();\n }\n return sb.toString();\n }\n private boolean isWhiteSpace(int n)\n {\n if(n==' '||n=='\\n'||n=='\\r'||n=='\\t'||n==-1)\n return true;\n return false;\n }\n }\n public static void main(String args[]) throws IOException {\n Scan input=new Scan();\n int a=input.scanInt();\n System.out.println(a+(a*a)+(a*a*a));\n }\n}",
"Main",
"public static void main(String args[]) throws IOException {\n Scan input=new Scan();\n int a=input.scanInt();\n System.out.println(a+(a*a)+(a*a*a));\n }",
"main",
"{\n Scan input=new Scan();\n int a=input.scanInt();\n System.out.println(a+(a*a)+(a*a*a));\n }",
"Scan input=new Scan();",
"input",
"new Scan()",
"int a=input.scanInt();",
"a",
"input.scanInt()",
"input.scanInt",
"input",
"System.out.println(a+(a*a)+(a*a*a))",
"System.out.println",
"System.out",
"System",
"System.out",
"a+(a*a)+(a*a*a)",
"a+(a*a)+(a*a*a)",
"a",
"(a*a)",
"a",
"a",
"(a*a*a)",
"a*a*a",
"a",
"a",
"a",
"String args[]",
"args",
"static class Scan {\n private byte[] buf=new byte[1024];\n private int index;\n private InputStream in;\n private int total;\n public Scan()\n {\n in=System.in;\n }\n public int scan()throws IOException\n {\n if(total<0)\n throw new InputMismatchException();\n if(index>=total)\n {\n index=0;\n total=in.read(buf);\n if(total<=0)\n return -1;\n }\n return buf[index++];\n }\n public int scanInt()throws IOException\n {\n int integer=0;\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n int neg=1;\n if(n=='-')\n {\n neg=-1;\n n=scan();\n }\n while(!isWhiteSpace(n))\n {\n if(n>='0'&&n<='9')\n {\n integer*=10;\n integer+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();\n }\n return neg*integer;\n }\n public double scanDouble()throws IOException\n {\n double doub=0;\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n int neg=1;\n if(n=='-')\n {\n neg=-1;\n n=scan();\n }\n while(!isWhiteSpace(n)&&n!='.')\n {\n if(n>='0'&&n<='9')\n {\n doub*=10;\n doub+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();\n }\n if(n=='.')\n {\n n=scan();\n double temp=1;\n while(!isWhiteSpace(n))\n {\n if(n>='0'&&n<='9')\n {\n temp/=10;\n doub+=(n-'0')*temp;\n n=scan();\n }\n else throw new InputMismatchException();\n }\n }\n return doub*neg;\n }\n public String scanString()throws IOException\n {\n StringBuilder sb=new StringBuilder();\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n while(!isWhiteSpace(n))\n {\n sb.append((char)n);\n n=scan();\n }\n return sb.toString();\n }\n private boolean isWhiteSpace(int n)\n {\n if(n==' '||n=='\\n'||n=='\\r'||n=='\\t'||n==-1)\n return true;\n return false;\n }\n }",
"Scan",
"private byte[] buf=new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int index;",
"index",
"private InputStream in;",
"in",
"private int total;",
"total",
"public Scan()\n {\n in=System.in;\n }",
"Scan",
"{\n in=System.in;\n }",
"in=System.in",
"in",
"System.in",
"System",
"System.in",
"public int scan()throws IOException\n {\n if(total<0)\n throw new InputMismatchException();\n if(index>=total)\n {\n index=0;\n total=in.read(buf);\n if(total<=0)\n return -1;\n }\n return buf[index++];\n }",
"scan",
"{\n if(total<0)\n throw new InputMismatchException();\n if(index>=total)\n {\n index=0;\n total=in.read(buf);\n if(total<=0)\n return -1;\n }\n return buf[index++];\n }",
"if(total<0)\n throw new InputMismatchException();",
"total<0",
"total",
"0",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if(index>=total)\n {\n index=0;\n total=in.read(buf);\n if(total<=0)\n return -1;\n }",
"index>=total",
"index",
"total",
"{\n index=0;\n total=in.read(buf);\n if(total<=0)\n return -1;\n }",
"index=0",
"index",
"0",
"total=in.read(buf)",
"total",
"in.read(buf)",
"in.read",
"in",
"buf",
"if(total<=0)\n return -1;",
"total<=0",
"total",
"0",
"return -1;",
"-1",
"1",
"return buf[index++];",
"buf[index++]",
"buf",
"index++",
"index",
"public int scanInt()throws IOException\n {\n int integer=0;\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n int neg=1;\n if(n=='-')\n {\n neg=-1;\n n=scan();\n }\n while(!isWhiteSpace(n))\n {\n if(n>='0'&&n<='9')\n {\n integer*=10;\n integer+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();\n }\n return neg*integer;\n }",
"scanInt",
"{\n int integer=0;\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n int neg=1;\n if(n=='-')\n {\n neg=-1;\n n=scan();\n }\n while(!isWhiteSpace(n))\n {\n if(n>='0'&&n<='9')\n {\n integer*=10;\n integer+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();\n }\n return neg*integer;\n }",
"int integer=0;",
"integer",
"0",
"int n=scan();",
"n",
"scan()",
"scan",
"while(isWhiteSpace(n))\n n=scan();",
"isWhiteSpace(n)",
"isWhiteSpace",
"n",
"n=scan()",
"n",
"scan()",
"scan",
"int neg=1;",
"neg",
"1",
"if(n=='-')\n {\n neg=-1;\n n=scan();\n }",
"n=='-'",
"n",
"'-'",
"{\n neg=-1;\n n=scan();\n }",
"neg=-1",
"neg",
"-1",
"1",
"n=scan()",
"n",
"scan()",
"scan",
"while(!isWhiteSpace(n))\n {\n if(n>='0'&&n<='9')\n {\n integer*=10;\n integer+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();\n }",
"!isWhiteSpace(n)",
"isWhiteSpace(n)",
"isWhiteSpace",
"n",
"{\n if(n>='0'&&n<='9')\n {\n integer*=10;\n integer+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();\n }",
"if(n>='0'&&n<='9')\n {\n integer*=10;\n integer+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();",
"n>='0'&&n<='9'",
"n>='0'",
"n",
"'0'",
"n<='9'",
"n",
"'9'",
"{\n integer*=10;\n integer+=n-'0';\n n=scan();\n }",
"integer*=10",
"integer",
"10",
"integer+=n-'0'",
"integer",
"n-'0'",
"n",
"'0'",
"n=scan()",
"n",
"scan()",
"scan",
"throw new InputMismatchException();",
"new InputMismatchException()",
"return neg*integer;",
"neg*integer",
"neg",
"integer",
"public double scanDouble()throws IOException\n {\n double doub=0;\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n int neg=1;\n if(n=='-')\n {\n neg=-1;\n n=scan();\n }\n while(!isWhiteSpace(n)&&n!='.')\n {\n if(n>='0'&&n<='9')\n {\n doub*=10;\n doub+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();\n }\n if(n=='.')\n {\n n=scan();\n double temp=1;\n while(!isWhiteSpace(n))\n {\n if(n>='0'&&n<='9')\n {\n temp/=10;\n doub+=(n-'0')*temp;\n n=scan();\n }\n else throw new InputMismatchException();\n }\n }\n return doub*neg;\n }",
"scanDouble",
"{\n double doub=0;\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n int neg=1;\n if(n=='-')\n {\n neg=-1;\n n=scan();\n }\n while(!isWhiteSpace(n)&&n!='.')\n {\n if(n>='0'&&n<='9')\n {\n doub*=10;\n doub+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();\n }\n if(n=='.')\n {\n n=scan();\n double temp=1;\n while(!isWhiteSpace(n))\n {\n if(n>='0'&&n<='9')\n {\n temp/=10;\n doub+=(n-'0')*temp;\n n=scan();\n }\n else throw new InputMismatchException();\n }\n }\n return doub*neg;\n }",
"double doub=0;",
"doub",
"0",
"int n=scan();",
"n",
"scan()",
"scan",
"while(isWhiteSpace(n))\n n=scan();",
"isWhiteSpace(n)",
"isWhiteSpace",
"n",
"n=scan()",
"n",
"scan()",
"scan",
"int neg=1;",
"neg",
"1",
"if(n=='-')\n {\n neg=-1;\n n=scan();\n }",
"n=='-'",
"n",
"'-'",
"{\n neg=-1;\n n=scan();\n }",
"neg=-1",
"neg",
"-1",
"1",
"n=scan()",
"n",
"scan()",
"scan",
"while(!isWhiteSpace(n)&&n!='.')\n {\n if(n>='0'&&n<='9')\n {\n doub*=10;\n doub+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();\n }",
"!isWhiteSpace(n)&&n!='.'",
"!isWhiteSpace(n)",
"isWhiteSpace(n)",
"isWhiteSpace",
"n",
"n!='.'",
"n",
"'.'",
"{\n if(n>='0'&&n<='9')\n {\n doub*=10;\n doub+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();\n }",
"if(n>='0'&&n<='9')\n {\n doub*=10;\n doub+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();",
"n>='0'&&n<='9'",
"n>='0'",
"n",
"'0'",
"n<='9'",
"n",
"'9'",
"{\n doub*=10;\n doub+=n-'0';\n n=scan();\n }",
"doub*=10",
"doub",
"10",
"doub+=n-'0'",
"doub",
"n-'0'",
"n",
"'0'",
"n=scan()",
"n",
"scan()",
"scan",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if(n=='.')\n {\n n=scan();\n double temp=1;\n while(!isWhiteSpace(n))\n {\n if(n>='0'&&n<='9')\n {\n temp/=10;\n doub+=(n-'0')*temp;\n n=scan();\n }\n else throw new InputMismatchException();\n }\n }",
"n=='.'",
"n",
"'.'",
"{\n n=scan();\n double temp=1;\n while(!isWhiteSpace(n))\n {\n if(n>='0'&&n<='9')\n {\n temp/=10;\n doub+=(n-'0')*temp;\n n=scan();\n }\n else throw new InputMismatchException();\n }\n }",
"n=scan()",
"n",
"scan()",
"scan",
"double temp=1;",
"temp",
"1",
"while(!isWhiteSpace(n))\n {\n if(n>='0'&&n<='9')\n {\n temp/=10;\n doub+=(n-'0')*temp;\n n=scan();\n }\n else throw new InputMismatchException();\n }",
"!isWhiteSpace(n)",
"isWhiteSpace(n)",
"isWhiteSpace",
"n",
"{\n if(n>='0'&&n<='9')\n {\n temp/=10;\n doub+=(n-'0')*temp;\n n=scan();\n }\n else throw new InputMismatchException();\n }",
"if(n>='0'&&n<='9')\n {\n temp/=10;\n doub+=(n-'0')*temp;\n n=scan();\n }\n else throw new InputMismatchException();",
"n>='0'&&n<='9'",
"n>='0'",
"n",
"'0'",
"n<='9'",
"n",
"'9'",
"{\n temp/=10;\n doub+=(n-'0')*temp;\n n=scan();\n }",
"temp/=10",
"temp",
"10",
"doub+=(n-'0')*temp",
"doub",
"(n-'0')*temp",
"(n-'0')",
"n",
"'0'",
"temp",
"n=scan()",
"n",
"scan()",
"scan",
"throw new InputMismatchException();",
"new InputMismatchException()",
"return doub*neg;",
"doub*neg",
"doub",
"neg",
"public String scanString()throws IOException\n {\n StringBuilder sb=new StringBuilder();\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n while(!isWhiteSpace(n))\n {\n sb.append((char)n);\n n=scan();\n }\n return sb.toString();\n }",
"scanString",
"{\n StringBuilder sb=new StringBuilder();\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n while(!isWhiteSpace(n))\n {\n sb.append((char)n);\n n=scan();\n }\n return sb.toString();\n }",
"StringBuilder sb=new StringBuilder();",
"sb",
"new StringBuilder()",
"int n=scan();",
"n",
"scan()",
"scan",
"while(isWhiteSpace(n))\n n=scan();",
"isWhiteSpace(n)",
"isWhiteSpace",
"n",
"n=scan()",
"n",
"scan()",
"scan",
"while(!isWhiteSpace(n))\n {\n sb.append((char)n);\n n=scan();\n }",
"!isWhiteSpace(n)",
"isWhiteSpace(n)",
"isWhiteSpace",
"n",
"{\n sb.append((char)n);\n n=scan();\n }",
"sb.append((char)n)",
"sb.append",
"sb",
"(char)n",
"n=scan()",
"n",
"scan()",
"scan",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"private boolean isWhiteSpace(int n)\n {\n if(n==' '||n=='\\n'||n=='\\r'||n=='\\t'||n==-1)\n return true;\n return false;\n }",
"isWhiteSpace",
"{\n if(n==' '||n=='\\n'||n=='\\r'||n=='\\t'||n==-1)\n return true;\n return false;\n }",
"if(n==' '||n=='\\n'||n=='\\r'||n=='\\t'||n==-1)\n return true;",
"n==' '||n=='\\n'||n=='\\r'||n=='\\t'||n==-1",
"n=='\\t'",
"n=='\\r'",
"n==' '||n=='\\n'||n=='\\r'||n=='\\t'||n==-1",
"n==' '",
"n",
"' '",
"n=='\\n'",
"n",
"'\\n'",
"n=='\\r'",
"n",
"'\\r'",
"n=='\\t'",
"n",
"'\\t'",
"n==-1",
"n",
"-1",
"1",
"return true;",
"true",
"return false;",
"false",
"int n",
"n",
"public class Main {\n static class Scan {\n private byte[] buf=new byte[1024];\n private int index;\n private InputStream in;\n private int total;\n public Scan()\n {\n in=System.in;\n }\n public int scan()throws IOException\n {\n if(total<0)\n throw new InputMismatchException();\n if(index>=total)\n {\n index=0;\n total=in.read(buf);\n if(total<=0)\n return -1;\n }\n return buf[index++];\n }\n public int scanInt()throws IOException\n {\n int integer=0;\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n int neg=1;\n if(n=='-')\n {\n neg=-1;\n n=scan();\n }\n while(!isWhiteSpace(n))\n {\n if(n>='0'&&n<='9')\n {\n integer*=10;\n integer+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();\n }\n return neg*integer;\n }\n public double scanDouble()throws IOException\n {\n double doub=0;\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n int neg=1;\n if(n=='-')\n {\n neg=-1;\n n=scan();\n }\n while(!isWhiteSpace(n)&&n!='.')\n {\n if(n>='0'&&n<='9')\n {\n doub*=10;\n doub+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();\n }\n if(n=='.')\n {\n n=scan();\n double temp=1;\n while(!isWhiteSpace(n))\n {\n if(n>='0'&&n<='9')\n {\n temp/=10;\n doub+=(n-'0')*temp;\n n=scan();\n }\n else throw new InputMismatchException();\n }\n }\n return doub*neg;\n }\n public String scanString()throws IOException\n {\n StringBuilder sb=new StringBuilder();\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n while(!isWhiteSpace(n))\n {\n sb.append((char)n);\n n=scan();\n }\n return sb.toString();\n }\n private boolean isWhiteSpace(int n)\n {\n if(n==' '||n=='\\n'||n=='\\r'||n=='\\t'||n==-1)\n return true;\n return false;\n }\n }\n public static void main(String args[]) throws IOException {\n Scan input=new Scan();\n int a=input.scanInt();\n System.out.println(a+(a*a)+(a*a*a));\n }\n}",
"public class Main {\n static class Scan {\n private byte[] buf=new byte[1024];\n private int index;\n private InputStream in;\n private int total;\n public Scan()\n {\n in=System.in;\n }\n public int scan()throws IOException\n {\n if(total<0)\n throw new InputMismatchException();\n if(index>=total)\n {\n index=0;\n total=in.read(buf);\n if(total<=0)\n return -1;\n }\n return buf[index++];\n }\n public int scanInt()throws IOException\n {\n int integer=0;\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n int neg=1;\n if(n=='-')\n {\n neg=-1;\n n=scan();\n }\n while(!isWhiteSpace(n))\n {\n if(n>='0'&&n<='9')\n {\n integer*=10;\n integer+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();\n }\n return neg*integer;\n }\n public double scanDouble()throws IOException\n {\n double doub=0;\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n int neg=1;\n if(n=='-')\n {\n neg=-1;\n n=scan();\n }\n while(!isWhiteSpace(n)&&n!='.')\n {\n if(n>='0'&&n<='9')\n {\n doub*=10;\n doub+=n-'0';\n n=scan();\n }\n else throw new InputMismatchException();\n }\n if(n=='.')\n {\n n=scan();\n double temp=1;\n while(!isWhiteSpace(n))\n {\n if(n>='0'&&n<='9')\n {\n temp/=10;\n doub+=(n-'0')*temp;\n n=scan();\n }\n else throw new InputMismatchException();\n }\n }\n return doub*neg;\n }\n public String scanString()throws IOException\n {\n StringBuilder sb=new StringBuilder();\n int n=scan();\n while(isWhiteSpace(n))\n n=scan();\n while(!isWhiteSpace(n))\n {\n sb.append((char)n);\n n=scan();\n }\n return sb.toString();\n }\n private boolean isWhiteSpace(int n)\n {\n if(n==' '||n=='\\n'||n=='\\r'||n=='\\t'||n==-1)\n return true;\n return false;\n }\n }\n public static void main(String args[]) throws IOException {\n Scan input=new Scan();\n int a=input.scanInt();\n System.out.println(a+(a*a)+(a*a*a));\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
static class Scan {
private byte[] buf=new byte[1024];
private int index;
private InputStream in;
private int total;
public Scan()
{
in=System.in;
}
public int scan()throws IOException
{
if(total<0)
throw new InputMismatchException();
if(index>=total)
{
index=0;
total=in.read(buf);
if(total<=0)
return -1;
}
return buf[index++];
}
public int scanInt()throws IOException
{
int integer=0;
int n=scan();
while(isWhiteSpace(n))
n=scan();
int neg=1;
if(n=='-')
{
neg=-1;
n=scan();
}
while(!isWhiteSpace(n))
{
if(n>='0'&&n<='9')
{
integer*=10;
integer+=n-'0';
n=scan();
}
else throw new InputMismatchException();
}
return neg*integer;
}
public double scanDouble()throws IOException
{
double doub=0;
int n=scan();
while(isWhiteSpace(n))
n=scan();
int neg=1;
if(n=='-')
{
neg=-1;
n=scan();
}
while(!isWhiteSpace(n)&&n!='.')
{
if(n>='0'&&n<='9')
{
doub*=10;
doub+=n-'0';
n=scan();
}
else throw new InputMismatchException();
}
if(n=='.')
{
n=scan();
double temp=1;
while(!isWhiteSpace(n))
{
if(n>='0'&&n<='9')
{
temp/=10;
doub+=(n-'0')*temp;
n=scan();
}
else throw new InputMismatchException();
}
}
return doub*neg;
}
public String scanString()throws IOException
{
StringBuilder sb=new StringBuilder();
int n=scan();
while(isWhiteSpace(n))
n=scan();
while(!isWhiteSpace(n))
{
sb.append((char)n);
n=scan();
}
return sb.toString();
}
private boolean isWhiteSpace(int n)
{
if(n==' '||n=='\n'||n=='\r'||n=='\t'||n==-1)
return true;
return false;
}
}
public static void main(String args[]) throws IOException {
Scan input=new Scan();
int a=input.scanInt();
System.out.println(a+(a*a)+(a*a*a));
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
13,
13,
0,
13,
13,
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
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
]
| [
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint a = sc.nextInt();\n\t\t\n int A = 1;\n\t\tint sum = 0;\n\t\t\n for(int i=0;i<3;i++){\n A=A*a;\n sum+=A;\n }\n \n\t\tSystem.out.println(sum);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint a = sc.nextInt();\n\t\t\n int A = 1;\n\t\tint sum = 0;\n\t\t\n for(int i=0;i<3;i++){\n A=A*a;\n sum+=A;\n }\n \n\t\tSystem.out.println(sum);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint a = sc.nextInt();\n\t\t\n int A = 1;\n\t\tint sum = 0;\n\t\t\n for(int i=0;i<3;i++){\n A=A*a;\n sum+=A;\n }\n \n\t\tSystem.out.println(sum);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint a = sc.nextInt();\n\t\t\n int A = 1;\n\t\tint sum = 0;\n\t\t\n for(int i=0;i<3;i++){\n A=A*a;\n sum+=A;\n }\n \n\t\tSystem.out.println(sum);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int A = 1;",
"A",
"1",
"int sum = 0;",
"sum",
"0",
"for(int i=0;i<3;i++){\n A=A*a;\n sum+=A;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"{\n A=A*a;\n sum+=A;\n }",
"{\n A=A*a;\n sum+=A;\n }",
"A=A*a",
"A",
"A*a",
"A",
"a",
"sum+=A",
"sum",
"A",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint a = sc.nextInt();\n\t\t\n int A = 1;\n\t\tint sum = 0;\n\t\t\n for(int i=0;i<3;i++){\n A=A*a;\n sum+=A;\n }\n \n\t\tSystem.out.println(sum);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint a = sc.nextInt();\n\t\t\n int A = 1;\n\t\tint sum = 0;\n\t\t\n for(int i=0;i<3;i++){\n A=A*a;\n sum+=A;\n }\n \n\t\tSystem.out.println(sum);\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int A = 1;
int sum = 0;
for(int i=0;i<3;i++){
A=A*a;
sum+=A;
}
System.out.println(sum);
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
4,
18,
20,
41,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
33,
2
],
[
33,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
5,
11
],
[
11,
12
],
[
11,
13
],
[
14,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
16,
18
],
[
14,
19
],
[
20,
20
],
[
20,
21
],
[
20,
22
],
[
20,
23
],
[
5,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
3,
30
],
[
30,
31
],
[
0,
32
],
[
32,
33
],
[
32,
34
]
]
| [
"public class Main {\n public static void main(String[] args) {\n int a = new java.util.Scanner(System.in).nextInt();\n int b = a + a * a + a * a * a;\n System.out.println(b);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n int a = new java.util.Scanner(System.in).nextInt();\n int b = a + a * a + a * a * a;\n System.out.println(b);\n }\n}",
"Main",
"public static void main(String[] args) {\n int a = new java.util.Scanner(System.in).nextInt();\n int b = a + a * a + a * a * a;\n System.out.println(b);\n }",
"main",
"{\n int a = new java.util.Scanner(System.in).nextInt();\n int b = a + a * a + a * a * a;\n System.out.println(b);\n }",
"int a = new java.util.Scanner(System.in).nextInt();",
"a",
"new java.util.Scanner(System.in).nextInt()",
"new java.util.Scanner(System.in).nextInt",
"new java.util.Scanner(System.in)",
"int b = a + a * a + a * a * a;",
"b",
"a + a * a + a * a * a",
"a + a * a + a * a * a",
"a",
"a * a",
"a",
"a",
"a * a * a",
"a * a * a",
"a",
"a",
"a",
"System.out.println(b)",
"System.out.println",
"System.out",
"System",
"System.out",
"b",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n int a = new java.util.Scanner(System.in).nextInt();\n int b = a + a * a + a * a * a;\n System.out.println(b);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n int a = new java.util.Scanner(System.in).nextInt();\n int b = a + a * a + a * a * a;\n System.out.println(b);\n }\n}",
"Main"
]
| public class Main {
public static void main(String[] args) {
int a = new java.util.Scanner(System.in).nextInt();
int b = a + a * a + a * a * a;
System.out.println(b);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
13,
0,
13,
2,
13,
13,
0,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
44,
5
],
[
44,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
31,
31
],
[
31,
32
],
[
31,
33
],
[
31,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
6,
41
],
[
41,
42
],
[
0,
43
],
[
43,
44
],
[
43,
45
]
]
| [
"import java.util.Scanner;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\tint ans = n;\n\t\tans += n*n;\n\t\tans += n*n*n;\n\t\tSystem.out.println(ans);\n\t\t}\n}\n\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\tint ans = n;\n\t\tans += n*n;\n\t\tans += n*n*n;\n\t\tSystem.out.println(ans);\n\t\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\tint ans = n;\n\t\tans += n*n;\n\t\tans += n*n*n;\n\t\tSystem.out.println(ans);\n\t\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\tint ans = n;\n\t\tans += n*n;\n\t\tans += n*n*n;\n\t\tSystem.out.println(ans);\n\t\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",
"int ans = n;",
"ans",
"n",
"ans += n*n",
"ans",
"n*n",
"n",
"n",
"ans += n*n*n",
"ans",
"n*n*n",
"n*n*n",
"n",
"n",
"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) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\tint ans = n;\n\t\tans += n*n;\n\t\tans += n*n*n;\n\t\tSystem.out.println(ans);\n\t\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\t\tint ans = n;\n\t\tans += n*n;\n\t\tans += n*n*n;\n\t\tSystem.out.println(ans);\n\t\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
int ans = n;
ans += n*n;
ans += n*n*n;
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
4,
18,
13,
13,
17,
4,
18,
13,
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
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
22,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
27,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
6,
38
],
[
38,
39
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scn = new Scanner(System.in);\n\t\tint a = scn.nextInt();\n\t\tlong ans = (long) (a + Math.pow(a, 2) + Math.pow(a, 3));\n\t\tSystem.out.println(ans);\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scn = new Scanner(System.in);\n\t\tint a = scn.nextInt();\n\t\tlong ans = (long) (a + Math.pow(a, 2) + Math.pow(a, 3));\n\t\tSystem.out.println(ans);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scn = new Scanner(System.in);\n\t\tint a = scn.nextInt();\n\t\tlong ans = (long) (a + Math.pow(a, 2) + Math.pow(a, 3));\n\t\tSystem.out.println(ans);\n\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner scn = new Scanner(System.in);\n\t\tint a = scn.nextInt();\n\t\tlong ans = (long) (a + Math.pow(a, 2) + Math.pow(a, 3));\n\t\tSystem.out.println(ans);\n\n\t}",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"int a = scn.nextInt();",
"a",
"scn.nextInt()",
"scn.nextInt",
"scn",
"long ans = (long) (a + Math.pow(a, 2) + Math.pow(a, 3));",
"ans",
"(long) (a + Math.pow(a, 2) + Math.pow(a, 3))",
"a + Math.pow(a, 2) + Math.pow(a, 3)",
"a",
"Math.pow(a, 2)",
"Math.pow",
"Math",
"a",
"2",
"Math.pow(a, 3)",
"Math.pow",
"Math",
"a",
"3",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scn = new Scanner(System.in);
int a = scn.nextInt();
long ans = (long) (a + Math.pow(a, 2) + Math.pow(a, 3));
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
32,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
38,
38
],
[
38,
39
],
[
38,
40
],
[
38,
41
],
[
15,
42
],
[
42,
43
]
]
| [
"import java.util.*;\nimport java.lang.*;\nimport java.io.*;\nimport java.math.BigDecimal;\n\nclass Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\t\t\n\t\tSystem.out.println(num + num * num + num * num * num);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\t\t\n\t\tSystem.out.println(num + num * num + num * num * num);\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\t\t\n\t\tSystem.out.println(num + num * num + num * num * num);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\t\t\n\t\tSystem.out.println(num + num * num + num * num * num);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(num + num * num + num * num * num)",
"System.out.println",
"System.out",
"System",
"System.out",
"num + num * num + num * num * num",
"num + num * num + num * num * num",
"num",
"num * num",
"num",
"num",
"num * num * num",
"num * num * num",
"num",
"num",
"num",
"String[] args",
"args"
]
| import java.util.*;
import java.lang.*;
import java.io.*;
import java.math.BigDecimal;
class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
System.out.println(num + num * num + num * num * num);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
2,
2,
2,
17,
17,
17,
17,
41,
13,
39,
17,
40,
17,
17,
17,
41,
13,
39,
17,
17,
40,
17,
17,
12,
13,
30,
41,
13,
4,
13,
41,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
13,
13,
12,
13,
30,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
2,
4,
18,
13,
2,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
4,
13,
4,
18,
13,
12,
13,
30,
20,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
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,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
0,
13,
17,
29,
17,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
38,
5,
13,
30,
0,
13,
17,
29,
17,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
287,
8
],
[
287,
9
],
[
9,
10
],
[
287,
11
],
[
11,
12
],
[
287,
13
],
[
13,
14
],
[
287,
15
],
[
15,
16
],
[
287,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
21,
21
],
[
21,
22
],
[
21,
23
],
[
21,
24
],
[
19,
25
],
[
287,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
28,
32
],
[
28,
33
],
[
287,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
36,
39
],
[
39,
40
],
[
36,
41
],
[
287,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
52,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
58,
58
],
[
58,
59
],
[
58,
60
],
[
58,
61
],
[
44,
62
],
[
62,
63
],
[
62,
64
],
[
287,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
67,
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
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
85,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
85,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
106,
108
],
[
85,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
65,
114
],
[
114,
115
],
[
287,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
116,
123
],
[
123,
124
],
[
287,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
125,
132
],
[
132,
133
],
[
287,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
140,
142
],
[
136,
143
],
[
143,
144
],
[
136,
145
],
[
145,
146
],
[
146,
147
],
[
287,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
148,
152
],
[
152,
153
],
[
287,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
161,
166
],
[
166,
167
],
[
166,
168
],
[
161,
169
],
[
169,
170
],
[
170,
171
],
[
161,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
177,
178
],
[
156,
179
],
[
179,
180
],
[
154,
181
],
[
181,
182
],
[
287,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
195,
196
],
[
195,
197
],
[
190,
198
],
[
198,
199
],
[
199,
200
],
[
190,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
202,
206
],
[
206,
207
],
[
185,
208
],
[
208,
209
],
[
183,
210
],
[
210,
211
],
[
287,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
216,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
215,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
228,
232
],
[
232,
233
],
[
225,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
214,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
287,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
248,
252
],
[
252,
253
],
[
245,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
287,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
263,
266
],
[
266,
267
],
[
287,
268
],
[
268,
269
],
[
268,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
272,
275
],
[
275,
276
],
[
287,
277
],
[
277,
278
],
[
277,
279
],
[
279,
280
],
[
280,
281
],
[
281,
282
],
[
282,
283
],
[
281,
284
],
[
284,
285
],
[
0,
286
],
[
286,
287
],
[
286,
288
]
]
| [
"import java.util.*;\nimport java.io.*;\n\n// Template for atcoder\npublic class Main {\n\n BufferedReader br;\n PrintWriter out;\n StringTokenizer st;\n boolean eof;\n final long MOD = 1000L * 1000L * 1000L + 7;\n private static final int[] dx = {0, -1, 0, 1};\n private static final int[] dy = {1, 0, -1, 0};\n\n void solve() throws IOException {\n long a = nextInt();\n long res = a + a * a + a * a * a;\n outln(res);\n }\n\n void shuffle(int[] a) {\n int n = a.length;\n for(int i = 0; i < n; i++) {\n int r = i + (int) (Math.random() * (n - i));\n int tmp = a[i];\n a[i] = a[r];\n a[r] = tmp;\n }\n }\n private void outln(Object o) {\n out.println(o);\n }\n private void out(Object o) {\n out.print(o);\n }\n public Main() throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n out.close();\n }\n public static void main(String[] args) throws IOException {\n new Main();\n }\n\n public long[] nextLongArr(int n) throws IOException{\n long[] res = new long[n];\n for(int i = 0; i < n; i++)\n res[i] = nextLong();\n return res;\n }\n public int[] nextIntArr(int n) throws IOException {\n int[] res = new int[n];\n for(int i = 0; i < n; i++)\n res[i] = nextInt();\n return res;\n }\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n eof = true;\n return null;\n }\n }\n return st.nextToken();\n }\n public String nextString() {\n try {\n return br.readLine();\n } catch (IOException e) {\n eof = true;\n return null;\n }\n }\n public int nextInt() throws IOException {\n return Integer.parseInt(nextToken());\n }\n public long nextLong() throws IOException {\n return Long.parseLong(nextToken());\n }\n public double nextDouble() throws IOException {\n return Double.parseDouble(nextToken());\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n BufferedReader br;\n PrintWriter out;\n StringTokenizer st;\n boolean eof;\n final long MOD = 1000L * 1000L * 1000L + 7;\n private static final int[] dx = {0, -1, 0, 1};\n private static final int[] dy = {1, 0, -1, 0};\n\n void solve() throws IOException {\n long a = nextInt();\n long res = a + a * a + a * a * a;\n outln(res);\n }\n\n void shuffle(int[] a) {\n int n = a.length;\n for(int i = 0; i < n; i++) {\n int r = i + (int) (Math.random() * (n - i));\n int tmp = a[i];\n a[i] = a[r];\n a[r] = tmp;\n }\n }\n private void outln(Object o) {\n out.println(o);\n }\n private void out(Object o) {\n out.print(o);\n }\n public Main() throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n out.close();\n }\n public static void main(String[] args) throws IOException {\n new Main();\n }\n\n public long[] nextLongArr(int n) throws IOException{\n long[] res = new long[n];\n for(int i = 0; i < n; i++)\n res[i] = nextLong();\n return res;\n }\n public int[] nextIntArr(int n) throws IOException {\n int[] res = new int[n];\n for(int i = 0; i < n; i++)\n res[i] = nextInt();\n return res;\n }\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n eof = true;\n return null;\n }\n }\n return st.nextToken();\n }\n public String nextString() {\n try {\n return br.readLine();\n } catch (IOException e) {\n eof = true;\n return null;\n }\n }\n public int nextInt() throws IOException {\n return Integer.parseInt(nextToken());\n }\n public long nextLong() throws IOException {\n return Long.parseLong(nextToken());\n }\n public double nextDouble() throws IOException {\n return Double.parseDouble(nextToken());\n }\n}",
"Main",
"BufferedReader br;",
"br",
"PrintWriter out;",
"out",
"StringTokenizer st;",
"st",
"boolean eof;",
"eof",
"final long MOD = 1000L * 1000L * 1000L + 7;",
"MOD",
"1000L * 1000L * 1000L + 7",
"1000L * 1000L * 1000L",
"1000L * 1000L * 1000L",
"1000L",
"1000L",
"1000L",
"7",
"private static final int[] dx = {0, -1, 0, 1};",
"dx",
"{0, -1, 0, 1}",
"0",
"-1",
"1",
"0",
"1",
"private static final int[] dy = {1, 0, -1, 0};",
"dy",
"{1, 0, -1, 0}",
"1",
"0",
"-1",
"1",
"0",
"void solve() throws IOException {\n long a = nextInt();\n long res = a + a * a + a * a * a;\n outln(res);\n }",
"solve",
"{\n long a = nextInt();\n long res = a + a * a + a * a * a;\n outln(res);\n }",
"long a = nextInt();",
"a",
"nextInt()",
"nextInt",
"long res = a + a * a + a * a * a;",
"res",
"a + a * a + a * a * a",
"a + a * a + a * a * a",
"a",
"a * a",
"a",
"a",
"a * a * a",
"a * a * a",
"a",
"a",
"a",
"outln(res)",
"outln",
"res",
"void shuffle(int[] a) {\n int n = a.length;\n for(int i = 0; i < n; i++) {\n int r = i + (int) (Math.random() * (n - i));\n int tmp = a[i];\n a[i] = a[r];\n a[r] = tmp;\n }\n }",
"shuffle",
"{\n int n = a.length;\n for(int i = 0; i < n; i++) {\n int r = i + (int) (Math.random() * (n - i));\n int tmp = a[i];\n a[i] = a[r];\n a[r] = tmp;\n }\n }",
"int n = a.length;",
"n",
"a.length",
"a",
"a.length",
"for(int i = 0; i < n; i++) {\n int r = i + (int) (Math.random() * (n - i));\n int tmp = a[i];\n a[i] = a[r];\n a[r] = tmp;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int r = i + (int) (Math.random() * (n - i));\n int tmp = a[i];\n a[i] = a[r];\n a[r] = tmp;\n }",
"{\n int r = i + (int) (Math.random() * (n - i));\n int tmp = a[i];\n a[i] = a[r];\n a[r] = tmp;\n }",
"int r = i + (int) (Math.random() * (n - i));",
"r",
"i + (int) (Math.random() * (n - i))",
"i",
"(int) (Math.random() * (n - i))",
"Math.random()",
"Math.random",
"Math",
"(n - i)",
"n",
"i",
"int tmp = a[i];",
"tmp",
"a[i]",
"a",
"i",
"a[i] = a[r]",
"a[i]",
"a",
"i",
"a[r]",
"a",
"r",
"a[r] = tmp",
"a[r]",
"a",
"r",
"tmp",
"int[] a",
"a",
"private void outln(Object o) {\n out.println(o);\n }",
"outln",
"{\n out.println(o);\n }",
"out.println(o)",
"out.println",
"out",
"o",
"Object o",
"o",
"private void out(Object o) {\n out.print(o);\n }",
"out",
"{\n out.print(o);\n }",
"out.print(o)",
"out.print",
"out",
"o",
"Object o",
"o",
"public Main() throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n out.close();\n }",
"Main",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n out.close();\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"solve()",
"solve",
"out.close()",
"out.close",
"out",
"public static void main(String[] args) throws IOException {\n new Main();\n }",
"main",
"{\n new Main();\n }",
"new Main()",
"String[] args",
"args",
"public long[] nextLongArr(int n) throws IOException{\n long[] res = new long[n];\n for(int i = 0; i < n; i++)\n res[i] = nextLong();\n return res;\n }",
"nextLongArr",
"{\n long[] res = new long[n];\n for(int i = 0; i < n; i++)\n res[i] = nextLong();\n return res;\n }",
"long[] res = new long[n];",
"res",
"new long[n]",
"n",
"for(int i = 0; i < n; i++)\n res[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"res[i] = nextLong();",
"res[i] = nextLong()",
"res[i]",
"res",
"i",
"nextLong()",
"nextLong",
"return res;",
"res",
"int n",
"n",
"public int[] nextIntArr(int n) throws IOException {\n int[] res = new int[n];\n for(int i = 0; i < n; i++)\n res[i] = nextInt();\n return res;\n }",
"nextIntArr",
"{\n int[] res = new int[n];\n for(int i = 0; i < n; i++)\n res[i] = nextInt();\n return res;\n }",
"int[] res = new int[n];",
"res",
"new int[n]",
"n",
"for(int i = 0; i < n; i++)\n res[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"res[i] = nextInt();",
"res[i] = nextInt()",
"res[i]",
"res",
"i",
"nextInt()",
"nextInt",
"return res;",
"res",
"int n",
"n",
"public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n eof = true;\n return null;\n }\n }\n return st.nextToken();\n }",
"nextToken",
"{\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n eof = true;\n return null;\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n eof = true;\n return null;\n }\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n eof = true;\n return null;\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n eof = true;\n return null;\n }",
"catch (Exception e) {\n eof = true;\n return null;\n }",
"Exception e",
"{\n eof = true;\n return null;\n }",
"eof = true",
"eof",
"true",
"return null;",
"null",
"{\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 String nextString() {\n try {\n return br.readLine();\n } catch (IOException e) {\n eof = true;\n return null;\n }\n }",
"nextString",
"{\n try {\n return br.readLine();\n } catch (IOException e) {\n eof = true;\n return null;\n }\n }",
"try {\n return br.readLine();\n } catch (IOException e) {\n eof = true;\n return null;\n }",
"catch (IOException e) {\n eof = true;\n return null;\n }",
"IOException e",
"{\n eof = true;\n return null;\n }",
"eof = true",
"eof",
"true",
"return null;",
"null",
"{\n return br.readLine();\n }",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public int nextInt() throws IOException {\n return Integer.parseInt(nextToken());\n }",
"nextInt",
"{\n return Integer.parseInt(nextToken());\n }",
"return Integer.parseInt(nextToken());",
"Integer.parseInt(nextToken())",
"Integer.parseInt",
"Integer",
"nextToken()",
"nextToken",
"public long nextLong() throws IOException {\n return Long.parseLong(nextToken());\n }",
"nextLong",
"{\n return Long.parseLong(nextToken());\n }",
"return Long.parseLong(nextToken());",
"Long.parseLong(nextToken())",
"Long.parseLong",
"Long",
"nextToken()",
"nextToken",
"public double nextDouble() throws IOException {\n return Double.parseDouble(nextToken());\n }",
"nextDouble",
"{\n return Double.parseDouble(nextToken());\n }",
"return Double.parseDouble(nextToken());",
"Double.parseDouble(nextToken())",
"Double.parseDouble",
"Double",
"nextToken()",
"nextToken",
"public class Main {\n\n BufferedReader br;\n PrintWriter out;\n StringTokenizer st;\n boolean eof;\n final long MOD = 1000L * 1000L * 1000L + 7;\n private static final int[] dx = {0, -1, 0, 1};\n private static final int[] dy = {1, 0, -1, 0};\n\n void solve() throws IOException {\n long a = nextInt();\n long res = a + a * a + a * a * a;\n outln(res);\n }\n\n void shuffle(int[] a) {\n int n = a.length;\n for(int i = 0; i < n; i++) {\n int r = i + (int) (Math.random() * (n - i));\n int tmp = a[i];\n a[i] = a[r];\n a[r] = tmp;\n }\n }\n private void outln(Object o) {\n out.println(o);\n }\n private void out(Object o) {\n out.print(o);\n }\n public Main() throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n out.close();\n }\n public static void main(String[] args) throws IOException {\n new Main();\n }\n\n public long[] nextLongArr(int n) throws IOException{\n long[] res = new long[n];\n for(int i = 0; i < n; i++)\n res[i] = nextLong();\n return res;\n }\n public int[] nextIntArr(int n) throws IOException {\n int[] res = new int[n];\n for(int i = 0; i < n; i++)\n res[i] = nextInt();\n return res;\n }\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n eof = true;\n return null;\n }\n }\n return st.nextToken();\n }\n public String nextString() {\n try {\n return br.readLine();\n } catch (IOException e) {\n eof = true;\n return null;\n }\n }\n public int nextInt() throws IOException {\n return Integer.parseInt(nextToken());\n }\n public long nextLong() throws IOException {\n return Long.parseLong(nextToken());\n }\n public double nextDouble() throws IOException {\n return Double.parseDouble(nextToken());\n }\n}",
"public class Main {\n\n BufferedReader br;\n PrintWriter out;\n StringTokenizer st;\n boolean eof;\n final long MOD = 1000L * 1000L * 1000L + 7;\n private static final int[] dx = {0, -1, 0, 1};\n private static final int[] dy = {1, 0, -1, 0};\n\n void solve() throws IOException {\n long a = nextInt();\n long res = a + a * a + a * a * a;\n outln(res);\n }\n\n void shuffle(int[] a) {\n int n = a.length;\n for(int i = 0; i < n; i++) {\n int r = i + (int) (Math.random() * (n - i));\n int tmp = a[i];\n a[i] = a[r];\n a[r] = tmp;\n }\n }\n private void outln(Object o) {\n out.println(o);\n }\n private void out(Object o) {\n out.print(o);\n }\n public Main() throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n out = new PrintWriter(System.out);\n solve();\n out.close();\n }\n public static void main(String[] args) throws IOException {\n new Main();\n }\n\n public long[] nextLongArr(int n) throws IOException{\n long[] res = new long[n];\n for(int i = 0; i < n; i++)\n res[i] = nextLong();\n return res;\n }\n public int[] nextIntArr(int n) throws IOException {\n int[] res = new int[n];\n for(int i = 0; i < n; i++)\n res[i] = nextInt();\n return res;\n }\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n eof = true;\n return null;\n }\n }\n return st.nextToken();\n }\n public String nextString() {\n try {\n return br.readLine();\n } catch (IOException e) {\n eof = true;\n return null;\n }\n }\n public int nextInt() throws IOException {\n return Integer.parseInt(nextToken());\n }\n public long nextLong() throws IOException {\n return Long.parseLong(nextToken());\n }\n public double nextDouble() throws IOException {\n return Double.parseDouble(nextToken());\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
// Template for atcoder
public class Main {
BufferedReader br;
PrintWriter out;
StringTokenizer st;
boolean eof;
final long MOD = 1000L * 1000L * 1000L + 7;
private static final int[] dx = {0, -1, 0, 1};
private static final int[] dy = {1, 0, -1, 0};
void solve() throws IOException {
long a = nextInt();
long res = a + a * a + a * a * a;
outln(res);
}
void shuffle(int[] a) {
int n = a.length;
for(int i = 0; i < n; i++) {
int r = i + (int) (Math.random() * (n - i));
int tmp = a[i];
a[i] = a[r];
a[r] = tmp;
}
}
private void outln(Object o) {
out.println(o);
}
private void out(Object o) {
out.print(o);
}
public Main() throws IOException {
br = new BufferedReader(new InputStreamReader(System.in));
out = new PrintWriter(System.out);
solve();
out.close();
}
public static void main(String[] args) throws IOException {
new Main();
}
public long[] nextLongArr(int n) throws IOException{
long[] res = new long[n];
for(int i = 0; i < n; i++)
res[i] = nextLong();
return res;
}
public int[] nextIntArr(int n) throws IOException {
int[] res = new int[n];
for(int i = 0; i < n; i++)
res[i] = nextInt();
return res;
}
public String nextToken() {
while (st == null || !st.hasMoreTokens()) {
try {
st = new StringTokenizer(br.readLine());
} catch (Exception e) {
eof = true;
return null;
}
}
return st.nextToken();
}
public String nextString() {
try {
return br.readLine();
} catch (IOException e) {
eof = true;
return null;
}
}
public int nextInt() throws IOException {
return Integer.parseInt(nextToken());
}
public long nextLong() throws IOException {
return Long.parseLong(nextToken());
}
public double nextDouble() throws IOException {
return Double.parseDouble(nextToken());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
36,
5
],
[
36,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
23,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
29,
29
],
[
29,
30
],
[
29,
31
],
[
29,
32
],
[
6,
33
],
[
33,
34
],
[
0,
35
],
[
35,
36
],
[
35,
37
]
]
| [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner stdIn = new Scanner(System.in);\n int a = stdIn.nextInt();\n System.out.print(a + a*a + a*a*a);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner stdIn = new Scanner(System.in);\n int a = stdIn.nextInt();\n System.out.print(a + a*a + a*a*a);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner stdIn = new Scanner(System.in);\n int a = stdIn.nextInt();\n System.out.print(a + a*a + a*a*a);\n }",
"main",
"{\n Scanner stdIn = new Scanner(System.in);\n int a = stdIn.nextInt();\n System.out.print(a + a*a + a*a*a);\n }",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int a = stdIn.nextInt();",
"a",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"System.out.print(a + a*a + a*a*a)",
"System.out.print",
"System.out",
"System",
"System.out",
"a + a*a + a*a*a",
"a + a*a + a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner stdIn = new Scanner(System.in);\n int a = stdIn.nextInt();\n System.out.print(a + a*a + a*a*a);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner stdIn = new Scanner(System.in);\n int a = stdIn.nextInt();\n System.out.print(a + a*a + a*a*a);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
int a = stdIn.nextInt();
System.out.print(a + a*a + a*a*a);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
36,
5
],
[
36,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
23,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
6,
33
],
[
33,
34
],
[
0,
35
],
[
35,
36
],
[
35,
37
]
]
| [
"/*\nWritten by Kabir Kanha Arora\n@kabirkanha\n */\n\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long n = scanner.nextLong();\n System.out.println(n + (n * n) + (n * n * n));\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long n = scanner.nextLong();\n System.out.println(n + (n * n) + (n * n * n));\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long n = scanner.nextLong();\n System.out.println(n + (n * n) + (n * n * n));\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n long n = scanner.nextLong();\n System.out.println(n + (n * n) + (n * n * n));\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"long n = scanner.nextLong();",
"n",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"System.out.println(n + (n * n) + (n * n * n))",
"System.out.println",
"System.out",
"System",
"System.out",
"n + (n * n) + (n * n * n)",
"n + (n * n) + (n * n * n)",
"n",
"(n * n)",
"n",
"n",
"(n * n * n)",
"n * n * n",
"n",
"n",
"n",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long n = scanner.nextLong();\n System.out.println(n + (n * n) + (n * n * n));\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long n = scanner.nextLong();\n System.out.println(n + (n * n) + (n * n * n));\n }\n}",
"Main"
]
| /*
Written by Kabir Kanha Arora
@kabirkanha
*/
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
long n = scanner.nextLong();
System.out.println(n + (n * n) + (n * n * n));
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
38,
5
],
[
38,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
25,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
6,
35
],
[
35,
36
],
[
0,
37
],
[
37,
38
],
[
37,
39
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scn = new Scanner(System.in)) {\n\t\t\tint num = scn.nextInt();\n\t\t\tSystem.out.println(num + (num*num) + (num*num*num));\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 scn = new Scanner(System.in)) {\n\t\t\tint num = scn.nextInt();\n\t\t\tSystem.out.println(num + (num*num) + (num*num*num));\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry (Scanner scn = new Scanner(System.in)) {\n\t\t\tint num = scn.nextInt();\n\t\t\tSystem.out.println(num + (num*num) + (num*num*num));\n\t\t}\n\t}",
"main",
"{\n\t\ttry (Scanner scn = new Scanner(System.in)) {\n\t\t\tint num = scn.nextInt();\n\t\t\tSystem.out.println(num + (num*num) + (num*num*num));\n\t\t}\n\t}",
"try (Scanner scn = new Scanner(System.in)) {\n\t\t\tint num = scn.nextInt();\n\t\t\tSystem.out.println(num + (num*num) + (num*num*num));\n\t\t}",
"{\n\t\t\tint num = scn.nextInt();\n\t\t\tSystem.out.println(num + (num*num) + (num*num*num));\n\t\t}",
"Scanner scn = new Scanner(System.in)",
"Scanner scn = new Scanner(System.in)",
"new Scanner(System.in)",
"int num = scn.nextInt();",
"num",
"scn.nextInt()",
"scn.nextInt",
"scn",
"System.out.println(num + (num*num) + (num*num*num))",
"System.out.println",
"System.out",
"System",
"System.out",
"num + (num*num) + (num*num*num)",
"num + (num*num) + (num*num*num)",
"num",
"(num*num)",
"num",
"num",
"(num*num*num)",
"num*num*num",
"num",
"num",
"num",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scn = new Scanner(System.in)) {\n\t\t\tint num = scn.nextInt();\n\t\t\tSystem.out.println(num + (num*num) + (num*num*num));\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scn = new Scanner(System.in)) {\n\t\t\tint num = scn.nextInt();\n\t\t\tSystem.out.println(num + (num*num) + (num*num*num));\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner scn = new Scanner(System.in)) {
int num = scn.nextInt();
System.out.println(num + (num*num) + (num*num*num));
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
44,
5
],
[
44,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
22,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
27,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
6,
41
],
[
41,
42
],
[
0,
43
],
[
43,
44
],
[
43,
45
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int result = (int) (a + Math.pow(a, 2) + Math.pow(a, 3));\n System.out.println(result);\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int result = (int) (a + Math.pow(a, 2) + Math.pow(a, 3));\n System.out.println(result);\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int result = (int) (a + Math.pow(a, 2) + Math.pow(a, 3));\n System.out.println(result);\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int result = (int) (a + Math.pow(a, 2) + Math.pow(a, 3));\n System.out.println(result);\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int result = (int) (a + Math.pow(a, 2) + Math.pow(a, 3));",
"result",
"(int) (a + Math.pow(a, 2) + Math.pow(a, 3))",
"a + Math.pow(a, 2) + Math.pow(a, 3)",
"a",
"Math.pow(a, 2)",
"Math.pow",
"Math",
"a",
"2",
"Math.pow(a, 3)",
"Math.pow",
"Math",
"a",
"3",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int result = (int) (a + Math.pow(a, 2) + Math.pow(a, 3));\n System.out.println(result);\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int result = (int) (a + Math.pow(a, 2) + Math.pow(a, 3));\n System.out.println(result);\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int result = (int) (a + Math.pow(a, 2) + Math.pow(a, 3));
System.out.println(result);
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
0,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
42,
8
],
[
42,
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
],
[
23,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
11,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
9,
39
],
[
39,
40
],
[
0,
41
],
[
41,
42
],
[
41,
43
]
]
| [
"\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(new InputStreamReader(System.in));\n\t\tint a = s.nextInt();\n\t\ta = a + (a*a) + (a*a*a);\n\t\tSystem.out.println(a);\n\t}\n}",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(new InputStreamReader(System.in));\n\t\tint a = s.nextInt();\n\t\ta = a + (a*a) + (a*a*a);\n\t\tSystem.out.println(a);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner s = new Scanner(new InputStreamReader(System.in));\n\t\tint a = s.nextInt();\n\t\ta = a + (a*a) + (a*a*a);\n\t\tSystem.out.println(a);\n\t}",
"main",
"{\n\t\tScanner s = new Scanner(new InputStreamReader(System.in));\n\t\tint a = s.nextInt();\n\t\ta = a + (a*a) + (a*a*a);\n\t\tSystem.out.println(a);\n\t}",
"Scanner s = new Scanner(new InputStreamReader(System.in));",
"s",
"new Scanner(new InputStreamReader(System.in))",
"int a = s.nextInt();",
"a",
"s.nextInt()",
"s.nextInt",
"s",
"a = a + (a*a) + (a*a*a)",
"a",
"a + (a*a) + (a*a*a)",
"a + (a*a) + (a*a*a)",
"a",
"(a*a)",
"a",
"a",
"(a*a*a)",
"a*a*a",
"a",
"a",
"a",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(new InputStreamReader(System.in));\n\t\tint a = s.nextInt();\n\t\ta = a + (a*a) + (a*a*a);\n\t\tSystem.out.println(a);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(new InputStreamReader(System.in));\n\t\tint a = s.nextInt();\n\t\ta = a + (a*a) + (a*a*a);\n\t\tSystem.out.println(a);\n\t}\n}",
"Main"
]
|
import java.io.InputStreamReader;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(new InputStreamReader(System.in));
int a = s.nextInt();
a = a + (a*a) + (a*a*a);
System.out.println(a);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
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
],
[
151,
20
],
[
151,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
23,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
37,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
23,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
21,
53
],
[
53,
54
],
[
151,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
55,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
55,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
70,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
80,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
69,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
55,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
55,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
111,
112
],
[
55,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
120,
121
],
[
55,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
128,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
124,
141
],
[
141,
142
],
[
55,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
143,
148
],
[
148,
149
],
[
0,
150
],
[
150,
151
],
[
150,
152
]
]
| [
"import java.io.*;\nimport java.io.BufferedReader; \nimport java.io.IOException; \nimport java.io.InputStreamReader; \nimport java.util.StringTokenizer; \nimport java.util.*;\n\n\npublic class Main \n{\n\n\t \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\n \n\n\t // Complete the hurdleRace function below.\n// public static void solve() {\n// \tFastReader s=new FastReader();\n\n \n public static void main(String[] args) throws IOException {\n \tFastReader s=new FastReader();\n \tint n = s.nextInt();\n \tint v = (int)(n+Math.pow(n, 2)+Math.pow(n, 3));\n \tSystem.out.println(v);\n \t\n }\t\n}",
"import java.io.*;",
"io.*",
"java",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.util.*;",
"util.*",
"java",
"public class Main \n{\n\n\t \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\n \n\n\t // Complete the hurdleRace function below.\n// public static void solve() {\n// \tFastReader s=new FastReader();\n\n \n public static void main(String[] args) throws IOException {\n \tFastReader s=new FastReader();\n \tint n = s.nextInt();\n \tint v = (int)(n+Math.pow(n, 2)+Math.pow(n, 3));\n \tSystem.out.println(v);\n \t\n }\t\n}",
"Main",
"public static void main(String[] args) throws IOException {\n \tFastReader s=new FastReader();\n \tint n = s.nextInt();\n \tint v = (int)(n+Math.pow(n, 2)+Math.pow(n, 3));\n \tSystem.out.println(v);\n \t\n }",
"main",
"{\n \tFastReader s=new FastReader();\n \tint n = s.nextInt();\n \tint v = (int)(n+Math.pow(n, 2)+Math.pow(n, 3));\n \tSystem.out.println(v);\n \t\n }",
"FastReader s=new FastReader();",
"s",
"new FastReader()",
"int n = s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"int v = (int)(n+Math.pow(n, 2)+Math.pow(n, 3));",
"v",
"(int)(n+Math.pow(n, 2)+Math.pow(n, 3))",
"n+Math.pow(n, 2)+Math.pow(n, 3)",
"n",
"Math.pow(n, 2)",
"Math.pow",
"Math",
"n",
"2",
"Math.pow(n, 3)",
"Math.pow",
"Math",
"n",
"3",
"System.out.println(v)",
"System.out.println",
"System.out",
"System",
"System.out",
"v",
"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{\n\n\t \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\n \n\n\t // Complete the hurdleRace function below.\n// public static void solve() {\n// \tFastReader s=new FastReader();\n\n \n public static void main(String[] args) throws IOException {\n \tFastReader s=new FastReader();\n \tint n = s.nextInt();\n \tint v = (int)(n+Math.pow(n, 2)+Math.pow(n, 3));\n \tSystem.out.println(v);\n \t\n }\t\n}",
"public class Main \n{\n\n\t \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\n \n\n\t // Complete the hurdleRace function below.\n// public static void solve() {\n// \tFastReader s=new FastReader();\n\n \n public static void main(String[] args) throws IOException {\n \tFastReader s=new FastReader();\n \tint n = s.nextInt();\n \tint v = (int)(n+Math.pow(n, 2)+Math.pow(n, 3));\n \tSystem.out.println(v);\n \t\n }\t\n}",
"Main"
]
| import java.io.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
import java.util.*;
public class Main
{
static class FastReader
{
BufferedReader br;
StringTokenizer st;
public FastReader()
{
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next()
{
while (st == null || !st.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;
}
}
// Complete the hurdleRace function below.
// public static void solve() {
// FastReader s=new FastReader();
public static void main(String[] args) throws IOException {
FastReader s=new FastReader();
int n = s.nextInt();
int v = (int)(n+Math.pow(n, 2)+Math.pow(n, 3));
System.out.println(v);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
39,
5
],
[
39,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
32,
32
],
[
32,
33
],
[
32,
34
],
[
32,
35
],
[
6,
36
],
[
36,
37
],
[
0,
38
],
[
38,
39
],
[
38,
40
]
]
| [
"import java.util.*;\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n \n \tSystem.out.println(n + n*n + 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\t\tint n = Integer.parseInt(sc.next());\n \n \tSystem.out.println(n + n*n + n*n*n);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n \n \tSystem.out.println(n + n*n + n*n*n);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n \n \tSystem.out.println(n + n*n + n*n*n);\n }",
"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",
"System.out.println(n + n*n + n*n*n)",
"System.out.println",
"System.out",
"System",
"System.out",
"n + n*n + n*n*n",
"n + n*n + n*n*n",
"n",
"n*n",
"n",
"n",
"n*n*n",
"n*n*n",
"n",
"n",
"n",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n \n \tSystem.out.println(n + n*n + n*n*n);\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n \n \tSystem.out.println(n + n*n + n*n*n);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
System.out.println(n + n*n + n*n*n);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
36,
5
],
[
36,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
23,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
6,
33
],
[
33,
34
],
[
0,
35
],
[
35,
36
],
[
35,
37
]
]
| [
"import java.util.*;\npublic class Main {\n\n public static void main(String[] args) {\n Scanner yomi = new Scanner(System.in);\n int k = yomi.nextInt();\n System.out.println(k+(k*k)+(k*k*k));\n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n Scanner yomi = new Scanner(System.in);\n int k = yomi.nextInt();\n System.out.println(k+(k*k)+(k*k*k));\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner yomi = new Scanner(System.in);\n int k = yomi.nextInt();\n System.out.println(k+(k*k)+(k*k*k));\n }",
"main",
"{\n Scanner yomi = new Scanner(System.in);\n int k = yomi.nextInt();\n System.out.println(k+(k*k)+(k*k*k));\n }",
"Scanner yomi = new Scanner(System.in);",
"yomi",
"new Scanner(System.in)",
"int k = yomi.nextInt();",
"k",
"yomi.nextInt()",
"yomi.nextInt",
"yomi",
"System.out.println(k+(k*k)+(k*k*k))",
"System.out.println",
"System.out",
"System",
"System.out",
"k+(k*k)+(k*k*k)",
"k+(k*k)+(k*k*k)",
"k",
"(k*k)",
"k",
"k",
"(k*k*k)",
"k*k*k",
"k",
"k",
"k",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner yomi = new Scanner(System.in);\n int k = yomi.nextInt();\n System.out.println(k+(k*k)+(k*k*k));\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner yomi = new Scanner(System.in);\n int k = yomi.nextInt();\n System.out.println(k+(k*k)+(k*k*k));\n }\n\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner yomi = new Scanner(System.in);
int k = yomi.nextInt();
System.out.println(k+(k*k)+(k*k*k));
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
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
],
[
66,
32
],
[
66,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
35,
44
],
[
44,
45
],
[
44,
46
],
[
47,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
53,
53
],
[
53,
54
],
[
53,
55
],
[
53,
56
],
[
35,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
33,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
]
| [
"import java.util.Scanner;\nimport java.awt.image.BandedSampleModel;\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.lang.reflect.Array;\nimport java.util.Arrays;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\npublic class Main {\n\n\n public static void main(String args[])\n {\n Scanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n int ans=a+a*a+a*a*a;\n System.out.println(ans);\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.awt.image.BandedSampleModel;",
"BandedSampleModel",
"java.awt.image",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.lang.reflect.Array;",
"Array",
"java.lang.reflect",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\n public static void main(String args[])\n {\n Scanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n int ans=a+a*a+a*a*a;\n System.out.println(ans);\n\n }\n}",
"Main",
"public static void main(String args[])\n {\n Scanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n int ans=a+a*a+a*a*a;\n System.out.println(ans);\n\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n int ans=a+a*a+a*a*a;\n System.out.println(ans);\n\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a=sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans=a+a*a+a*a*a;",
"ans",
"a+a*a+a*a*a",
"a+a*a+a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String args[]",
"args",
"public class Main {\n\n\n public static void main(String args[])\n {\n Scanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n int ans=a+a*a+a*a*a;\n System.out.println(ans);\n\n }\n}",
"public class Main {\n\n\n public static void main(String args[])\n {\n Scanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n int ans=a+a*a+a*a*a;\n System.out.println(ans);\n\n }\n}",
"Main"
]
| import java.util.Scanner;
import java.awt.image.BandedSampleModel;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int ans=a+a*a+a*a*a;
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
42,
5
],
[
42,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
23,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
29,
29
],
[
29,
30
],
[
29,
31
],
[
29,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
6,
39
],
[
39,
40
],
[
0,
41
],
[
41,
42
],
[
41,
43
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint n = Integer.parseInt(scanner.nextLine());\n\n \t\tlong ans = n + n * n + n* n* n;\n\n \t\tSystem.out.println(ans);\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 scanner = new Scanner(System.in);\n\n\t\tint n = Integer.parseInt(scanner.nextLine());\n\n \t\tlong ans = n + n * n + n* n* n;\n\n \t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint n = Integer.parseInt(scanner.nextLine());\n\n \t\tlong ans = n + n * n + n* n* n;\n\n \t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint n = Integer.parseInt(scanner.nextLine());\n\n \t\tlong ans = n + n * n + n* n* n;\n\n \t\tSystem.out.println(ans);\n\t}",
"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",
"long ans = n + n * n + n* n* n;",
"ans",
"n + n * n + n* n* n",
"n + n * n + n* n* n",
"n",
"n * n",
"n",
"n",
"n* n* n",
"n* n* n",
"n",
"n",
"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) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint n = Integer.parseInt(scanner.nextLine());\n\n \t\tlong ans = n + n * n + n* n* n;\n\n \t\tSystem.out.println(ans);\n\t}\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint n = Integer.parseInt(scanner.nextLine());\n\n \t\tlong ans = n + n * n + n* n* n;\n\n \t\tSystem.out.println(ans);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = Integer.parseInt(scanner.nextLine());
long ans = n + n * n + n* n* n;
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
20,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
26,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
6,
36
],
[
36,
37
]
]
| [
"\nimport java.util.*;\n\n\nclass Main {\n\tpublic static void main (String[] args) {\n\t Scanner s=new Scanner(System.in);\n\t int a=s.nextInt();\n int sum=a+a*a+a*a*a;\n System.out.println(sum);\n\t}}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\tpublic static void main (String[] args) {\n\t Scanner s=new Scanner(System.in);\n\t int a=s.nextInt();\n int sum=a+a*a+a*a*a;\n System.out.println(sum);\n\t}}",
"Main",
"public static void main (String[] args) {\n\t Scanner s=new Scanner(System.in);\n\t int a=s.nextInt();\n int sum=a+a*a+a*a*a;\n System.out.println(sum);\n\t}",
"main",
"{\n\t Scanner s=new Scanner(System.in);\n\t int a=s.nextInt();\n int sum=a+a*a+a*a*a;\n System.out.println(sum);\n\t}",
"Scanner s=new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int a=s.nextInt();",
"a",
"s.nextInt()",
"s.nextInt",
"s",
"int sum=a+a*a+a*a*a;",
"sum",
"a+a*a+a*a*a",
"a+a*a+a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args"
]
|
import java.util.*;
class Main {
public static void main (String[] args) {
Scanner s=new Scanner(System.in);
int a=s.nextInt();
int sum=a+a*a+a*a*a;
System.out.println(sum);
}}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
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
],
[
42,
11
],
[
42,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
29,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
35,
35
],
[
35,
36
],
[
35,
37
],
[
35,
38
],
[
12,
39
],
[
39,
40
],
[
0,
41
],
[
41,
42
],
[
41,
43
]
]
| [
"\nimport java.util.*;\nimport java.io.*;\n\nimport static java.lang.Character.isUpperCase;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int a = in.nextInt();\n System.out.println(a + a*a + a*a*a);\n\n\n\n\n\n\n }\n\n\n\n\n\n\n\n }\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import static java.lang.Character.isUpperCase;",
"import static java.lang.Character.isUpperCase;",
"import static java.lang.Character.isUpperCase;",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int a = in.nextInt();\n System.out.println(a + a*a + a*a*a);\n\n\n\n\n\n\n }\n\n\n\n\n\n\n\n }",
"Main",
"public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int a = in.nextInt();\n System.out.println(a + a*a + a*a*a);\n\n\n\n\n\n\n }",
"main",
"{\n\n Scanner in = new Scanner(System.in);\n int a = in.nextInt();\n System.out.println(a + a*a + a*a*a);\n\n\n\n\n\n\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int a = in.nextInt();",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"System.out.println(a + a*a + a*a*a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a + a*a + a*a*a",
"a + a*a + a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int a = in.nextInt();\n System.out.println(a + a*a + a*a*a);\n\n\n\n\n\n\n }\n\n\n\n\n\n\n\n }",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int a = in.nextInt();\n System.out.println(a + a*a + a*a*a);\n\n\n\n\n\n\n }\n\n\n\n\n\n\n\n }",
"Main"
]
|
import java.util.*;
import java.io.*;
import static java.lang.Character.isUpperCase;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a = in.nextInt();
System.out.println(a + a*a + a*a*a);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
0,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
48,
5
],
[
48,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
6,
45
],
[
45,
46
],
[
0,
47
],
[
47,
48
],
[
47,
49
]
]
| [
"import java.util.Scanner;\n\n\npublic class Main {\n\n\n//\tfinal int MOD = 1000000007;\n\n//\tpublic static int min = 3000000;\n\n\tpublic static void main(String[] args) {\n\n\t\tint ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n//\t\tlong k = sc.nextLong();\n\n\t\tint n = sc.nextInt();\n\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n\t\tans = n + (n*n) + (n*n*n);\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n\n\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\n//\tfinal int MOD = 1000000007;\n\n//\tpublic static int min = 3000000;\n\n\tpublic static void main(String[] args) {\n\n\t\tint ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n//\t\tlong k = sc.nextLong();\n\n\t\tint n = sc.nextInt();\n\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n\t\tans = n + (n*n) + (n*n*n);\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n\n\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tint ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n//\t\tlong k = sc.nextLong();\n\n\t\tint n = sc.nextInt();\n\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n\t\tans = n + (n*n) + (n*n*n);\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\tint ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n//\t\tlong k = sc.nextLong();\n\n\t\tint n = sc.nextInt();\n\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n\t\tans = n + (n*n) + (n*n*n);\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}",
"int ans = 0;",
"ans",
"0",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"boolean f = false;",
"f",
"false",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"ans = n + (n*n) + (n*n*n)",
"ans",
"n + (n*n) + (n*n*n)",
"n + (n*n) + (n*n*n)",
"n",
"(n*n)",
"n",
"n",
"(n*n*n)",
"n*n*n",
"n",
"n",
"n",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\n//\tfinal int MOD = 1000000007;\n\n//\tpublic static int min = 3000000;\n\n\tpublic static void main(String[] args) {\n\n\t\tint ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n//\t\tlong k = sc.nextLong();\n\n\t\tint n = sc.nextInt();\n\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n\t\tans = n + (n*n) + (n*n*n);\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n\n\n\n}",
"public class Main {\n\n\n//\tfinal int MOD = 1000000007;\n\n//\tpublic static int min = 3000000;\n\n\tpublic static void main(String[] args) {\n\n\t\tint ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n//\t\tlong k = sc.nextLong();\n\n\t\tint n = sc.nextInt();\n\n\n\n\t\t//-------------------------------------------------------------------------------------\n\n\t\tans = n + (n*n) + (n*n*n);\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n\n\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
// final int MOD = 1000000007;
// public static int min = 3000000;
public static void main(String[] args) {
int ans = 0;
Scanner sc = new Scanner(System.in);
boolean f = false;
// long k = sc.nextLong();
int n = sc.nextInt();
//-------------------------------------------------------------------------------------
ans = n + (n*n) + (n*n*n);
//-------------------------------------------------------------------------------------
// if(f) {
// System.out.println("Yes");
// } else {
// System.out.println("No");
// }
System.out.println(ans);
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
39,
8
],
[
39,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
9,
36
],
[
36,
37
],
[
0,
38
],
[
38,
39
],
[
38,
40
]
]
| [
"import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\npublic static void main(String[] args) throws IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tSystem.out.println(n+(n*n)+(n*n*n));\n}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\npublic static void main(String[] args) throws IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tSystem.out.println(n+(n*n)+(n*n*n));\n}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tSystem.out.println(n+(n*n)+(n*n*n));\n}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tSystem.out.println(n+(n*n)+(n*n*n));\n}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"System.out.println(n+(n*n)+(n*n*n))",
"System.out.println",
"System.out",
"System",
"System.out",
"n+(n*n)+(n*n*n)",
"n+(n*n)+(n*n*n)",
"n",
"(n*n)",
"n",
"n",
"(n*n*n)",
"n*n*n",
"n",
"n",
"n",
"String[] args",
"args",
"public class Main {\n\npublic static void main(String[] args) throws IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tSystem.out.println(n+(n*n)+(n*n*n));\n}\n}",
"public class Main {\n\npublic static void main(String[] args) throws IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tSystem.out.println(n+(n*n)+(n*n*n));\n}\n}",
"Main"
]
| import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
System.out.println(n+(n*n)+(n*n*n));
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
4,
18,
13,
0,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
48,
5
],
[
48,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
29,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
35,
35
],
[
35,
36
],
[
35,
37
],
[
35,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
6,
45
],
[
45,
46
],
[
0,
47
],
[
47,
48
],
[
47,
49
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int a = Integer.parseInt(scanner.next());\n int answer = 0;\n\n scanner.close();\n answer = a + a * a + a * a * a;\n \n System.out.println(answer);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int a = Integer.parseInt(scanner.next());\n int answer = 0;\n\n scanner.close();\n answer = a + a * a + a * a * a;\n \n System.out.println(answer);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int a = Integer.parseInt(scanner.next());\n int answer = 0;\n\n scanner.close();\n answer = a + a * a + a * a * a;\n \n System.out.println(answer);\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int a = Integer.parseInt(scanner.next());\n int answer = 0;\n\n scanner.close();\n answer = a + a * a + a * a * a;\n \n System.out.println(answer);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int a = Integer.parseInt(scanner.next());",
"a",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"int answer = 0;",
"answer",
"0",
"scanner.close()",
"scanner.close",
"scanner",
"answer = a + a * a + a * a * a",
"answer",
"a + a * a + a * a * a",
"a + a * a + a * a * a",
"a",
"a * a",
"a",
"a",
"a * a * a",
"a * a * a",
"a",
"a",
"a",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int a = Integer.parseInt(scanner.next());\n int answer = 0;\n\n scanner.close();\n answer = a + a * a + a * a * a;\n \n System.out.println(answer);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int a = Integer.parseInt(scanner.next());\n int answer = 0;\n\n scanner.close();\n answer = a + a * a + a * a * a;\n \n System.out.println(answer);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = Integer.parseInt(scanner.next());
int answer = 0;
scanner.close();
answer = a + a * a + a * a * a;
System.out.println(answer);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
39,
5
],
[
39,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
20,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
6,
36
],
[
36,
37
],
[
0,
38
],
[
38,
39
],
[
38,
40
]
]
| [
"import java.util.Scanner;\n\n\npublic class Main{\n \t\n \tpublic static void main(String args[]){\n \tScanner sc=new Scanner(System.in);\n \tint i=sc.nextInt();\n \tint ans=i+(i*i)+(i*i*i);\n \tSystem.out.println(ans);\n }\n \n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n \t\n \tpublic static void main(String args[]){\n \tScanner sc=new Scanner(System.in);\n \tint i=sc.nextInt();\n \tint ans=i+(i*i)+(i*i*i);\n \tSystem.out.println(ans);\n }\n \n}",
"Main",
"public static void main(String args[]){\n \tScanner sc=new Scanner(System.in);\n \tint i=sc.nextInt();\n \tint ans=i+(i*i)+(i*i*i);\n \tSystem.out.println(ans);\n }",
"main",
"{\n \tScanner sc=new Scanner(System.in);\n \tint i=sc.nextInt();\n \tint ans=i+(i*i)+(i*i*i);\n \tSystem.out.println(ans);\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int i=sc.nextInt();",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans=i+(i*i)+(i*i*i);",
"ans",
"i+(i*i)+(i*i*i)",
"i+(i*i)+(i*i*i)",
"i",
"(i*i)",
"i",
"i",
"(i*i*i)",
"i*i*i",
"i",
"i",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String args[]",
"args",
"public class Main{\n \t\n \tpublic static void main(String args[]){\n \tScanner sc=new Scanner(System.in);\n \tint i=sc.nextInt();\n \tint ans=i+(i*i)+(i*i*i);\n \tSystem.out.println(ans);\n }\n \n}",
"public class Main{\n \t\n \tpublic static void main(String args[]){\n \tScanner sc=new Scanner(System.in);\n \tint i=sc.nextInt();\n \tint ans=i+(i*i)+(i*i*i);\n \tSystem.out.println(ans);\n }\n \n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String args[]){
Scanner sc=new Scanner(System.in);
int i=sc.nextInt();
int ans=i+(i*i)+(i*i*i);
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
2,
17,
17,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
4,
18,
13,
0,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
2,
17,
17,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
23,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
17,
41,
13,
42,
2,
0,
13,
4,
13,
40,
17,
30,
14,
2,
13,
17,
3,
0,
18,
13,
40,
13,
13,
29,
20,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
2,
13,
17,
30,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
0,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
0,
13,
4,
18,
13,
13,
0,
13,
17,
13,
14,
2,
13,
40,
17,
0,
18,
13,
17,
40,
17,
12,
13,
30,
14,
2,
13,
13,
4,
13,
29,
18,
13,
40,
13,
12,
13,
30,
14,
2,
13,
17,
29,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
392,
14
],
[
392,
15
],
[
15,
16
],
[
15,
17
],
[
392,
18
],
[
18,
19
],
[
18,
20
],
[
392,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
392,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
392,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
39
],
[
39,
40
],
[
39,
41
],
[
42,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
48,
48
],
[
48,
49
],
[
48,
50
],
[
48,
51
],
[
33,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
33,
56
],
[
56,
57
],
[
57,
58
],
[
31,
59
],
[
59,
60
],
[
392,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
61,
68
],
[
68,
69
],
[
61,
70
],
[
70,
71
],
[
61,
72
],
[
72,
73
],
[
61,
74
],
[
74,
75
],
[
61,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
78,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
61,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
97,
99
],
[
93,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
103,
105
],
[
91,
106
],
[
106,
107
],
[
61,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
110,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
121,
126
],
[
126,
127
],
[
120,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
128,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
134,
139
],
[
110,
140
],
[
140,
141
],
[
61,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
144,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
144,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
162,
164
],
[
144,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
144,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
173,
178
],
[
172,
179
],
[
179,
180
],
[
179,
181
],
[
171,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
185,
191
],
[
144,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
195,
196
],
[
144,
197
],
[
197,
198
],
[
61,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
201,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
201,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
219,
221
],
[
201,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
201,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
230,
235
],
[
229,
236
],
[
236,
237
],
[
236,
238
],
[
228,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
244,
246
],
[
243,
247
],
[
242,
248
],
[
201,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
252,
253
],
[
201,
254
],
[
254,
255
],
[
61,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
258,
262
],
[
262,
263
],
[
262,
264
],
[
258,
265
],
[
265,
266
],
[
265,
267
],
[
267,
268
],
[
258,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
269,
273
],
[
273,
274
],
[
273,
275
],
[
275,
276
],
[
258,
277
],
[
277,
278
],
[
277,
279
],
[
279,
280
],
[
279,
281
],
[
258,
282
],
[
282,
283
],
[
282,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
258,
288
],
[
288,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
291,
293
],
[
293,
294
],
[
290,
295
],
[
289,
296
],
[
296,
297
],
[
296,
298
],
[
288,
299
],
[
299,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
304,
306
],
[
303,
307
],
[
302,
308
],
[
258,
309
],
[
309,
310
],
[
310,
311
],
[
310,
312
],
[
309,
313
],
[
313,
314
],
[
314,
315
],
[
315,
316
],
[
316,
317
],
[
317,
318
],
[
317,
319
],
[
319,
320
],
[
316,
321
],
[
315,
322
],
[
322,
323
],
[
322,
324
],
[
314,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
328,
332
],
[
332,
333
],
[
332,
334
],
[
258,
335
],
[
335,
336
],
[
335,
337
],
[
337,
338
],
[
338,
339
],
[
258,
340
],
[
340,
341
],
[
61,
342
],
[
342,
343
],
[
342,
344
],
[
344,
345
],
[
345,
346
],
[
345,
347
],
[
347,
348
],
[
348,
349
],
[
347,
350
],
[
347,
351
],
[
351,
352
],
[
351,
353
],
[
347,
354
],
[
344,
355
],
[
355,
356
],
[
356,
357
],
[
356,
358
],
[
358,
359
],
[
355,
360
],
[
360,
361
],
[
361,
362
],
[
361,
363
],
[
360,
364
],
[
364,
365
],
[
61,
366
],
[
366,
367
],
[
366,
368
],
[
368,
369
],
[
369,
370
],
[
370,
371
],
[
370,
372
],
[
369,
373
],
[
373,
374
],
[
368,
375
],
[
375,
376
],
[
376,
377
],
[
376,
378
],
[
378,
379
],
[
61,
380
],
[
380,
381
],
[
380,
382
],
[
382,
383
],
[
383,
384
],
[
384,
385
],
[
384,
386
],
[
383,
387
],
[
382,
388
],
[
388,
389
],
[
389,
390
],
[
0,
391
],
[
391,
392
],
[
391,
393
]
]
| [
"import java.io.*;\nimport java.math.BigDecimal;\nimport java.math.BigInteger;\nimport java.util.*;\n\n\n\n\npublic class Main {\n\tstatic class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n }\n\n\tpublic static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));\n\tpublic static Reader sc = new Reader();\n \n\tstatic int mod = (int)(1e9+7),MAX=(int)(2e6+10);\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tint a = sc.nextInt();\n\t\ta = a + a*a + a*a*a;\n\t\tout.print(a);\n\t out.close();\n\t}\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tstatic class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n }\n\n\tpublic static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));\n\tpublic static Reader sc = new Reader();\n \n\tstatic int mod = (int)(1e9+7),MAX=(int)(2e6+10);\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tint a = sc.nextInt();\n\t\ta = a + a*a + a*a*a;\n\t\tout.print(a);\n\t out.close();\n\t}\n\n}",
"Main",
"public static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));",
"out",
"new PrintWriter (new BufferedOutputStream(System.out))",
"public static Reader sc = new Reader();",
"sc",
"new Reader()",
"static int mod = (int)(1e9+7)",
"mod",
"(int)(1e9+7)",
"1e9",
"7",
"MAX=(int)(2e6+10);",
"MAX",
"(int)(2e6+10)",
"2e6",
"10",
"public static void main(String[] args) throws IOException{\n\n\t\tint a = sc.nextInt();\n\t\ta = a + a*a + a*a*a;\n\t\tout.print(a);\n\t out.close();\n\t}",
"main",
"{\n\n\t\tint a = sc.nextInt();\n\t\ta = a + a*a + a*a*a;\n\t\tout.print(a);\n\t out.close();\n\t}",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a = a + a*a + a*a*a",
"a",
"a + a*a + a*a*a",
"a + a*a + a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"out.print(a)",
"out.print",
"out",
"a",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n }",
"Reader",
"final private int BUFFER_SIZE = 1 << 16;",
"BUFFER_SIZE",
"1 << 16",
"1",
"16",
"private DataInputStream din;",
"din",
"private byte[] buffer;",
"buffer",
"private int bufferPointer",
"bufferPointer",
"bytesRead;",
"bytesRead",
"public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"Reader",
"{ \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"din = new DataInputStream(System.in)",
"din",
"new DataInputStream(System.in)",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"Reader",
"{ \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"din = new DataInputStream(new FileInputStream(file_name))",
"din",
"new DataInputStream(new FileInputStream(file_name))",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"String file_name",
"file_name",
"public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }",
"readLine",
"{ \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }",
"byte[] buf = new byte[64];",
"buf",
"new byte[64]",
"64",
"int cnt = 0",
"cnt",
"0",
"c;",
"c",
"while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n }",
"(c = read()) != -1",
"(c = read())",
"c",
"read()",
"read",
"-1",
"1",
"{ \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n }",
"if (c == '\\n') \n break;",
"c == '\\n'",
"c",
"'\\n'",
"break;",
"buf[cnt++] = (byte) c",
"buf[cnt++]",
"buf",
"cnt++",
"cnt",
"(byte) c",
"return new String(buf, 0, cnt);",
"new String(buf, 0, cnt)",
"public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n }",
"nextInt",
"{ \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n }",
"int ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }",
"nextLong",
"{ \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }",
"long ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n }",
"nextDouble",
"{ \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n }",
"double ret = 0",
"ret",
"0",
"div = 1;",
"div",
"1",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }",
"c == '.'",
"c",
"'.'",
"{ \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }",
"while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n }",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret += (c - '0') / (div *= 10); \n }",
"ret += (c - '0') / (div *= 10)",
"ret",
"(c - '0') / (div *= 10)",
"(c - '0')",
"c",
"'0'",
"(div *= 10)",
"div",
"10",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }",
"fillBuffer",
"{ \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }",
"bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"bytesRead",
"din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"din.read",
"din",
"buffer",
"bufferPointer = 0",
"bufferPointer",
"0",
"BUFFER_SIZE",
"if (bytesRead == -1) \n buffer[0] = -1;",
"bytesRead == -1",
"bytesRead",
"-1",
"1",
"buffer[0] = -1",
"buffer[0]",
"buffer",
"0",
"-1",
"1",
"private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }",
"read",
"{ \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }",
"if (bufferPointer == bytesRead) \n fillBuffer();",
"bufferPointer == bytesRead",
"bufferPointer",
"bytesRead",
"fillBuffer()",
"fillBuffer",
"return buffer[bufferPointer++];",
"buffer[bufferPointer++]",
"buffer",
"bufferPointer++",
"bufferPointer",
"public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n }",
"close",
"{ \n if (din == null) \n return; \n din.close(); \n }",
"if (din == null) \n return;",
"din == null",
"din",
"null",
"return;",
"din.close()",
"din.close",
"din",
"public class Main {\n\tstatic class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n }\n\n\tpublic static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));\n\tpublic static Reader sc = new Reader();\n \n\tstatic int mod = (int)(1e9+7),MAX=(int)(2e6+10);\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tint a = sc.nextInt();\n\t\ta = a + a*a + a*a*a;\n\t\tout.print(a);\n\t out.close();\n\t}\n\n}",
"public class Main {\n\tstatic class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n }\n\n\tpublic static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));\n\tpublic static Reader sc = new Reader();\n \n\tstatic int mod = (int)(1e9+7),MAX=(int)(2e6+10);\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tint a = sc.nextInt();\n\t\ta = a + a*a + a*a*a;\n\t\tout.print(a);\n\t out.close();\n\t}\n\n}",
"Main"
]
| import java.io.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.*;
public class Main {
static class Reader
{
final private int BUFFER_SIZE = 1 << 16;
private DataInputStream din;
private byte[] buffer;
private int bufferPointer, bytesRead;
public Reader()
{
din = new DataInputStream(System.in);
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public Reader(String file_name) throws IOException
{
din = new DataInputStream(new FileInputStream(file_name));
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public String readLine() throws IOException
{
byte[] buf = new byte[64]; // line length
int cnt = 0, c;
while ((c = read()) != -1)
{
if (c == '\n')
break;
buf[cnt++] = (byte) c;
}
return new String(buf, 0, cnt);
}
public int nextInt() throws IOException
{
int ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do
{
ret = ret * 10 + c - '0';
} while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public long nextLong() throws IOException
{
long ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
}
while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public double nextDouble() throws IOException
{
double ret = 0, div = 1;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
}
while ((c = read()) >= '0' && c <= '9');
if (c == '.')
{
while ((c = read()) >= '0' && c <= '9')
{
ret += (c - '0') / (div *= 10);
}
}
if (neg)
return -ret;
return ret;
}
private void fillBuffer() throws IOException
{
bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
if (bytesRead == -1)
buffer[0] = -1;
}
private byte read() throws IOException
{
if (bufferPointer == bytesRead)
fillBuffer();
return buffer[bufferPointer++];
}
public void close() throws IOException
{
if (din == null)
return;
din.close();
}
}
public static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));
public static Reader sc = new Reader();
static int mod = (int)(1e9+7),MAX=(int)(2e6+10);
public static void main(String[] args) throws IOException{
int a = sc.nextInt();
a = a + a*a + a*a*a;
out.print(a);
out.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
41,
5
],
[
41,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
25,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
30,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
6,
38
],
[
38,
39
],
[
0,
40
],
[
40,
41
],
[
40,
42
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n System.out.println((int) (num + Math.pow(num, 2) + Math.pow(num, 3)));\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n System.out.println((int) (num + Math.pow(num, 2) + Math.pow(num, 3)));\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n System.out.println((int) (num + Math.pow(num, 2) + Math.pow(num, 3)));\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n System.out.println((int) (num + Math.pow(num, 2) + Math.pow(num, 3)));\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println((int) (num + Math.pow(num, 2) + Math.pow(num, 3)))",
"System.out.println",
"System.out",
"System",
"System.out",
"(int) (num + Math.pow(num, 2) + Math.pow(num, 3))",
"num + Math.pow(num, 2) + Math.pow(num, 3)",
"num",
"Math.pow(num, 2)",
"Math.pow",
"Math",
"num",
"2",
"Math.pow(num, 3)",
"Math.pow",
"Math",
"num",
"3",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n System.out.println((int) (num + Math.pow(num, 2) + Math.pow(num, 3)));\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n System.out.println((int) (num + Math.pow(num, 2) + Math.pow(num, 3)));\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
System.out.println((int) (num + Math.pow(num, 2) + Math.pow(num, 3)));
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
4,
18,
18,
13,
13,
4,
18,
20,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
29,
4,
18,
13,
2,
2,
13,
2,
13,
13,
2,
2,
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
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
14,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
6,
23
],
[
23,
24
],
[
54,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
34,
35
],
[
27,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
41,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
47,
47
],
[
47,
48
],
[
47,
49
],
[
47,
50
],
[
25,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n try(Scanner sc = new Scanner(System.in)) {\n System.out.println(new Main().run(sc));\n }\n }\n\n public String run(Scanner sc) {\n int a = Integer.parseInt(sc.nextLine());\n return String.valueOf(a + a*a + a*a*a);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n try(Scanner sc = new Scanner(System.in)) {\n System.out.println(new Main().run(sc));\n }\n }\n\n public String run(Scanner sc) {\n int a = Integer.parseInt(sc.nextLine());\n return String.valueOf(a + a*a + a*a*a);\n }\n}",
"Main",
"public static void main(String[] args) {\n try(Scanner sc = new Scanner(System.in)) {\n System.out.println(new Main().run(sc));\n }\n }",
"main",
"{\n try(Scanner sc = new Scanner(System.in)) {\n System.out.println(new Main().run(sc));\n }\n }",
"try(Scanner sc = new Scanner(System.in)) {\n System.out.println(new Main().run(sc));\n }",
"{\n System.out.println(new Main().run(sc));\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"System.out.println(new Main().run(sc))",
"System.out.println",
"System.out",
"System",
"System.out",
"new Main().run(sc)",
"new Main().run",
"new Main()",
"sc",
"String[] args",
"args",
"public String run(Scanner sc) {\n int a = Integer.parseInt(sc.nextLine());\n return String.valueOf(a + a*a + a*a*a);\n }",
"run",
"{\n int a = Integer.parseInt(sc.nextLine());\n return String.valueOf(a + a*a + a*a*a);\n }",
"int a = Integer.parseInt(sc.nextLine());",
"a",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"return String.valueOf(a + a*a + a*a*a);",
"String.valueOf(a + a*a + a*a*a)",
"String.valueOf",
"String",
"a + a*a + a*a*a",
"a + a*a + a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"Scanner sc",
"sc",
"public class Main {\n public static void main(String[] args) {\n try(Scanner sc = new Scanner(System.in)) {\n System.out.println(new Main().run(sc));\n }\n }\n\n public String run(Scanner sc) {\n int a = Integer.parseInt(sc.nextLine());\n return String.valueOf(a + a*a + a*a*a);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n try(Scanner sc = new Scanner(System.in)) {\n System.out.println(new Main().run(sc));\n }\n }\n\n public String run(Scanner sc) {\n int a = Integer.parseInt(sc.nextLine());\n return String.valueOf(a + a*a + a*a*a);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try(Scanner sc = new Scanner(System.in)) {
System.out.println(new Main().run(sc));
}
}
public String run(Scanner sc) {
int a = Integer.parseInt(sc.nextLine());
return String.valueOf(a + a*a + a*a*a);
}
}
|
[
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,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
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
],
[
42,
11
],
[
42,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
29,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
35,
35
],
[
35,
36
],
[
35,
37
],
[
35,
38
],
[
12,
39
],
[
39,
40
],
[
0,
41
],
[
41,
42
],
[
41,
43
]
]
| [
"import java.util.*;\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 a = sc.nextInt();\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"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 a = sc.nextInt();\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(a+a*a+a*a*a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a+a*a+a*a*a",
"a+a*a+a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"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 a = sc.nextInt();\n\t\tSystem.out.println(a+a*a+a*a*a);\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 a = sc.nextInt();\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}\n}",
"Main"
]
| import java.util.*;
import java.math.RoundingMode;
import java.math.BigDecimal;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
System.out.println(a+a*a+a*a*a);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
2,
2,
13,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
63,
14
],
[
63,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
17,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
33,
34
],
[
17,
35
],
[
35,
36
],
[
35,
37
],
[
38,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
38,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
17,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
17,
54
],
[
54,
55
],
[
55,
56
],
[
17,
57
],
[
57,
58
],
[
58,
59
],
[
15,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n double a = Double.parseDouble(st.nextToken());\n double result = a + Math.pow(a, 2) + Math.pow((double)a, 3); \n\n pw.println((int)result);\n br.close();\n pw.close();\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n double a = Double.parseDouble(st.nextToken());\n double result = a + Math.pow(a, 2) + Math.pow((double)a, 3); \n\n pw.println((int)result);\n br.close();\n pw.close();\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n double a = Double.parseDouble(st.nextToken());\n double result = a + Math.pow(a, 2) + Math.pow((double)a, 3); \n\n pw.println((int)result);\n br.close();\n pw.close();\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n double a = Double.parseDouble(st.nextToken());\n double result = a + Math.pow(a, 2) + Math.pow((double)a, 3); \n\n pw.println((int)result);\n br.close();\n pw.close();\n }",
"BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));",
"br",
"new BufferedReader(new java.io.InputStreamReader(System.in))",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"StringTokenizer st = new StringTokenizer(br.readLine());",
"st",
"new StringTokenizer(br.readLine())",
"double a = Double.parseDouble(st.nextToken());",
"a",
"Double.parseDouble(st.nextToken())",
"Double.parseDouble",
"Double",
"st.nextToken()",
"st.nextToken",
"st",
"double result = a + Math.pow(a, 2) + Math.pow((double)a, 3);",
"result",
"a + Math.pow(a, 2) + Math.pow((double)a, 3)",
"a + Math.pow(a, 2) + Math.pow((double)a, 3)",
"a",
"Math.pow(a, 2)",
"Math.pow",
"Math",
"a",
"2",
"Math.pow((double)a, 3)",
"Math.pow",
"Math",
"(double)a",
"3",
"pw.println((int)result)",
"pw.println",
"pw",
"(int)result",
"br.close()",
"br.close",
"br",
"pw.close()",
"pw.close",
"pw",
"String[] args",
"args",
"public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n double a = Double.parseDouble(st.nextToken());\n double result = a + Math.pow(a, 2) + Math.pow((double)a, 3); \n\n pw.println((int)result);\n br.close();\n pw.close();\n }\n}",
"public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n double a = Double.parseDouble(st.nextToken());\n double result = a + Math.pow(a, 2) + Math.pow((double)a, 3); \n\n pw.println((int)result);\n br.close();\n pw.close();\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
PrintWriter pw = new PrintWriter(System.out);
StringTokenizer st = new StringTokenizer(br.readLine());
double a = Double.parseDouble(st.nextToken());
double result = a + Math.pow(a, 2) + Math.pow((double)a, 3);
pw.println((int)result);
br.close();
pw.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
29,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
48,
5
],
[
48,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
6,
28
],
[
28,
29
],
[
48,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
35,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
41,
41
],
[
41,
42
],
[
41,
43
],
[
41,
44
],
[
30,
45
],
[
45,
46
],
[
0,
47
],
[
47,
48
],
[
47,
49
]
]
| [
"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 a = sc.nextInt();\n\n System.out.println(solve(a));\n\n sc.close();\n }\n\n static int solve(int a) {\n return a + a * a + a * a * a;\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 a = sc.nextInt();\n\n System.out.println(solve(a));\n\n sc.close();\n }\n\n static int solve(int a) {\n return a + a * a + a * a * a;\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int a = sc.nextInt();\n\n System.out.println(solve(a));\n\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int a = sc.nextInt();\n\n System.out.println(solve(a));\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(solve(a))",
"System.out.println",
"System.out",
"System",
"System.out",
"solve(a)",
"solve",
"a",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"static int solve(int a) {\n return a + a * a + a * a * a;\n }",
"solve",
"{\n return a + a * a + a * a * a;\n }",
"return a + a * a + a * a * a;",
"a + a * a + a * a * a",
"a + a * a + a * a * a",
"a",
"a * a",
"a",
"a",
"a * a * a",
"a * a * a",
"a",
"a",
"a",
"int a",
"a",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int a = sc.nextInt();\n\n System.out.println(solve(a));\n\n sc.close();\n }\n\n static int solve(int a) {\n return a + a * a + a * a * a;\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int a = sc.nextInt();\n\n System.out.println(solve(a));\n\n sc.close();\n }\n\n static int solve(int a) {\n return a + a * a + a * a * a;\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
System.out.println(solve(a));
sc.close();
}
static int solve(int a) {
return a + a * a + a * a * a;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
23,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
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
],
[
76,
38
],
[
76,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
39,
44
],
[
44,
45
],
[
76,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
50,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
65,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
71,
71
],
[
71,
72
],
[
71,
73
],
[
71,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
]
| [
"\timport java.util.ArrayDeque;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Comparator;\nimport java.util.Deque;\nimport java.util.HashMap;\nimport java.util.HashSet;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Queue;\nimport java.util.Scanner;\nimport java.util.Set;\n\t\n\tpublic class Main {\n\t\n\t\tpublic static void main(String[] args) {\n\t\t\texecute16_4();\n\t\t}\n\t\t\n\t\tprivate static void execute16_4() {\n\t\t\ttry \n\t\t\t(Scanner sc = new Scanner(System.in)) {\n\t\t\t\tint s = sc.nextInt();\n\t\t\t\tSystem.out.println(s+s*s+s*s*s);\n\t\t\t}\n\t\t}\n }",
"import java.util.ArrayDeque;",
"ArrayDeque",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Comparator;",
"Comparator",
"java.util",
"import java.util.Deque;",
"Deque",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.Queue;",
"Queue",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"public class Main {\n\t\n\t\tpublic static void main(String[] args) {\n\t\t\texecute16_4();\n\t\t}\n\t\t\n\t\tprivate static void execute16_4() {\n\t\t\ttry \n\t\t\t(Scanner sc = new Scanner(System.in)) {\n\t\t\t\tint s = sc.nextInt();\n\t\t\t\tSystem.out.println(s+s*s+s*s*s);\n\t\t\t}\n\t\t}\n }",
"Main",
"public static void main(String[] args) {\n\t\t\texecute16_4();\n\t\t}",
"main",
"{\n\t\t\texecute16_4();\n\t\t}",
"execute16_4()",
"execute16_4",
"String[] args",
"args",
"private static void execute16_4() {\n\t\t\ttry \n\t\t\t(Scanner sc = new Scanner(System.in)) {\n\t\t\t\tint s = sc.nextInt();\n\t\t\t\tSystem.out.println(s+s*s+s*s*s);\n\t\t\t}\n\t\t}",
"execute16_4",
"{\n\t\t\ttry \n\t\t\t(Scanner sc = new Scanner(System.in)) {\n\t\t\t\tint s = sc.nextInt();\n\t\t\t\tSystem.out.println(s+s*s+s*s*s);\n\t\t\t}\n\t\t}",
"try \n\t\t\t(Scanner sc = new Scanner(System.in)) {\n\t\t\t\tint s = sc.nextInt();\n\t\t\t\tSystem.out.println(s+s*s+s*s*s);\n\t\t\t}",
"{\n\t\t\t\tint s = sc.nextInt();\n\t\t\t\tSystem.out.println(s+s*s+s*s*s);\n\t\t\t}",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int s = sc.nextInt();",
"s",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(s+s*s+s*s*s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s+s*s+s*s*s",
"s+s*s+s*s*s",
"s",
"s*s",
"s",
"s",
"s*s*s",
"s*s*s",
"s",
"s",
"s",
"public class Main {\n\t\n\t\tpublic static void main(String[] args) {\n\t\t\texecute16_4();\n\t\t}\n\t\t\n\t\tprivate static void execute16_4() {\n\t\t\ttry \n\t\t\t(Scanner sc = new Scanner(System.in)) {\n\t\t\t\tint s = sc.nextInt();\n\t\t\t\tSystem.out.println(s+s*s+s*s*s);\n\t\t\t}\n\t\t}\n }",
"public class Main {\n\t\n\t\tpublic static void main(String[] args) {\n\t\t\texecute16_4();\n\t\t}\n\t\t\n\t\tprivate static void execute16_4() {\n\t\t\ttry \n\t\t\t(Scanner sc = new Scanner(System.in)) {\n\t\t\t\tint s = sc.nextInt();\n\t\t\t\tSystem.out.println(s+s*s+s*s*s);\n\t\t\t}\n\t\t}\n }",
"Main"
]
| import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Deque;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Scanner;
import java.util.Set;
public class Main {
public static void main(String[] args) {
execute16_4();
}
private static void execute16_4() {
try
(Scanner sc = new Scanner(System.in)) {
int s = sc.nextInt();
System.out.println(s+s*s+s*s*s);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
13,
2,
17,
2,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
34,
5
],
[
34,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
6,
31
],
[
31,
32
],
[
0,
33
],
[
33,
34
],
[
33,
35
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n Integer num = sc.nextInt();\n System.out.println(num * (1 + num * (1 + num)));\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 Integer num = sc.nextInt();\n System.out.println(num * (1 + num * (1 + num)));\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n Integer num = sc.nextInt();\n System.out.println(num * (1 + num * (1 + num)));\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n Integer num = sc.nextInt();\n System.out.println(num * (1 + num * (1 + num)));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"Integer num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(num * (1 + num * (1 + num)))",
"System.out.println",
"System.out",
"System",
"System.out",
"num * (1 + num * (1 + num))",
"num",
"(1 + num * (1 + num))",
"1",
"num * (1 + num)",
"num",
"(1 + num)",
"1",
"num",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n Integer num = sc.nextInt();\n System.out.println(num * (1 + num * (1 + num)));\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n Integer num = sc.nextInt();\n System.out.println(num * (1 + num * (1 + num)));\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Integer num = sc.nextInt();
System.out.println(num * (1 + num * (1 + num)));
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
4,
18,
20,
13,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
61,
8
],
[
61,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
21,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
27,
27
],
[
27,
28
],
[
27,
29
],
[
27,
30
],
[
9,
31
],
[
31,
32
],
[
9,
33
],
[
33,
34
],
[
61,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
37,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
44,
48
],
[
37,
49
],
[
49,
50
],
[
50,
51
],
[
37,
52
],
[
52,
53
],
[
53,
54
],
[
37,
55
],
[
55,
56
],
[
56,
57
],
[
35,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
]
| [
"import java.io.PrintWriter;\nimport java.util.Scanner;\n\npublic class Main {\n void solve(Scanner sc, PrintWriter pw) {\n int a = sc.nextInt();\n pw.println(a + a * a + a * a * a);\n }\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }\n}",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n void solve(Scanner sc, PrintWriter pw) {\n int a = sc.nextInt();\n pw.println(a + a * a + a * a * a);\n }\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }\n}",
"Main",
"void solve(Scanner sc, PrintWriter pw) {\n int a = sc.nextInt();\n pw.println(a + a * a + a * a * a);\n }",
"solve",
"{\n int a = sc.nextInt();\n pw.println(a + a * a + a * a * a);\n }",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"pw.println(a + a * a + a * a * a)",
"pw.println",
"pw",
"a + a * a + a * a * a",
"a + a * a + a * a * a",
"a",
"a * a",
"a",
"a",
"a * a * a",
"a * a * a",
"a",
"a",
"a",
"Scanner sc",
"sc",
"PrintWriter pw",
"pw",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"new Main().solve(sc, pw)",
"new Main().solve",
"new Main()",
"sc",
"pw",
"pw.flush()",
"pw.flush",
"pw",
"pw.close()",
"pw.close",
"pw",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n void solve(Scanner sc, PrintWriter pw) {\n int a = sc.nextInt();\n pw.println(a + a * a + a * a * a);\n }\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }\n}",
"public class Main {\n void solve(Scanner sc, PrintWriter pw) {\n int a = sc.nextInt();\n pw.println(a + a * a + a * a * a);\n }\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }\n}",
"Main"
]
| import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
void solve(Scanner sc, PrintWriter pw) {
int a = sc.nextInt();
pw.println(a + a * a + a * a * a);
}
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
PrintWriter pw = new PrintWriter(System.out);
new Main().solve(sc, pw);
pw.flush();
pw.close();
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
2,
2,
13,
13,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
17,
0,
13,
20,
12,
13,
30,
14,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
0,
13,
17,
41,
13,
17,
0,
13,
4,
18,
13,
29,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
195,
14
],
[
195,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
22,
23
],
[
15,
24
],
[
24,
25
],
[
195,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
28,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
28,
42
],
[
42,
43
],
[
42,
44
],
[
45,
45
],
[
45,
46
],
[
45,
47
],
[
45,
48
],
[
28,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
55,
55
],
[
55,
56
],
[
55,
57
],
[
55,
58
],
[
195,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
59,
63
],
[
63,
64
],
[
59,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
59,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
77,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
76,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
59,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
96,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
96,
108
],
[
108,
109
],
[
59,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
59,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
126,
127
],
[
59,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
140,
141
],
[
140,
142
],
[
135,
143
],
[
143,
144
],
[
144,
145
],
[
135,
146
],
[
147,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
152,
153
],
[
130,
154
],
[
154,
155
],
[
128,
156
],
[
156,
157
],
[
59,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
170,
171
],
[
170,
172
],
[
165,
173
],
[
173,
174
],
[
174,
175
],
[
165,
176
],
[
177,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
182,
183
],
[
160,
184
],
[
184,
185
],
[
158,
186
],
[
186,
187
],
[
59,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
0,
194
],
[
194,
195
],
[
194,
196
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tMain mainObj = new Main();\n\t\tmainObj.solve();\n\t}\n\n\tpublic void solve() throws IOException {\n\t\tFastScanner fs = new FastScanner();\n\t\tint a = fs.nextInt();\n\t\tint a2 = a*a;\n\t\tint a3 = a*a*a;\n\t\t\n\t\tSystem.out.println(a+a2+a3);\n\t}\n\n\t\n\n\tpublic class FastScanner {\n\n\t\tBufferedReader reader;\n\t\tprivate StringTokenizer st;\n\n\t\tpublic FastScanner() {\n\t\t\tst = null;\n\t\t\treader = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\tif (st == null || !st.hasMoreElements()) {\n\t\t\t\tst = new StringTokenizer(reader.readLine());\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\tst = null;\n\t\t\tString readLine = null;\n\t\t\treadLine = reader.readLine();\n\t\t\treturn readLine;\n\t\t}\n\n\t\tpublic int nextInt() throws NumberFormatException, IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() throws NumberFormatException, IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextIntArr(int n) throws NumberFormatException, IOException {\n\t\t\tint[] retArr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic long[] nextLongArr(int n) throws NumberFormatException, IOException {\n\t\t\tlong[] retArr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic void close() throws IOException {\n\t\t\treader.close();\n\t\t}\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tMain mainObj = new Main();\n\t\tmainObj.solve();\n\t}\n\n\tpublic void solve() throws IOException {\n\t\tFastScanner fs = new FastScanner();\n\t\tint a = fs.nextInt();\n\t\tint a2 = a*a;\n\t\tint a3 = a*a*a;\n\t\t\n\t\tSystem.out.println(a+a2+a3);\n\t}\n\n\t\n\n\tpublic class FastScanner {\n\n\t\tBufferedReader reader;\n\t\tprivate StringTokenizer st;\n\n\t\tpublic FastScanner() {\n\t\t\tst = null;\n\t\t\treader = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\tif (st == null || !st.hasMoreElements()) {\n\t\t\t\tst = new StringTokenizer(reader.readLine());\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\tst = null;\n\t\t\tString readLine = null;\n\t\t\treadLine = reader.readLine();\n\t\t\treturn readLine;\n\t\t}\n\n\t\tpublic int nextInt() throws NumberFormatException, IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() throws NumberFormatException, IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextIntArr(int n) throws NumberFormatException, IOException {\n\t\t\tint[] retArr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic long[] nextLongArr(int n) throws NumberFormatException, IOException {\n\t\t\tlong[] retArr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic void close() throws IOException {\n\t\t\treader.close();\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tMain mainObj = new Main();\n\t\tmainObj.solve();\n\t}",
"main",
"{\n\t\tMain mainObj = new Main();\n\t\tmainObj.solve();\n\t}",
"Main mainObj = new Main();",
"mainObj",
"new Main()",
"mainObj.solve()",
"mainObj.solve",
"mainObj",
"String[] args",
"args",
"public void solve() throws IOException {\n\t\tFastScanner fs = new FastScanner();\n\t\tint a = fs.nextInt();\n\t\tint a2 = a*a;\n\t\tint a3 = a*a*a;\n\t\t\n\t\tSystem.out.println(a+a2+a3);\n\t}",
"solve",
"{\n\t\tFastScanner fs = new FastScanner();\n\t\tint a = fs.nextInt();\n\t\tint a2 = a*a;\n\t\tint a3 = a*a*a;\n\t\t\n\t\tSystem.out.println(a+a2+a3);\n\t}",
"FastScanner fs = new FastScanner();",
"fs",
"new FastScanner()",
"int a = fs.nextInt();",
"a",
"fs.nextInt()",
"fs.nextInt",
"fs",
"int a2 = a*a;",
"a2",
"a*a",
"a",
"a",
"int a3 = a*a*a;",
"a3",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"System.out.println(a+a2+a3)",
"System.out.println",
"System.out",
"System",
"System.out",
"a+a2+a3",
"a+a2+a3",
"a",
"a2",
"a3",
"public class FastScanner {\n\n\t\tBufferedReader reader;\n\t\tprivate StringTokenizer st;\n\n\t\tpublic FastScanner() {\n\t\t\tst = null;\n\t\t\treader = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\tif (st == null || !st.hasMoreElements()) {\n\t\t\t\tst = new StringTokenizer(reader.readLine());\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\tst = null;\n\t\t\tString readLine = null;\n\t\t\treadLine = reader.readLine();\n\t\t\treturn readLine;\n\t\t}\n\n\t\tpublic int nextInt() throws NumberFormatException, IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() throws NumberFormatException, IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextIntArr(int n) throws NumberFormatException, IOException {\n\t\t\tint[] retArr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic long[] nextLongArr(int n) throws NumberFormatException, IOException {\n\t\t\tlong[] retArr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic void close() throws IOException {\n\t\t\treader.close();\n\t\t}\n\t}",
"FastScanner",
"BufferedReader reader;",
"reader",
"private StringTokenizer st;",
"st",
"public FastScanner() {\n\t\t\tst = null;\n\t\t\treader = new BufferedReader(new InputStreamReader(System.in));\n\t\t}",
"FastScanner",
"{\n\t\t\tst = null;\n\t\t\treader = new BufferedReader(new InputStreamReader(System.in));\n\t\t}",
"st = null",
"st",
"null",
"reader = new BufferedReader(new InputStreamReader(System.in))",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"public String next() throws IOException {\n\t\t\tif (st == null || !st.hasMoreElements()) {\n\t\t\t\tst = new StringTokenizer(reader.readLine());\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\tif (st == null || !st.hasMoreElements()) {\n\t\t\t\tst = new StringTokenizer(reader.readLine());\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"if (st == null || !st.hasMoreElements()) {\n\t\t\t\tst = new StringTokenizer(reader.readLine());\n\t\t\t}",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n\t\t\t\tst = new StringTokenizer(reader.readLine());\n\t\t\t}",
"st = new StringTokenizer(reader.readLine())",
"st",
"new StringTokenizer(reader.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public String nextLine() throws IOException {\n\t\t\tst = null;\n\t\t\tString readLine = null;\n\t\t\treadLine = reader.readLine();\n\t\t\treturn readLine;\n\t\t}",
"nextLine",
"{\n\t\t\tst = null;\n\t\t\tString readLine = null;\n\t\t\treadLine = reader.readLine();\n\t\t\treturn readLine;\n\t\t}",
"st = null",
"st",
"null",
"String readLine = null;",
"readLine",
"null",
"readLine = reader.readLine()",
"readLine",
"reader.readLine()",
"reader.readLine",
"reader",
"return readLine;",
"readLine",
"public int nextInt() throws NumberFormatException, IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() throws NumberFormatException, IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public int[] nextIntArr(int n) throws NumberFormatException, IOException {\n\t\t\tint[] retArr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}",
"nextIntArr",
"{\n\t\t\tint[] retArr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}",
"int[] retArr = new int[n];",
"retArr",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}",
"{\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}",
"retArr[i] = nextInt()",
"retArr[i]",
"retArr",
"i",
"nextInt()",
"nextInt",
"return retArr;",
"retArr",
"int n",
"n",
"public long[] nextLongArr(int n) throws NumberFormatException, IOException {\n\t\t\tlong[] retArr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}",
"nextLongArr",
"{\n\t\t\tlong[] retArr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}",
"long[] retArr = new long[n];",
"retArr",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}",
"{\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}",
"retArr[i] = nextLong()",
"retArr[i]",
"retArr",
"i",
"nextLong()",
"nextLong",
"return retArr;",
"retArr",
"int n",
"n",
"public void close() throws IOException {\n\t\t\treader.close();\n\t\t}",
"close",
"{\n\t\t\treader.close();\n\t\t}",
"reader.close()",
"reader.close",
"reader",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tMain mainObj = new Main();\n\t\tmainObj.solve();\n\t}\n\n\tpublic void solve() throws IOException {\n\t\tFastScanner fs = new FastScanner();\n\t\tint a = fs.nextInt();\n\t\tint a2 = a*a;\n\t\tint a3 = a*a*a;\n\t\t\n\t\tSystem.out.println(a+a2+a3);\n\t}\n\n\t\n\n\tpublic class FastScanner {\n\n\t\tBufferedReader reader;\n\t\tprivate StringTokenizer st;\n\n\t\tpublic FastScanner() {\n\t\t\tst = null;\n\t\t\treader = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\tif (st == null || !st.hasMoreElements()) {\n\t\t\t\tst = new StringTokenizer(reader.readLine());\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\tst = null;\n\t\t\tString readLine = null;\n\t\t\treadLine = reader.readLine();\n\t\t\treturn readLine;\n\t\t}\n\n\t\tpublic int nextInt() throws NumberFormatException, IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() throws NumberFormatException, IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextIntArr(int n) throws NumberFormatException, IOException {\n\t\t\tint[] retArr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic long[] nextLongArr(int n) throws NumberFormatException, IOException {\n\t\t\tlong[] retArr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic void close() throws IOException {\n\t\t\treader.close();\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tMain mainObj = new Main();\n\t\tmainObj.solve();\n\t}\n\n\tpublic void solve() throws IOException {\n\t\tFastScanner fs = new FastScanner();\n\t\tint a = fs.nextInt();\n\t\tint a2 = a*a;\n\t\tint a3 = a*a*a;\n\t\t\n\t\tSystem.out.println(a+a2+a3);\n\t}\n\n\t\n\n\tpublic class FastScanner {\n\n\t\tBufferedReader reader;\n\t\tprivate StringTokenizer st;\n\n\t\tpublic FastScanner() {\n\t\t\tst = null;\n\t\t\treader = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\tif (st == null || !st.hasMoreElements()) {\n\t\t\t\tst = new StringTokenizer(reader.readLine());\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\tst = null;\n\t\t\tString readLine = null;\n\t\t\treadLine = reader.readLine();\n\t\t\treturn readLine;\n\t\t}\n\n\t\tpublic int nextInt() throws NumberFormatException, IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() throws NumberFormatException, IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int[] nextIntArr(int n) throws NumberFormatException, IOException {\n\t\t\tint[] retArr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextInt();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic long[] nextLongArr(int n) throws NumberFormatException, IOException {\n\t\t\tlong[] retArr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tretArr[i] = nextLong();\n\t\t\t}\n\t\t\treturn retArr;\n\t\t}\n\n\t\tpublic void close() throws IOException {\n\t\t\treader.close();\n\t\t}\n\t}\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
Main mainObj = new Main();
mainObj.solve();
}
public void solve() throws IOException {
FastScanner fs = new FastScanner();
int a = fs.nextInt();
int a2 = a*a;
int a3 = a*a*a;
System.out.println(a+a2+a3);
}
public class FastScanner {
BufferedReader reader;
private StringTokenizer st;
public FastScanner() {
st = null;
reader = new BufferedReader(new InputStreamReader(System.in));
}
public String next() throws IOException {
if (st == null || !st.hasMoreElements()) {
st = new StringTokenizer(reader.readLine());
}
return st.nextToken();
}
public String nextLine() throws IOException {
st = null;
String readLine = null;
readLine = reader.readLine();
return readLine;
}
public int nextInt() throws NumberFormatException, IOException {
return Integer.parseInt(next());
}
public long nextLong() throws NumberFormatException, IOException {
return Long.parseLong(next());
}
public int[] nextIntArr(int n) throws NumberFormatException, IOException {
int[] retArr = new int[n];
for (int i = 0; i < n; i++) {
retArr[i] = nextInt();
}
return retArr;
}
public long[] nextLongArr(int n) throws NumberFormatException, IOException {
long[] retArr = new long[n];
for (int i = 0; i < n; i++) {
retArr[i] = nextLong();
}
return retArr;
}
public void close() throws IOException {
reader.close();
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
139,
17
],
[
139,
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
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
38,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
44,
44
],
[
44,
45
],
[
44,
46
],
[
44,
47
],
[
18,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
50,
54
],
[
54,
55
],
[
50,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
50,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
65,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
75,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
64,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
50,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
50,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
106,
107
],
[
50,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
115,
116
],
[
50,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
123,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
119,
136
],
[
136,
137
],
[
0,
138
],
[
138,
139
],
[
138,
140
]
]
| [
"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 a = sc.nextInt();\n\t\tSystem.out.println(a + a * a + a * a * a);\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 a = sc.nextInt();\n\t\tSystem.out.println(a + a * a + a * a * a);\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 a = sc.nextInt();\n\t\tSystem.out.println(a + a * a + a * a * a);\n\n\t}",
"main",
"{\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tint a = sc.nextInt();\n\t\tSystem.out.println(a + a * a + a * a * a);\n\n\t}",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(a + a * a + a * a * a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a + a * a + a * a * a",
"a + a * a + a * a * a",
"a",
"a * a",
"a",
"a",
"a * a * a",
"a * a * a",
"a",
"a",
"a",
"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 a = sc.nextInt();\n\t\tSystem.out.println(a + a * a + a * a * a);\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 a = sc.nextInt();\n\t\tSystem.out.println(a + a * a + a * a * a);\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 a = sc.nextInt();
System.out.println(a + a * a + a * a * a);
}
}
class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
4,
13,
13,
4,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
29,
2,
13,
13,
23,
13,
12,
13,
30,
29,
2,
2,
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
],
[
20,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
6,
34
],
[
34,
35
],
[
57,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
36,
43
],
[
43,
44
],
[
57,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
50,
50
],
[
50,
51
],
[
50,
52
],
[
50,
53
],
[
45,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
]
| [
"import java.util.*;\n \npublic class Main {\n public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n\t\tint sum = a + kaijou2(a) + kaijou3(a);\n \tSystem.out.println(sum);\n }\n \n \tpublic static int kaijou2 (int a) {\n \treturn a*a;\n }\n \n \tpublic static int kaijou3 (int a) {\n \treturn a*a*a;\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n\t\tint sum = a + kaijou2(a) + kaijou3(a);\n \tSystem.out.println(sum);\n }\n \n \tpublic static int kaijou2 (int a) {\n \treturn a*a;\n }\n \n \tpublic static int kaijou3 (int a) {\n \treturn a*a*a;\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n\t\tint sum = a + kaijou2(a) + kaijou3(a);\n \tSystem.out.println(sum);\n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n\t\tint sum = a + kaijou2(a) + kaijou3(a);\n \tSystem.out.println(sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int sum = a + kaijou2(a) + kaijou3(a);",
"sum",
"a + kaijou2(a) + kaijou3(a)",
"a + kaijou2(a) + kaijou3(a)",
"a",
"kaijou2(a)",
"kaijou2",
"a",
"kaijou3(a)",
"kaijou3",
"a",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public static int kaijou2 (int a) {\n \treturn a*a;\n }",
"kaijou2",
"{\n \treturn a*a;\n }",
"return a*a;",
"a*a",
"a",
"a",
"int a",
"a",
"public static int kaijou3 (int a) {\n \treturn a*a*a;\n }",
"kaijou3",
"{\n \treturn a*a*a;\n }",
"return a*a*a;",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"int a",
"a",
"public class Main {\n public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n\t\tint sum = a + kaijou2(a) + kaijou3(a);\n \tSystem.out.println(sum);\n }\n \n \tpublic static int kaijou2 (int a) {\n \treturn a*a;\n }\n \n \tpublic static int kaijou3 (int a) {\n \treturn a*a*a;\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n\t\tint sum = a + kaijou2(a) + kaijou3(a);\n \tSystem.out.println(sum);\n }\n \n \tpublic static int kaijou2 (int a) {\n \treturn a*a;\n }\n \n \tpublic static int kaijou3 (int a) {\n \treturn a*a*a;\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int sum = a + kaijou2(a) + kaijou3(a);
System.out.println(sum);
}
public static int kaijou2 (int a) {
return a*a;
}
public static int kaijou3 (int a) {
return a*a*a;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
0,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
42,
5
],
[
42,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
23,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
6,
39
],
[
39,
40
],
[
0,
41
],
[
41,
42
],
[
41,
43
]
]
| [
"/******************************************************************************\n\n Online Java Compiler.\n Code, Compile, Run and Debug java program online.\nWrite your code in this editor and press \"Run\" button to execute it.\n\n*******************************************************************************/\n\nimport java.util.*;\npublic class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint sum = 0;\n\t\tsum = n + (n * n)+ (n * n * n);\n\t\tSystem.out.println(sum);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint sum = 0;\n\t\tsum = n + (n * n)+ (n * n * n);\n\t\tSystem.out.println(sum);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint sum = 0;\n\t\tsum = n + (n * n)+ (n * n * n);\n\t\tSystem.out.println(sum);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint sum = 0;\n\t\tsum = n + (n * n)+ (n * n * n);\n\t\tSystem.out.println(sum);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int sum = 0;",
"sum",
"0",
"sum = n + (n * n)+ (n * n * n)",
"sum",
"n + (n * n)+ (n * n * n)",
"n + (n * n)+ (n * n * n)",
"n",
"(n * n)",
"n",
"n",
"(n * n * n)",
"n * n * n",
"n",
"n",
"n",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint sum = 0;\n\t\tsum = n + (n * n)+ (n * n * n);\n\t\tSystem.out.println(sum);\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 n = sc.nextInt();\n\t\tint sum = 0;\n\t\tsum = n + (n * n)+ (n * n * n);\n\t\tSystem.out.println(sum);\n\t}\n}",
"Main"
]
| /******************************************************************************
Online Java Compiler.
Code, Compile, Run and Debug java program online.
Write your code in this editor and press "Run" button to execute it.
*******************************************************************************/
import java.util.*;
public class Main
{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int sum = 0;
sum = n + (n * n)+ (n * n * n);
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
57,
26
],
[
57,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
29,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
44,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
50,
50
],
[
50,
51
],
[
50,
52
],
[
50,
53
],
[
27,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
]
| [
"import java.io.BufferedReader;\nimport java.io.*;\nimport java.util.*;\nimport java.util.ArrayList;\nimport java.util.Iterator;\nimport java.util.List;\nimport java.util.Collections;\nimport java.util.Arrays;\n\npublic class Main {\n\tpublic static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int a = sc.nextInt();\n\n System.out.println(a + a*a + a*a*a);\n \n \n\n \n\n\n \n \n\n\n \n\n\n \n \n\n\n \n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Iterator;",
"Iterator",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main {\n\tpublic static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int a = sc.nextInt();\n\n System.out.println(a + a*a + a*a*a);\n \n \n\n \n\n\n \n \n\n\n \n\n\n \n \n\n\n \n\t}\n}",
"Main",
"public static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int a = sc.nextInt();\n\n System.out.println(a + a*a + a*a*a);\n \n \n\n \n\n\n \n \n\n\n \n\n\n \n \n\n\n \n\t}",
"main",
"{\n \n Scanner sc = new Scanner(System.in);\n \n int a = sc.nextInt();\n\n System.out.println(a + a*a + a*a*a);\n \n \n\n \n\n\n \n \n\n\n \n\n\n \n \n\n\n \n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(a + a*a + a*a*a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a + a*a + a*a*a",
"a + a*a + a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"final String[] args",
"args",
"public class Main {\n\tpublic static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int a = sc.nextInt();\n\n System.out.println(a + a*a + a*a*a);\n \n \n\n \n\n\n \n \n\n\n \n\n\n \n \n\n\n \n\t}\n}",
"public class Main {\n\tpublic static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int a = sc.nextInt();\n\n System.out.println(a + a*a + a*a*a);\n \n \n\n \n\n\n \n \n\n\n \n\n\n \n \n\n\n \n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
import java.util.Arrays;
public class Main {
public static void main(final String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
System.out.println(a + a*a + a*a*a);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
50,
5
],
[
50,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
13,
18
],
[
9,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
19,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
37,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
43,
43
],
[
43,
44
],
[
43,
45
],
[
43,
46
],
[
6,
47
],
[
47,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
]
]
| [
"import java.io.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int a = Integer.parseInt(br.readLine());\n \n System.out.println(a + a*a + a*a*a);\n \n }catch(Exception e){\n System.out.println(e);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int a = Integer.parseInt(br.readLine());\n \n System.out.println(a + a*a + a*a*a);\n \n }catch(Exception e){\n System.out.println(e);\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int a = Integer.parseInt(br.readLine());\n \n System.out.println(a + a*a + a*a*a);\n \n }catch(Exception e){\n System.out.println(e);\n }\n }",
"main",
"{\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int a = Integer.parseInt(br.readLine());\n \n System.out.println(a + a*a + a*a*a);\n \n }catch(Exception e){\n System.out.println(e);\n }\n }",
"try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int a = Integer.parseInt(br.readLine());\n \n System.out.println(a + a*a + a*a*a);\n \n }catch(Exception e){\n System.out.println(e);\n }",
"catch(Exception e){\n System.out.println(e);\n }",
"Exception e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int a = Integer.parseInt(br.readLine());\n \n System.out.println(a + a*a + a*a*a);\n \n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int a = Integer.parseInt(br.readLine());",
"a",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"System.out.println(a + a*a + a*a*a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a + a*a + a*a*a",
"a + a*a + a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int a = Integer.parseInt(br.readLine());\n \n System.out.println(a + a*a + a*a*a);\n \n }catch(Exception e){\n System.out.println(e);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int a = Integer.parseInt(br.readLine());\n \n System.out.println(a + a*a + a*a*a);\n \n }catch(Exception e){\n System.out.println(e);\n }\n }\n}",
"Main"
]
| import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(br.readLine());
System.out.println(a + a*a + a*a*a);
}catch(Exception e){
System.out.println(e);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
51,
5
],
[
51,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
6,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scn=new Scanner(System.in);\n\t\tint n=scn.nextInt();\n\t\tlong val =n;\n\t\tlong sum=0;\n\t for(int i=0;i<3;i++){\n\t \t sum+=val;\n\t \t val*=n;\n\t }\n\t\tSystem.out.println(sum);\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scn=new Scanner(System.in);\n\t\tint n=scn.nextInt();\n\t\tlong val =n;\n\t\tlong sum=0;\n\t for(int i=0;i<3;i++){\n\t \t sum+=val;\n\t \t val*=n;\n\t }\n\t\tSystem.out.println(sum);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scn=new Scanner(System.in);\n\t\tint n=scn.nextInt();\n\t\tlong val =n;\n\t\tlong sum=0;\n\t for(int i=0;i<3;i++){\n\t \t sum+=val;\n\t \t val*=n;\n\t }\n\t\tSystem.out.println(sum);\n\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner scn=new Scanner(System.in);\n\t\tint n=scn.nextInt();\n\t\tlong val =n;\n\t\tlong sum=0;\n\t for(int i=0;i<3;i++){\n\t \t sum+=val;\n\t \t val*=n;\n\t }\n\t\tSystem.out.println(sum);\n\n\t}",
"Scanner scn=new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"int n=scn.nextInt();",
"n",
"scn.nextInt()",
"scn.nextInt",
"scn",
"long val =n;",
"val",
"n",
"long sum=0;",
"sum",
"0",
"for(int i=0;i<3;i++){\n\t \t sum+=val;\n\t \t val*=n;\n\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t \t sum+=val;\n\t \t val*=n;\n\t }",
"{\n\t \t sum+=val;\n\t \t val*=n;\n\t }",
"sum+=val",
"sum",
"val",
"val*=n",
"val",
"n",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scn=new Scanner(System.in);\n\t\tint n=scn.nextInt();\n\t\tlong val =n;\n\t\tlong sum=0;\n\t for(int i=0;i<3;i++){\n\t \t sum+=val;\n\t \t val*=n;\n\t }\n\t\tSystem.out.println(sum);\n\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 scn=new Scanner(System.in);\n\t\tint n=scn.nextInt();\n\t\tlong val =n;\n\t\tlong sum=0;\n\t for(int i=0;i<3;i++){\n\t \t sum+=val;\n\t \t val*=n;\n\t }\n\t\tSystem.out.println(sum);\n\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scn=new Scanner(System.in);
int n=scn.nextInt();
long val =n;
long sum=0;
for(int i=0;i<3;i++){
sum+=val;
val*=n;
}
System.out.println(sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
39,
8
],
[
39,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
32,
32
],
[
32,
33
],
[
32,
34
],
[
32,
35
],
[
9,
36
],
[
36,
37
],
[
0,
38
],
[
38,
39
],
[
38,
40
]
]
| [
"import java.util.Scanner;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n System.out.println(n + n*n + n*n*n);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n System.out.println(n + n*n + n*n*n);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n System.out.println(n + n*n + n*n*n);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n System.out.println(n + n*n + n*n*n);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"System.out.println(n + n*n + n*n*n)",
"System.out.println",
"System.out",
"System",
"System.out",
"n + n*n + n*n*n",
"n + n*n + n*n*n",
"n",
"n*n",
"n",
"n",
"n*n*n",
"n*n*n",
"n",
"n",
"n",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n System.out.println(n + n*n + n*n*n);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n System.out.println(n + n*n + n*n*n);\n }\n}",
"Main"
]
| import java.util.Scanner;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
System.out.println(n + n*n + n*n*n);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
39,
5
],
[
39,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
20,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
26,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
6,
36
],
[
36,
37
],
[
0,
38
],
[
38,
39
],
[
38,
40
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int a = sc.nextInt();\n \n int ans = a + a*a + a*a*a;\n \n System.out.println(ans);\n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int a = sc.nextInt();\n \n int ans = a + a*a + a*a*a;\n \n System.out.println(ans);\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int a = sc.nextInt();\n \n int ans = a + a*a + a*a*a;\n \n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int a = sc.nextInt();\n \n int ans = a + a*a + a*a*a;\n \n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans = a + a*a + a*a*a;",
"ans",
"a + a*a + a*a*a",
"a + a*a + a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int a = sc.nextInt();\n \n int ans = a + a*a + a*a*a;\n \n System.out.println(ans);\n }\n\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int a = sc.nextInt();\n \n int ans = a + a*a + a*a*a;\n \n System.out.println(ans);\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();
int ans = a + a*a + a*a*a;
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
23,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
41,
13,
20,
41,
13,
4,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
41,
13,
20,
41,
13,
4,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
13,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
41,
13,
20,
41,
13,
4,
13,
4,
18,
13,
41,
13,
20,
17,
41,
13,
39,
17,
17,
17,
17,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
41,
13,
17,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
13,
40,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
41,
13,
20,
41,
13,
4,
13,
4,
18,
13,
41,
13,
4,
13,
4,
18,
13,
41,
13,
4,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
20,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
13,
4,
18,
4,
18,
4,
13,
4,
18,
13,
13,
17,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
2,
17,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
2,
17,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
18,
18,
13,
13,
13,
17,
2,
2,
2,
13,
13,
17,
17,
2,
2,
2,
13,
13,
17,
17,
30,
40,
13,
14,
2,
13,
13,
40,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
12,
13,
30,
29,
4,
18,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
454,
8
],
[
454,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
9,
14
],
[
14,
15
],
[
454,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
19,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
48,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
50,
54
],
[
48,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
454,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
63,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
75,
86
],
[
86,
87
],
[
86,
88
],
[
75,
89
],
[
89,
90
],
[
89,
91
],
[
75,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
454,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
114,
116
],
[
105,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
117,
128
],
[
128,
129
],
[
128,
130
],
[
117,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
134,
136
],
[
134,
137
],
[
134,
138
],
[
117,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
139,
143
],
[
117,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
149,
150
],
[
149,
151
],
[
144,
152
],
[
152,
153
],
[
153,
154
],
[
144,
155
],
[
156,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
156,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
162,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
174,
179
],
[
162,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
182,
187
],
[
162,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
117,
196
],
[
196,
197
],
[
196,
198
],
[
117,
199
],
[
199,
200
],
[
199,
201
],
[
199,
202
],
[
203,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
204,
209
],
[
210,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
210,
214
],
[
210,
215
],
[
203,
216
],
[
216,
217
],
[
454,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
225,
230
],
[
230,
231
],
[
230,
232
],
[
221,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
233,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
242,
243
],
[
233,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
249,
250
],
[
233,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
256,
257
],
[
233,
258
],
[
258,
259
],
[
258,
260
],
[
233,
261
],
[
261,
262
],
[
261,
263
],
[
233,
264
],
[
264,
265
],
[
264,
266
],
[
233,
269
],
[
269,
270
],
[
269,
271
],
[
233,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
272,
277
],
[
277,
278
],
[
277,
279
],
[
272,
280
],
[
280,
281
],
[
281,
282
],
[
272,
283
],
[
284,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
287,
288
],
[
288,
289
],
[
284,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
292,
294
],
[
290,
295
],
[
295,
296
],
[
295,
297
],
[
290,
298
],
[
298,
299
],
[
299,
300
],
[
290,
301
],
[
302,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
304,
308
],
[
303,
309
],
[
309,
310
],
[
309,
311
],
[
311,
312
],
[
312,
313
],
[
313,
314
],
[
314,
315
],
[
315,
316
],
[
315,
317
],
[
317,
318
],
[
318,
319
],
[
317,
320
],
[
313,
321
],
[
313,
322
],
[
311,
323
],
[
311,
324
],
[
233,
325
],
[
325,
326
],
[
326,
327
],
[
327,
328
],
[
327,
329
],
[
325,
330
],
[
330,
331
],
[
330,
332
],
[
332,
333
],
[
332,
334
],
[
325,
335
],
[
335,
336
],
[
336,
337
],
[
325,
338
],
[
339,
339
],
[
339,
340
],
[
340,
341
],
[
341,
342
],
[
342,
343
],
[
342,
344
],
[
340,
345
],
[
345,
346
],
[
345,
347
],
[
347,
348
],
[
347,
349
],
[
340,
350
],
[
350,
351
],
[
351,
352
],
[
340,
353
],
[
354,
354
],
[
354,
355
],
[
355,
356
],
[
356,
357
],
[
357,
358
],
[
357,
359
],
[
355,
360
],
[
360,
361
],
[
360,
362
],
[
355,
363
],
[
363,
364
],
[
364,
365
],
[
355,
366
],
[
367,
367
],
[
367,
368
],
[
368,
369
],
[
369,
370
],
[
370,
371
],
[
370,
372
],
[
368,
373
],
[
373,
374
],
[
373,
375
],
[
368,
376
],
[
376,
377
],
[
377,
378
],
[
368,
379
],
[
380,
380
],
[
380,
381
],
[
381,
382
],
[
383,
383
],
[
383,
384
],
[
384,
385
],
[
385,
386
],
[
386,
387
],
[
386,
388
],
[
385,
389
],
[
384,
390
],
[
383,
391
],
[
391,
392
],
[
392,
393
],
[
393,
394
],
[
393,
395
],
[
392,
396
],
[
391,
397
],
[
383,
398
],
[
398,
399
],
[
399,
400
],
[
400,
401
],
[
400,
402
],
[
399,
403
],
[
398,
404
],
[
381,
405
],
[
405,
406
],
[
406,
407
],
[
354,
408
],
[
408,
409
],
[
409,
410
],
[
409,
411
],
[
408,
412
],
[
412,
413
],
[
354,
414
],
[
414,
415
],
[
414,
416
],
[
233,
417
],
[
417,
418
],
[
418,
419
],
[
419,
420
],
[
419,
421
],
[
417,
422
],
[
454,
423
],
[
423,
424
],
[
423,
425
],
[
425,
426
],
[
426,
427
],
[
427,
428
],
[
428,
429
],
[
427,
430
],
[
423,
431
],
[
431,
432
],
[
454,
433
],
[
433,
434
],
[
433,
435
],
[
435,
436
],
[
436,
437
],
[
437,
438
],
[
438,
439
],
[
437,
440
],
[
433,
441
],
[
441,
442
],
[
454,
443
],
[
443,
444
],
[
443,
445
],
[
445,
446
],
[
446,
447
],
[
447,
448
],
[
448,
449
],
[
447,
450
],
[
443,
451
],
[
451,
452
],
[
0,
453
],
[
453,
454
],
[
453,
455
]
]
| [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n // abc173_a();\n // abc173_b();\n // abc173_c();\n abc172_a();\n }\n\n // int 2147483648 [ 2 * 10(9)]\n // long 9223372036854775808 [ 9 * 10(18)]\n\n public static void abc172_a() {\n try (Scanner sc = new Scanner(System.in)) {\n int a = parseI(sc.next());\n\n System.out.println(a + (int) Math.pow(a, 2) + (int) Math.pow(a, 3));\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static void abc173_a() {\n try (Scanner sc = new Scanner(System.in)) {\n int payment = parseI(sc.next());\n int max = 10000;\n int thou = 1000;\n\n System.out.println((max - payment) % thou);\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static void abc173_b() {\n try (Scanner sc = new Scanner(System.in)) {\n int num = parseI(sc.next());\n\n // AC\n // WA\n // TLE\n // RE x 0\n int[] ansCount = new int[4];\n final String[] err = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n Arrays.fill(ansCount, 0);\n\n for (int i = 0; i < num; i++) {\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }\n int count = 0;\n for (int answer : ansCount) {\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static void abc173_c() {\n try (Scanner sc = new Scanner(System.in)) {\n int row = parseI(sc.next());\n int column = parseI(sc.next());\n int checkBlackCount = parseI(sc.next());\n int existBlack = 0;\n int ansCount = 0;\n int[][] inputList = new int[row][column];\n String input = \"\";\n for (int i = 0; i < row; i++) {\n input = sc.next();\n for (int x = 0; x < column; x++) {\n inputList[i][x] =\n parseI(parseS(input.charAt(x)).replace(\".\", \"0\").replace(\"#\", \"1\"));\n }\n }\n\n for (int i = 0; i < (1 << row); i++) {\n for (int x = 0; x < (1 << column); x++) {\n\n for (int chRownum = 0; chRownum < row; chRownum++) {\n for (int chColNum = 0; chColNum < column; chColNum++) {\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }\n }\n if (existBlack == checkBlackCount) ansCount++;\n existBlack = 0;\n\n }\n }\n System.out.println(ansCount);\n\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static int parseI(String value) {\n return Integer.parseInt(value);\n }\n\n public static double parseD(String value) {\n return Double.parseDouble(value);\n }\n\n public static <T> String parseS(T value) {\n return String.valueOf(value);\n }\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n // abc173_a();\n // abc173_b();\n // abc173_c();\n abc172_a();\n }\n\n // int 2147483648 [ 2 * 10(9)]\n // long 9223372036854775808 [ 9 * 10(18)]\n\n public static void abc172_a() {\n try (Scanner sc = new Scanner(System.in)) {\n int a = parseI(sc.next());\n\n System.out.println(a + (int) Math.pow(a, 2) + (int) Math.pow(a, 3));\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static void abc173_a() {\n try (Scanner sc = new Scanner(System.in)) {\n int payment = parseI(sc.next());\n int max = 10000;\n int thou = 1000;\n\n System.out.println((max - payment) % thou);\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static void abc173_b() {\n try (Scanner sc = new Scanner(System.in)) {\n int num = parseI(sc.next());\n\n // AC\n // WA\n // TLE\n // RE x 0\n int[] ansCount = new int[4];\n final String[] err = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n Arrays.fill(ansCount, 0);\n\n for (int i = 0; i < num; i++) {\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }\n int count = 0;\n for (int answer : ansCount) {\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static void abc173_c() {\n try (Scanner sc = new Scanner(System.in)) {\n int row = parseI(sc.next());\n int column = parseI(sc.next());\n int checkBlackCount = parseI(sc.next());\n int existBlack = 0;\n int ansCount = 0;\n int[][] inputList = new int[row][column];\n String input = \"\";\n for (int i = 0; i < row; i++) {\n input = sc.next();\n for (int x = 0; x < column; x++) {\n inputList[i][x] =\n parseI(parseS(input.charAt(x)).replace(\".\", \"0\").replace(\"#\", \"1\"));\n }\n }\n\n for (int i = 0; i < (1 << row); i++) {\n for (int x = 0; x < (1 << column); x++) {\n\n for (int chRownum = 0; chRownum < row; chRownum++) {\n for (int chColNum = 0; chColNum < column; chColNum++) {\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }\n }\n if (existBlack == checkBlackCount) ansCount++;\n existBlack = 0;\n\n }\n }\n System.out.println(ansCount);\n\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static int parseI(String value) {\n return Integer.parseInt(value);\n }\n\n public static double parseD(String value) {\n return Double.parseDouble(value);\n }\n\n public static <T> String parseS(T value) {\n return String.valueOf(value);\n }\n}",
"Main",
"public static void main(String[] args) {\n // abc173_a();\n // abc173_b();\n // abc173_c();\n abc172_a();\n }",
"main",
"{\n // abc173_a();\n // abc173_b();\n // abc173_c();\n abc172_a();\n }",
"abc172_a()",
"abc172_a",
"String[] args",
"args",
"public static void abc172_a() {\n try (Scanner sc = new Scanner(System.in)) {\n int a = parseI(sc.next());\n\n System.out.println(a + (int) Math.pow(a, 2) + (int) Math.pow(a, 3));\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }",
"abc172_a",
"{\n try (Scanner sc = new Scanner(System.in)) {\n int a = parseI(sc.next());\n\n System.out.println(a + (int) Math.pow(a, 2) + (int) Math.pow(a, 3));\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }",
"try (Scanner sc = new Scanner(System.in)) {\n int a = parseI(sc.next());\n\n System.out.println(a + (int) Math.pow(a, 2) + (int) Math.pow(a, 3));\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }",
"catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }",
"Exception e",
"{\n System.out.println(\"エラー\" + e);\n }",
"System.out.println(\"エラー\" + e)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"エラー\" + e",
"\"エラー\"",
"e",
"{\n int a = parseI(sc.next());\n\n System.out.println(a + (int) Math.pow(a, 2) + (int) Math.pow(a, 3));\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int a = parseI(sc.next());",
"a",
"parseI(sc.next())",
"parseI",
"sc.next()",
"sc.next",
"sc",
"System.out.println(a + (int) Math.pow(a, 2) + (int) Math.pow(a, 3))",
"System.out.println",
"System.out",
"System",
"System.out",
"a + (int) Math.pow(a, 2) + (int) Math.pow(a, 3)",
"a + (int) Math.pow(a, 2) + (int) Math.pow(a, 3)",
"a",
"(int) Math.pow(a, 2)",
"Math.pow",
"Math",
"a",
"2",
"(int) Math.pow(a, 3)",
"Math.pow",
"Math",
"a",
"3",
"public static void abc173_a() {\n try (Scanner sc = new Scanner(System.in)) {\n int payment = parseI(sc.next());\n int max = 10000;\n int thou = 1000;\n\n System.out.println((max - payment) % thou);\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }",
"abc173_a",
"{\n try (Scanner sc = new Scanner(System.in)) {\n int payment = parseI(sc.next());\n int max = 10000;\n int thou = 1000;\n\n System.out.println((max - payment) % thou);\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }",
"try (Scanner sc = new Scanner(System.in)) {\n int payment = parseI(sc.next());\n int max = 10000;\n int thou = 1000;\n\n System.out.println((max - payment) % thou);\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }",
"catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }",
"Exception e",
"{\n System.out.println(\"エラー\" + e);\n }",
"System.out.println(\"エラー\" + e)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"エラー\" + e",
"\"エラー\"",
"e",
"{\n int payment = parseI(sc.next());\n int max = 10000;\n int thou = 1000;\n\n System.out.println((max - payment) % thou);\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int payment = parseI(sc.next());",
"payment",
"parseI(sc.next())",
"parseI",
"sc.next()",
"sc.next",
"sc",
"int max = 10000;",
"max",
"10000",
"int thou = 1000;",
"thou",
"1000",
"System.out.println((max - payment) % thou)",
"System.out.println",
"System.out",
"System",
"System.out",
"(max - payment) % thou",
"(max - payment)",
"max",
"payment",
"thou",
"public static void abc173_b() {\n try (Scanner sc = new Scanner(System.in)) {\n int num = parseI(sc.next());\n\n // AC\n // WA\n // TLE\n // RE x 0\n int[] ansCount = new int[4];\n final String[] err = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n Arrays.fill(ansCount, 0);\n\n for (int i = 0; i < num; i++) {\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }\n int count = 0;\n for (int answer : ansCount) {\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }",
"abc173_b",
"{\n try (Scanner sc = new Scanner(System.in)) {\n int num = parseI(sc.next());\n\n // AC\n // WA\n // TLE\n // RE x 0\n int[] ansCount = new int[4];\n final String[] err = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n Arrays.fill(ansCount, 0);\n\n for (int i = 0; i < num; i++) {\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }\n int count = 0;\n for (int answer : ansCount) {\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }",
"try (Scanner sc = new Scanner(System.in)) {\n int num = parseI(sc.next());\n\n // AC\n // WA\n // TLE\n // RE x 0\n int[] ansCount = new int[4];\n final String[] err = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n Arrays.fill(ansCount, 0);\n\n for (int i = 0; i < num; i++) {\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }\n int count = 0;\n for (int answer : ansCount) {\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }",
"catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }",
"Exception e",
"{\n System.out.println(\"エラー\" + e);\n }",
"System.out.println(\"エラー\" + e)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"エラー\" + e",
"\"エラー\"",
"e",
"{\n int num = parseI(sc.next());\n\n // AC\n // WA\n // TLE\n // RE x 0\n int[] ansCount = new int[4];\n final String[] err = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n Arrays.fill(ansCount, 0);\n\n for (int i = 0; i < num; i++) {\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }\n int count = 0;\n for (int answer : ansCount) {\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int num = parseI(sc.next());",
"num",
"parseI(sc.next())",
"parseI",
"sc.next()",
"sc.next",
"sc",
"int[] ansCount = new int[4];",
"ansCount",
"new int[4]",
"4",
"final String[] err = { \"AC\", \"WA\", \"TLE\", \"RE\" };",
"err",
"{ \"AC\", \"WA\", \"TLE\", \"RE\" }",
"\"AC\"",
"\"WA\"",
"\"TLE\"",
"\"RE\"",
"Arrays.fill(ansCount, 0)",
"Arrays.fill",
"Arrays",
"ansCount",
"0",
"for (int i = 0; i < num; i++) {\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }",
"{\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }",
"String ans = sc.next();",
"ans",
"sc.next()",
"sc.next",
"sc",
"switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }",
"ans",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"ansCount[0]++",
"ansCount[0]",
"ansCount",
"0",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"ansCount[1]++",
"ansCount[1]",
"ansCount",
"1",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"ansCount[2]++",
"ansCount[2]",
"ansCount",
"2",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"ansCount[3]++",
"ansCount[3]",
"ansCount",
"3",
"break;",
"int count = 0;",
"count",
"0",
"for (int answer : ansCount) {\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }",
"int answer",
"ansCount",
"{\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }",
"{\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }",
"System.out.println(err[count] + \" x \" + answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"err[count] + \" x \" + answer",
"err[count] + \" x \" + answer",
"err[count]",
"err",
"count",
"\" x \"",
"answer",
"count++",
"count",
"public static void abc173_c() {\n try (Scanner sc = new Scanner(System.in)) {\n int row = parseI(sc.next());\n int column = parseI(sc.next());\n int checkBlackCount = parseI(sc.next());\n int existBlack = 0;\n int ansCount = 0;\n int[][] inputList = new int[row][column];\n String input = \"\";\n for (int i = 0; i < row; i++) {\n input = sc.next();\n for (int x = 0; x < column; x++) {\n inputList[i][x] =\n parseI(parseS(input.charAt(x)).replace(\".\", \"0\").replace(\"#\", \"1\"));\n }\n }\n\n for (int i = 0; i < (1 << row); i++) {\n for (int x = 0; x < (1 << column); x++) {\n\n for (int chRownum = 0; chRownum < row; chRownum++) {\n for (int chColNum = 0; chColNum < column; chColNum++) {\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }\n }\n if (existBlack == checkBlackCount) ansCount++;\n existBlack = 0;\n\n }\n }\n System.out.println(ansCount);\n\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }",
"abc173_c",
"{\n try (Scanner sc = new Scanner(System.in)) {\n int row = parseI(sc.next());\n int column = parseI(sc.next());\n int checkBlackCount = parseI(sc.next());\n int existBlack = 0;\n int ansCount = 0;\n int[][] inputList = new int[row][column];\n String input = \"\";\n for (int i = 0; i < row; i++) {\n input = sc.next();\n for (int x = 0; x < column; x++) {\n inputList[i][x] =\n parseI(parseS(input.charAt(x)).replace(\".\", \"0\").replace(\"#\", \"1\"));\n }\n }\n\n for (int i = 0; i < (1 << row); i++) {\n for (int x = 0; x < (1 << column); x++) {\n\n for (int chRownum = 0; chRownum < row; chRownum++) {\n for (int chColNum = 0; chColNum < column; chColNum++) {\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }\n }\n if (existBlack == checkBlackCount) ansCount++;\n existBlack = 0;\n\n }\n }\n System.out.println(ansCount);\n\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }",
"try (Scanner sc = new Scanner(System.in)) {\n int row = parseI(sc.next());\n int column = parseI(sc.next());\n int checkBlackCount = parseI(sc.next());\n int existBlack = 0;\n int ansCount = 0;\n int[][] inputList = new int[row][column];\n String input = \"\";\n for (int i = 0; i < row; i++) {\n input = sc.next();\n for (int x = 0; x < column; x++) {\n inputList[i][x] =\n parseI(parseS(input.charAt(x)).replace(\".\", \"0\").replace(\"#\", \"1\"));\n }\n }\n\n for (int i = 0; i < (1 << row); i++) {\n for (int x = 0; x < (1 << column); x++) {\n\n for (int chRownum = 0; chRownum < row; chRownum++) {\n for (int chColNum = 0; chColNum < column; chColNum++) {\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }\n }\n if (existBlack == checkBlackCount) ansCount++;\n existBlack = 0;\n\n }\n }\n System.out.println(ansCount);\n\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }",
"catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }",
"Exception e",
"{\n System.out.println(\"エラー\" + e);\n }",
"System.out.println(\"エラー\" + e)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"エラー\" + e",
"\"エラー\"",
"e",
"{\n int row = parseI(sc.next());\n int column = parseI(sc.next());\n int checkBlackCount = parseI(sc.next());\n int existBlack = 0;\n int ansCount = 0;\n int[][] inputList = new int[row][column];\n String input = \"\";\n for (int i = 0; i < row; i++) {\n input = sc.next();\n for (int x = 0; x < column; x++) {\n inputList[i][x] =\n parseI(parseS(input.charAt(x)).replace(\".\", \"0\").replace(\"#\", \"1\"));\n }\n }\n\n for (int i = 0; i < (1 << row); i++) {\n for (int x = 0; x < (1 << column); x++) {\n\n for (int chRownum = 0; chRownum < row; chRownum++) {\n for (int chColNum = 0; chColNum < column; chColNum++) {\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }\n }\n if (existBlack == checkBlackCount) ansCount++;\n existBlack = 0;\n\n }\n }\n System.out.println(ansCount);\n\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int row = parseI(sc.next());",
"row",
"parseI(sc.next())",
"parseI",
"sc.next()",
"sc.next",
"sc",
"int column = parseI(sc.next());",
"column",
"parseI(sc.next())",
"parseI",
"sc.next()",
"sc.next",
"sc",
"int checkBlackCount = parseI(sc.next());",
"checkBlackCount",
"parseI(sc.next())",
"parseI",
"sc.next()",
"sc.next",
"sc",
"int existBlack = 0;",
"existBlack",
"0",
"int ansCount = 0;",
"ansCount",
"0",
"int[][] inputList = new int[row][column];",
"inputList",
"new int[row][column]",
"row",
"column",
"String input = \"\";",
"input",
"\"\"",
"for (int i = 0; i < row; i++) {\n input = sc.next();\n for (int x = 0; x < column; x++) {\n inputList[i][x] =\n parseI(parseS(input.charAt(x)).replace(\".\", \"0\").replace(\"#\", \"1\"));\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < row",
"i",
"row",
"i++",
"i++",
"i",
"{\n input = sc.next();\n for (int x = 0; x < column; x++) {\n inputList[i][x] =\n parseI(parseS(input.charAt(x)).replace(\".\", \"0\").replace(\"#\", \"1\"));\n }\n }",
"{\n input = sc.next();\n for (int x = 0; x < column; x++) {\n inputList[i][x] =\n parseI(parseS(input.charAt(x)).replace(\".\", \"0\").replace(\"#\", \"1\"));\n }\n }",
"input = sc.next()",
"input",
"sc.next()",
"sc.next",
"sc",
"for (int x = 0; x < column; x++) {\n inputList[i][x] =\n parseI(parseS(input.charAt(x)).replace(\".\", \"0\").replace(\"#\", \"1\"));\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < column",
"x",
"column",
"x++",
"x++",
"x",
"{\n inputList[i][x] =\n parseI(parseS(input.charAt(x)).replace(\".\", \"0\").replace(\"#\", \"1\"));\n }",
"{\n inputList[i][x] =\n parseI(parseS(input.charAt(x)).replace(\".\", \"0\").replace(\"#\", \"1\"));\n }",
"inputList[i][x] =\n parseI(parseS(input.charAt(x)).replace(\".\", \"0\").replace(\"#\", \"1\"))",
"inputList[i][x]",
"inputList[i]",
"inputList",
"i",
"x",
"parseI(parseS(input.charAt(x)).replace(\".\", \"0\").replace(\"#\", \"1\"))",
"parseI",
"parseS(input.charAt(x)).replace(\".\", \"0\").replace(\"#\", \"1\")",
"parseS(input.charAt(x)).replace(\".\", \"0\").replace",
"parseS(input.charAt(x)).replace(\".\", \"0\")",
"parseS(input.charAt(x)).replace",
"parseS(input.charAt(x))",
"parseS",
"input.charAt(x)",
"input.charAt",
"input",
"x",
"\".\"",
"\"0\"",
"\"#\"",
"\"1\"",
"for (int i = 0; i < (1 << row); i++) {\n for (int x = 0; x < (1 << column); x++) {\n\n for (int chRownum = 0; chRownum < row; chRownum++) {\n for (int chColNum = 0; chColNum < column; chColNum++) {\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }\n }\n if (existBlack == checkBlackCount) ansCount++;\n existBlack = 0;\n\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < (1 << row)",
"i",
"(1 << row)",
"1",
"row",
"i++",
"i++",
"i",
"{\n for (int x = 0; x < (1 << column); x++) {\n\n for (int chRownum = 0; chRownum < row; chRownum++) {\n for (int chColNum = 0; chColNum < column; chColNum++) {\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }\n }\n if (existBlack == checkBlackCount) ansCount++;\n existBlack = 0;\n\n }\n }",
"{\n for (int x = 0; x < (1 << column); x++) {\n\n for (int chRownum = 0; chRownum < row; chRownum++) {\n for (int chColNum = 0; chColNum < column; chColNum++) {\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }\n }\n if (existBlack == checkBlackCount) ansCount++;\n existBlack = 0;\n\n }\n }",
"for (int x = 0; x < (1 << column); x++) {\n\n for (int chRownum = 0; chRownum < row; chRownum++) {\n for (int chColNum = 0; chColNum < column; chColNum++) {\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }\n }\n if (existBlack == checkBlackCount) ansCount++;\n existBlack = 0;\n\n }",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < (1 << column)",
"x",
"(1 << column)",
"1",
"column",
"x++",
"x++",
"x",
"{\n\n for (int chRownum = 0; chRownum < row; chRownum++) {\n for (int chColNum = 0; chColNum < column; chColNum++) {\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }\n }\n if (existBlack == checkBlackCount) ansCount++;\n existBlack = 0;\n\n }",
"{\n\n for (int chRownum = 0; chRownum < row; chRownum++) {\n for (int chColNum = 0; chColNum < column; chColNum++) {\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }\n }\n if (existBlack == checkBlackCount) ansCount++;\n existBlack = 0;\n\n }",
"for (int chRownum = 0; chRownum < row; chRownum++) {\n for (int chColNum = 0; chColNum < column; chColNum++) {\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }\n }",
"int chRownum = 0;",
"int chRownum = 0;",
"chRownum",
"0",
"chRownum < row",
"chRownum",
"row",
"chRownum++",
"chRownum++",
"chRownum",
"{\n for (int chColNum = 0; chColNum < column; chColNum++) {\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }\n }",
"{\n for (int chColNum = 0; chColNum < column; chColNum++) {\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }\n }",
"for (int chColNum = 0; chColNum < column; chColNum++) {\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }",
"int chColNum = 0;",
"int chColNum = 0;",
"chColNum",
"0",
"chColNum < column",
"chColNum",
"column",
"chColNum++",
"chColNum++",
"chColNum",
"{\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }",
"{\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }",
"if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }",
"inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0",
"inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0",
"inputList[chRownum][chColNum] == 1",
"inputList[chRownum][chColNum]",
"inputList[chRownum]",
"inputList",
"chRownum",
"chColNum",
"1",
"((i >> chRownum) & 1) == 0",
"((i >> chRownum) & 1)",
"(i >> chRownum)",
"i",
"chRownum",
"1",
"0",
"((x >> chColNum) & 1) == 0",
"((x >> chColNum) & 1)",
"(x >> chColNum)",
"x",
"chColNum",
"1",
"0",
"{\n existBlack++;\n }",
"existBlack++",
"existBlack",
"if (existBlack == checkBlackCount) ansCount++;",
"existBlack == checkBlackCount",
"existBlack",
"checkBlackCount",
"ansCount++",
"ansCount",
"existBlack = 0",
"existBlack",
"0",
"System.out.println(ansCount)",
"System.out.println",
"System.out",
"System",
"System.out",
"ansCount",
"public static int parseI(String value) {\n return Integer.parseInt(value);\n }",
"parseI",
"{\n return Integer.parseInt(value);\n }",
"return Integer.parseInt(value);",
"Integer.parseInt(value)",
"Integer.parseInt",
"Integer",
"value",
"String value",
"value",
"public static double parseD(String value) {\n return Double.parseDouble(value);\n }",
"parseD",
"{\n return Double.parseDouble(value);\n }",
"return Double.parseDouble(value);",
"Double.parseDouble(value)",
"Double.parseDouble",
"Double",
"value",
"String value",
"value",
"public static <T> String parseS(T value) {\n return String.valueOf(value);\n }",
"parseS",
"{\n return String.valueOf(value);\n }",
"return String.valueOf(value);",
"String.valueOf(value)",
"String.valueOf",
"String",
"value",
"T value",
"value",
"public class Main {\n\n public static void main(String[] args) {\n // abc173_a();\n // abc173_b();\n // abc173_c();\n abc172_a();\n }\n\n // int 2147483648 [ 2 * 10(9)]\n // long 9223372036854775808 [ 9 * 10(18)]\n\n public static void abc172_a() {\n try (Scanner sc = new Scanner(System.in)) {\n int a = parseI(sc.next());\n\n System.out.println(a + (int) Math.pow(a, 2) + (int) Math.pow(a, 3));\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static void abc173_a() {\n try (Scanner sc = new Scanner(System.in)) {\n int payment = parseI(sc.next());\n int max = 10000;\n int thou = 1000;\n\n System.out.println((max - payment) % thou);\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static void abc173_b() {\n try (Scanner sc = new Scanner(System.in)) {\n int num = parseI(sc.next());\n\n // AC\n // WA\n // TLE\n // RE x 0\n int[] ansCount = new int[4];\n final String[] err = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n Arrays.fill(ansCount, 0);\n\n for (int i = 0; i < num; i++) {\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }\n int count = 0;\n for (int answer : ansCount) {\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static void abc173_c() {\n try (Scanner sc = new Scanner(System.in)) {\n int row = parseI(sc.next());\n int column = parseI(sc.next());\n int checkBlackCount = parseI(sc.next());\n int existBlack = 0;\n int ansCount = 0;\n int[][] inputList = new int[row][column];\n String input = \"\";\n for (int i = 0; i < row; i++) {\n input = sc.next();\n for (int x = 0; x < column; x++) {\n inputList[i][x] =\n parseI(parseS(input.charAt(x)).replace(\".\", \"0\").replace(\"#\", \"1\"));\n }\n }\n\n for (int i = 0; i < (1 << row); i++) {\n for (int x = 0; x < (1 << column); x++) {\n\n for (int chRownum = 0; chRownum < row; chRownum++) {\n for (int chColNum = 0; chColNum < column; chColNum++) {\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }\n }\n if (existBlack == checkBlackCount) ansCount++;\n existBlack = 0;\n\n }\n }\n System.out.println(ansCount);\n\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static int parseI(String value) {\n return Integer.parseInt(value);\n }\n\n public static double parseD(String value) {\n return Double.parseDouble(value);\n }\n\n public static <T> String parseS(T value) {\n return String.valueOf(value);\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n // abc173_a();\n // abc173_b();\n // abc173_c();\n abc172_a();\n }\n\n // int 2147483648 [ 2 * 10(9)]\n // long 9223372036854775808 [ 9 * 10(18)]\n\n public static void abc172_a() {\n try (Scanner sc = new Scanner(System.in)) {\n int a = parseI(sc.next());\n\n System.out.println(a + (int) Math.pow(a, 2) + (int) Math.pow(a, 3));\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static void abc173_a() {\n try (Scanner sc = new Scanner(System.in)) {\n int payment = parseI(sc.next());\n int max = 10000;\n int thou = 1000;\n\n System.out.println((max - payment) % thou);\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static void abc173_b() {\n try (Scanner sc = new Scanner(System.in)) {\n int num = parseI(sc.next());\n\n // AC\n // WA\n // TLE\n // RE x 0\n int[] ansCount = new int[4];\n final String[] err = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n Arrays.fill(ansCount, 0);\n\n for (int i = 0; i < num; i++) {\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }\n int count = 0;\n for (int answer : ansCount) {\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static void abc173_c() {\n try (Scanner sc = new Scanner(System.in)) {\n int row = parseI(sc.next());\n int column = parseI(sc.next());\n int checkBlackCount = parseI(sc.next());\n int existBlack = 0;\n int ansCount = 0;\n int[][] inputList = new int[row][column];\n String input = \"\";\n for (int i = 0; i < row; i++) {\n input = sc.next();\n for (int x = 0; x < column; x++) {\n inputList[i][x] =\n parseI(parseS(input.charAt(x)).replace(\".\", \"0\").replace(\"#\", \"1\"));\n }\n }\n\n for (int i = 0; i < (1 << row); i++) {\n for (int x = 0; x < (1 << column); x++) {\n\n for (int chRownum = 0; chRownum < row; chRownum++) {\n for (int chColNum = 0; chColNum < column; chColNum++) {\n if (inputList[chRownum][chColNum] == 1\n && ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {\n existBlack++;\n }\n }\n }\n if (existBlack == checkBlackCount) ansCount++;\n existBlack = 0;\n\n }\n }\n System.out.println(ansCount);\n\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static int parseI(String value) {\n return Integer.parseInt(value);\n }\n\n public static double parseD(String value) {\n return Double.parseDouble(value);\n }\n\n public static <T> String parseS(T value) {\n return String.valueOf(value);\n }\n}",
"Main"
]
| import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// abc173_a();
// abc173_b();
// abc173_c();
abc172_a();
}
// int 2147483648 [ 2 * 10(9)]
// long 9223372036854775808 [ 9 * 10(18)]
public static void abc172_a() {
try (Scanner sc = new Scanner(System.in)) {
int a = parseI(sc.next());
System.out.println(a + (int) Math.pow(a, 2) + (int) Math.pow(a, 3));
} catch (Exception e) {
System.out.println("エラー" + e);
}
}
public static void abc173_a() {
try (Scanner sc = new Scanner(System.in)) {
int payment = parseI(sc.next());
int max = 10000;
int thou = 1000;
System.out.println((max - payment) % thou);
} catch (Exception e) {
System.out.println("エラー" + e);
}
}
public static void abc173_b() {
try (Scanner sc = new Scanner(System.in)) {
int num = parseI(sc.next());
// AC
// WA
// TLE
// RE x 0
int[] ansCount = new int[4];
final String[] err = { "AC", "WA", "TLE", "RE" };
Arrays.fill(ansCount, 0);
for (int i = 0; i < num; i++) {
String ans = sc.next();
switch (ans) {
case "AC":
ansCount[0]++;
break;
case "WA":
ansCount[1]++;
break;
case "TLE":
ansCount[2]++;
break;
case "RE":
ansCount[3]++;
break;
}
}
int count = 0;
for (int answer : ansCount) {
System.out.println(err[count] + " x " + answer);
count++;
}
} catch (Exception e) {
System.out.println("エラー" + e);
}
}
public static void abc173_c() {
try (Scanner sc = new Scanner(System.in)) {
int row = parseI(sc.next());
int column = parseI(sc.next());
int checkBlackCount = parseI(sc.next());
int existBlack = 0;
int ansCount = 0;
int[][] inputList = new int[row][column];
String input = "";
for (int i = 0; i < row; i++) {
input = sc.next();
for (int x = 0; x < column; x++) {
inputList[i][x] =
parseI(parseS(input.charAt(x)).replace(".", "0").replace("#", "1"));
}
}
for (int i = 0; i < (1 << row); i++) {
for (int x = 0; x < (1 << column); x++) {
for (int chRownum = 0; chRownum < row; chRownum++) {
for (int chColNum = 0; chColNum < column; chColNum++) {
if (inputList[chRownum][chColNum] == 1
&& ((i >> chRownum) & 1) == 0 && ((x >> chColNum) & 1) == 0) {
existBlack++;
}
}
}
if (existBlack == checkBlackCount) ansCount++;
existBlack = 0;
}
}
System.out.println(ansCount);
} catch (Exception e) {
System.out.println("エラー" + e);
}
}
public static int parseI(String value) {
return Integer.parseInt(value);
}
public static double parseD(String value) {
return Double.parseDouble(value);
}
public static <T> String parseS(T value) {
return String.valueOf(value);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
17,
41,
13,
4,
18,
13,
13,
17,
41,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
47,
5
],
[
47,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
19,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
26,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
34,
34
],
[
34,
35
],
[
34,
36
],
[
34,
37
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
6,
44
],
[
44,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double num = sc.nextInt();\n \tdouble power1 = Math.pow(num, 2);\n double power2 = Math.pow(num, 3);\n \tdouble answer = num + power1 + power2;\n \n \tSystem.out.println((int)answer);\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 double num = sc.nextInt();\n \tdouble power1 = Math.pow(num, 2);\n double power2 = Math.pow(num, 3);\n \tdouble answer = num + power1 + power2;\n \n \tSystem.out.println((int)answer);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double num = sc.nextInt();\n \tdouble power1 = Math.pow(num, 2);\n double power2 = Math.pow(num, 3);\n \tdouble answer = num + power1 + power2;\n \n \tSystem.out.println((int)answer);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n double num = sc.nextInt();\n \tdouble power1 = Math.pow(num, 2);\n double power2 = Math.pow(num, 3);\n \tdouble answer = num + power1 + power2;\n \n \tSystem.out.println((int)answer);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"double num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double power1 = Math.pow(num, 2);",
"power1",
"Math.pow(num, 2)",
"Math.pow",
"Math",
"num",
"2",
"double power2 = Math.pow(num, 3);",
"power2",
"Math.pow(num, 3)",
"Math.pow",
"Math",
"num",
"3",
"double answer = num + power1 + power2;",
"answer",
"num + power1 + power2",
"num + power1 + power2",
"num",
"power1",
"power2",
"System.out.println((int)answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)answer",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double num = sc.nextInt();\n \tdouble power1 = Math.pow(num, 2);\n double power2 = Math.pow(num, 3);\n \tdouble answer = num + power1 + power2;\n \n \tSystem.out.println((int)answer);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double num = sc.nextInt();\n \tdouble power1 = Math.pow(num, 2);\n double power2 = Math.pow(num, 3);\n \tdouble answer = num + power1 + power2;\n \n \tSystem.out.println((int)answer);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double num = sc.nextInt();
double power1 = Math.pow(num, 2);
double power2 = Math.pow(num, 3);
double answer = num + power1 + power2;
System.out.println((int)answer);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
2,
2,
13,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
41,
5
],
[
41,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
28,
32
],
[
26,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
33,
37
],
[
6,
38
],
[
38,
39
],
[
0,
40
],
[
40,
41
],
[
40,
42
]
]
| [
"import java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n System.out.println((int) Math.ceil(n + Math.pow(n, 2) + Math.pow(n, 3)));\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n System.out.println((int) Math.ceil(n + Math.pow(n, 2) + Math.pow(n, 3)));\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n System.out.println((int) Math.ceil(n + Math.pow(n, 2) + Math.pow(n, 3)));\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n System.out.println((int) Math.ceil(n + Math.pow(n, 2) + Math.pow(n, 3)));\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"System.out.println((int) Math.ceil(n + Math.pow(n, 2) + Math.pow(n, 3)))",
"System.out.println",
"System.out",
"System",
"System.out",
"(int) Math.ceil(n + Math.pow(n, 2) + Math.pow(n, 3))",
"Math.ceil",
"Math",
"n + Math.pow(n, 2) + Math.pow(n, 3)",
"n + Math.pow(n, 2) + Math.pow(n, 3)",
"n",
"Math.pow(n, 2)",
"Math.pow",
"Math",
"n",
"2",
"Math.pow(n, 3)",
"Math.pow",
"Math",
"n",
"3",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n System.out.println((int) Math.ceil(n + Math.pow(n, 2) + Math.pow(n, 3)));\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n System.out.println((int) Math.ceil(n + Math.pow(n, 2) + Math.pow(n, 3)));\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
System.out.println((int) Math.ceil(n + Math.pow(n, 2) + Math.pow(n, 3)));
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
4,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
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
],
[
161,
8
],
[
161,
9
],
[
9,
10
],
[
9,
11
],
[
161,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
12,
17
],
[
17,
18
],
[
161,
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
],
[
27,
32
],
[
33,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
39,
39
],
[
39,
40
],
[
39,
41
],
[
39,
42
],
[
161,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
43,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
43,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
58,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
68,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
57,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
43,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
43,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
43,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
43,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
116,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
112,
129
],
[
129,
130
],
[
43,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
143,
144
],
[
143,
145
],
[
138,
146
],
[
146,
147
],
[
147,
148
],
[
138,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
154,
155
],
[
133,
156
],
[
156,
157
],
[
131,
158
],
[
158,
159
],
[
0,
160
],
[
160,
161
],
[
160,
162
]
]
| [
"\nimport java.util.*;\nimport java.io.*;\n\npublic class Main {\n\tstatic FastReader in = new FastReader();\n\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n\tstatic void solve() {\n\t\tint n = in.nextInt();\n\t\tSystem.out.println(n + n * n + n * n * n);\n\t}\n\n\tstatic class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\n\t\tint[] readarr(int abc) {\n\t\t\tint[] a = new int[abc];\n\t\t\tfor (int i = 0; i < abc; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\t}\n}\n\n\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\tstatic FastReader in = new FastReader();\n\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n\tstatic void solve() {\n\t\tint n = in.nextInt();\n\t\tSystem.out.println(n + n * n + n * n * n);\n\t}\n\n\tstatic class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\n\t\tint[] readarr(int abc) {\n\t\t\tint[] a = new int[abc];\n\t\t\tfor (int i = 0; i < abc; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\t}\n}",
"Main",
"static FastReader in = new FastReader();",
"in",
"new FastReader()",
"public static void main(String[] args) {\n\t\tsolve();\n\t}",
"main",
"{\n\t\tsolve();\n\t}",
"solve()",
"solve",
"String[] args",
"args",
"static void solve() {\n\t\tint n = in.nextInt();\n\t\tSystem.out.println(n + n * n + n * n * n);\n\t}",
"solve",
"{\n\t\tint n = in.nextInt();\n\t\tSystem.out.println(n + n * n + n * n * n);\n\t}",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"System.out.println(n + n * n + n * n * n)",
"System.out.println",
"System.out",
"System",
"System.out",
"n + n * n + n * n * n",
"n + n * n + n * n * n",
"n",
"n * n",
"n",
"n",
"n * n * n",
"n * n * n",
"n",
"n",
"n",
"static class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\n\t\tint[] readarr(int abc) {\n\t\t\tint[] a = new int[abc];\n\t\t\tfor (int i = 0; i < abc; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\t}",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}",
"FastReader",
"{\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"while (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"try {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"nextDouble",
"{\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}",
"nextLine",
"{\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}",
"String str = \"\";",
"str",
"\"\"",
"try {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\tstr = br.readLine();\n\t\t\t}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"int[] readarr(int abc) {\n\t\t\tint[] a = new int[abc];\n\t\t\tfor (int i = 0; i < abc; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}",
"readarr",
"{\n\t\t\tint[] a = new int[abc];\n\t\t\tfor (int i = 0; i < abc; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}",
"int[] a = new int[abc];",
"a",
"new int[abc]",
"abc",
"for (int i = 0; i < abc; i++)\n\t\t\t\ta[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < abc",
"i",
"abc",
"i++",
"i++",
"i",
"a[i] = nextInt();",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int abc",
"abc",
"public class Main {\n\tstatic FastReader in = new FastReader();\n\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n\tstatic void solve() {\n\t\tint n = in.nextInt();\n\t\tSystem.out.println(n + n * n + n * n * n);\n\t}\n\n\tstatic class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\n\t\tint[] readarr(int abc) {\n\t\t\tint[] a = new int[abc];\n\t\t\tfor (int i = 0; i < abc; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\t}\n}",
"public class Main {\n\tstatic FastReader in = new FastReader();\n\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n\tstatic void solve() {\n\t\tint n = in.nextInt();\n\t\tSystem.out.println(n + n * n + n * n * n);\n\t}\n\n\tstatic class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\n\t\tint[] readarr(int abc) {\n\t\t\tint[] a = new int[abc];\n\t\t\tfor (int i = 0; i < abc; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\t}\n}",
"Main"
]
|
import java.util.*;
import java.io.*;
public class Main {
static FastReader in = new FastReader();
public static void main(String[] args) {
solve();
}
static void solve() {
int n = in.nextInt();
System.out.println(n + n * n + n * n * n);
}
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
int[] readarr(int abc) {
int[] a = new int[abc];
for (int i = 0; i < abc; i++)
a[i] = nextInt();
return a;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
8,
4,
18,
13,
18,
13,
13,
20,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
4,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
20,
0,
18,
36,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
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
],
[
168,
29
],
[
168,
30
],
[
30,
31
],
[
30,
32
],
[
168,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
45,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
51,
51
],
[
51,
52
],
[
51,
53
],
[
51,
54
],
[
33,
55
],
[
55,
56
],
[
33,
57
],
[
57,
58
],
[
168,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
64,
71
],
[
61,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
61,
77
],
[
77,
78
],
[
77,
79
],
[
61,
80
],
[
80,
81
],
[
80,
82
],
[
61,
83
],
[
83,
84
],
[
83,
85
],
[
83,
86
],
[
61,
87
],
[
87,
88
],
[
88,
89
],
[
59,
90
],
[
90,
91
],
[
168,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
92,
96
],
[
96,
97
],
[
92,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
100,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
98,
111
],
[
111,
112
],
[
92,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
116,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
126,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
115,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
92,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
147,
148
],
[
92,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
156,
157
],
[
92,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
162,
165
],
[
165,
166
],
[
0,
167
],
[
167,
168
],
[
167,
169
]
]
| [
"\nimport java.io.BufferedReader;\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n private static final String INPUT_FILE_PATH = \"\";\n\n static void solve(InputReader in, PrintWriter out) {\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\n }\n\n private static class InputReader {\n private BufferedReader br;\n private StringTokenizer st;\n\n public InputReader(InputStream inputStream) {\n this.br = new BufferedReader(new InputStreamReader(inputStream), 32768);\n this.st = null;\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n\n public long nextLong() {\n return Long.parseLong(nextToken());\n }\n\n public double nextDouble() {\n return Double.parseDouble(nextToken());\n }\n }\n\n public static void main(String[] args) throws Exception {\n InputStream inputStream = INPUT_FILE_PATH.isEmpty()\n ? System.in\n : new FileInputStream(new File(INPUT_FILE_PATH));\n OutputStream outputStream = System.out;\n\n InputReader inputReader = new InputReader(inputStream);\n PrintWriter printWriter = new PrintWriter(outputStream);\n\n solve(inputReader, printWriter);\n\n printWriter.close();\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.File;",
"File",
"java.io",
"import java.io.FileInputStream;",
"FileInputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n private static final String INPUT_FILE_PATH = \"\";\n\n static void solve(InputReader in, PrintWriter out) {\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\n }\n\n private static class InputReader {\n private BufferedReader br;\n private StringTokenizer st;\n\n public InputReader(InputStream inputStream) {\n this.br = new BufferedReader(new InputStreamReader(inputStream), 32768);\n this.st = null;\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n\n public long nextLong() {\n return Long.parseLong(nextToken());\n }\n\n public double nextDouble() {\n return Double.parseDouble(nextToken());\n }\n }\n\n public static void main(String[] args) throws Exception {\n InputStream inputStream = INPUT_FILE_PATH.isEmpty()\n ? System.in\n : new FileInputStream(new File(INPUT_FILE_PATH));\n OutputStream outputStream = System.out;\n\n InputReader inputReader = new InputReader(inputStream);\n PrintWriter printWriter = new PrintWriter(outputStream);\n\n solve(inputReader, printWriter);\n\n printWriter.close();\n }\n\n}",
"Main",
"private static final String INPUT_FILE_PATH = \"\";",
"INPUT_FILE_PATH",
"\"\"",
"static void solve(InputReader in, PrintWriter out) {\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\n }",
"solve",
"{\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\n }",
"int a = in.nextInt();",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"out.println(a + a * a + a * a * a)",
"out.println",
"out",
"a + a * a + a * a * a",
"a + a * a + a * a * a",
"a",
"a * a",
"a",
"a",
"a * a * a",
"a * a * a",
"a",
"a",
"a",
"InputReader in",
"in",
"PrintWriter out",
"out",
"public static void main(String[] args) throws Exception {\n InputStream inputStream = INPUT_FILE_PATH.isEmpty()\n ? System.in\n : new FileInputStream(new File(INPUT_FILE_PATH));\n OutputStream outputStream = System.out;\n\n InputReader inputReader = new InputReader(inputStream);\n PrintWriter printWriter = new PrintWriter(outputStream);\n\n solve(inputReader, printWriter);\n\n printWriter.close();\n }",
"main",
"{\n InputStream inputStream = INPUT_FILE_PATH.isEmpty()\n ? System.in\n : new FileInputStream(new File(INPUT_FILE_PATH));\n OutputStream outputStream = System.out;\n\n InputReader inputReader = new InputReader(inputStream);\n PrintWriter printWriter = new PrintWriter(outputStream);\n\n solve(inputReader, printWriter);\n\n printWriter.close();\n }",
"InputStream inputStream = INPUT_FILE_PATH.isEmpty()\n ? System.in\n : new FileInputStream(new File(INPUT_FILE_PATH));",
"inputStream",
"INPUT_FILE_PATH.isEmpty()\n ? System.in\n : new FileInputStream(new File(INPUT_FILE_PATH))",
"INPUT_FILE_PATH.isEmpty()",
"INPUT_FILE_PATH.isEmpty",
"INPUT_FILE_PATH",
"System.in",
"System",
"System.in",
"new FileInputStream(new File(INPUT_FILE_PATH))",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader inputReader = new InputReader(inputStream);",
"inputReader",
"new InputReader(inputStream)",
"PrintWriter printWriter = new PrintWriter(outputStream);",
"printWriter",
"new PrintWriter(outputStream)",
"solve(inputReader, printWriter)",
"solve",
"inputReader",
"printWriter",
"printWriter.close()",
"printWriter.close",
"printWriter",
"String[] args",
"args",
"private static class InputReader {\n private BufferedReader br;\n private StringTokenizer st;\n\n public InputReader(InputStream inputStream) {\n this.br = new BufferedReader(new InputStreamReader(inputStream), 32768);\n this.st = null;\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n\n public long nextLong() {\n return Long.parseLong(nextToken());\n }\n\n public double nextDouble() {\n return Double.parseDouble(nextToken());\n }\n }",
"InputReader",
"private BufferedReader br;",
"br",
"private StringTokenizer st;",
"st",
"public InputReader(InputStream inputStream) {\n this.br = new BufferedReader(new InputStreamReader(inputStream), 32768);\n this.st = null;\n }",
"InputReader",
"{\n this.br = new BufferedReader(new InputStreamReader(inputStream), 32768);\n this.st = null;\n }",
"this.br = new BufferedReader(new InputStreamReader(inputStream), 32768)",
"this.br",
"this",
"this.br",
"new BufferedReader(new InputStreamReader(inputStream), 32768)",
"this.st = null",
"this.st",
"this",
"this.st",
"null",
"InputStream inputStream",
"inputStream",
"public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }",
"nextToken",
"{\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n st = new StringTokenizer(br.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 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(nextToken());\n }",
"nextInt",
"{\n return Integer.parseInt(nextToken());\n }",
"return Integer.parseInt(nextToken());",
"Integer.parseInt(nextToken())",
"Integer.parseInt",
"Integer",
"nextToken()",
"nextToken",
"public long nextLong() {\n return Long.parseLong(nextToken());\n }",
"nextLong",
"{\n return Long.parseLong(nextToken());\n }",
"return Long.parseLong(nextToken());",
"Long.parseLong(nextToken())",
"Long.parseLong",
"Long",
"nextToken()",
"nextToken",
"public double nextDouble() {\n return Double.parseDouble(nextToken());\n }",
"nextDouble",
"{\n return Double.parseDouble(nextToken());\n }",
"return Double.parseDouble(nextToken());",
"Double.parseDouble(nextToken())",
"Double.parseDouble",
"Double",
"nextToken()",
"nextToken",
"public class Main {\n\n private static final String INPUT_FILE_PATH = \"\";\n\n static void solve(InputReader in, PrintWriter out) {\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\n }\n\n private static class InputReader {\n private BufferedReader br;\n private StringTokenizer st;\n\n public InputReader(InputStream inputStream) {\n this.br = new BufferedReader(new InputStreamReader(inputStream), 32768);\n this.st = null;\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n\n public long nextLong() {\n return Long.parseLong(nextToken());\n }\n\n public double nextDouble() {\n return Double.parseDouble(nextToken());\n }\n }\n\n public static void main(String[] args) throws Exception {\n InputStream inputStream = INPUT_FILE_PATH.isEmpty()\n ? System.in\n : new FileInputStream(new File(INPUT_FILE_PATH));\n OutputStream outputStream = System.out;\n\n InputReader inputReader = new InputReader(inputStream);\n PrintWriter printWriter = new PrintWriter(outputStream);\n\n solve(inputReader, printWriter);\n\n printWriter.close();\n }\n\n}",
"public class Main {\n\n private static final String INPUT_FILE_PATH = \"\";\n\n static void solve(InputReader in, PrintWriter out) {\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\n }\n\n private static class InputReader {\n private BufferedReader br;\n private StringTokenizer st;\n\n public InputReader(InputStream inputStream) {\n this.br = new BufferedReader(new InputStreamReader(inputStream), 32768);\n this.st = null;\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n\n public long nextLong() {\n return Long.parseLong(nextToken());\n }\n\n public double nextDouble() {\n return Double.parseDouble(nextToken());\n }\n }\n\n public static void main(String[] args) throws Exception {\n InputStream inputStream = INPUT_FILE_PATH.isEmpty()\n ? System.in\n : new FileInputStream(new File(INPUT_FILE_PATH));\n OutputStream outputStream = System.out;\n\n InputReader inputReader = new InputReader(inputStream);\n PrintWriter printWriter = new PrintWriter(outputStream);\n\n solve(inputReader, printWriter);\n\n printWriter.close();\n }\n\n}",
"Main"
]
|
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Main {
private static final String INPUT_FILE_PATH = "";
static void solve(InputReader in, PrintWriter out) {
int a = in.nextInt();
out.println(a + a * a + a * a * a);
}
private static class InputReader {
private BufferedReader br;
private StringTokenizer st;
public InputReader(InputStream inputStream) {
this.br = new BufferedReader(new InputStreamReader(inputStream), 32768);
this.st = null;
}
public String nextToken() {
while (st == null || !st.hasMoreTokens()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return st.nextToken();
}
public int nextInt() {
return Integer.parseInt(nextToken());
}
public long nextLong() {
return Long.parseLong(nextToken());
}
public double nextDouble() {
return Double.parseDouble(nextToken());
}
}
public static void main(String[] args) throws Exception {
InputStream inputStream = INPUT_FILE_PATH.isEmpty()
? System.in
: new FileInputStream(new File(INPUT_FILE_PATH));
OutputStream outputStream = System.out;
InputReader inputReader = new InputReader(inputStream);
PrintWriter printWriter = new PrintWriter(outputStream);
solve(inputReader, printWriter);
printWriter.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
17,
12,
13,
30,
41,
13,
4,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
18,
13,
17,
14,
2,
13,
17,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
41,
13,
17,
42,
13,
30,
4,
13,
38,
5,
13,
30,
37,
20,
30,
4,
18,
13,
17,
14,
2,
4,
18,
13,
17,
30,
4,
18,
13,
4,
18,
18,
13,
13,
17,
30,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
226,
8
],
[
226,
9
],
[
9,
10
],
[
226,
11
],
[
11,
12
],
[
11,
13
],
[
226,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
16,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
27,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
33,
33
],
[
33,
34
],
[
33,
35
],
[
33,
36
],
[
226,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
39,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
39,
64
],
[
64,
65
],
[
64,
66
],
[
39,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
78,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
84,
88
],
[
83,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
89,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
83,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
37,
103
],
[
103,
104
],
[
226,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
108,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
118,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
107,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
226,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
139,
140
],
[
226,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
148,
149
],
[
226,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
157,
158
],
[
226,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
171,
172
],
[
171,
173
],
[
166,
174
],
[
174,
175
],
[
175,
176
],
[
166,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
182,
183
],
[
161,
184
],
[
184,
185
],
[
159,
186
],
[
186,
187
],
[
226,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
226,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
203,
208
],
[
208,
209
],
[
208,
210
],
[
203,
211
],
[
211,
212
],
[
212,
213
],
[
203,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
219,
220
],
[
198,
221
],
[
221,
222
],
[
196,
223
],
[
223,
224
],
[
0,
225
],
[
225,
226
],
[
225,
227
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tint a = ni();\n\t\tSystem.out.println(a + a*a + a*a*a);\n\t\t\t\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tint a = ni();\n\t\tSystem.out.println(a + a*a + a*a*a);\n\t\t\t\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}",
"Main",
"//Switch input source (stdin/file)\n\tprivate static BufferedReader br;",
"br",
"//Input read utility\n\tprivate static StringTokenizer tokenizer = null;",
"tokenizer",
"null",
"private static void solve(){\n\t\t//Implement solution here.\n\t\tint a = ni();\n\t\tSystem.out.println(a + a*a + a*a*a);\n\t\t\t\n\t}",
"solve",
"{\n\t\t//Implement solution here.\n\t\tint a = ni();\n\t\tSystem.out.println(a + a*a + a*a*a);\n\t\t\t\n\t}",
"int a = ni();",
"a",
"ni()",
"ni",
"System.out.println(a + a*a + a*a*a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a + a*a + a*a*a",
"a + a*a + a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"public static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}",
"main",
"{\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String debugDataPath = System.getenv(\"DD_PATH\");",
"debugDataPath",
"System.getenv(\"DD_PATH\")",
"System.getenv",
"System",
"\"DD_PATH\"",
"if(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}",
"debugDataPath != null",
"debugDataPath",
"null",
"{\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}",
"try{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"Exception e",
"{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}",
"br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))))",
"br",
"new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))))",
"boolean hasNext = true;",
"hasNext",
"true",
"while(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}",
"hasNext",
"{\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}",
"solve()",
"solve",
"try{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"Exception e",
"{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}",
"br.mark(1)",
"br.mark",
"br",
"1",
"if(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}",
"br.read() > 0",
"br.read()",
"br.read",
"br",
"0",
"{\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t}",
"br.reset()",
"br.reset",
"br",
"System.out.println(\"---\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"---\"",
"{\n\t\t\t\t\thasNext = false;\n\t\t\t\t}",
"hasNext = false",
"hasNext",
"false",
"String[] args",
"args",
"public static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}",
"next",
"{\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}",
"try {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"Exception e",
"{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t}",
"tokenizer = new StringTokenizer(br.readLine())",
"tokenizer",
"new StringTokenizer(br.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}",
"ni",
"{\n\t\treturn Integer.parseInt(next());\n\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}",
"nl",
"{\n\t\treturn Long.parseLong(next());\n\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}",
"nd",
"{\n\t\treturn Double.parseDouble(next());\n\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}",
"na",
"{\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = ni();",
"a[i] = ni()",
"a[i]",
"a",
"i",
"ni()",
"ni",
"return a;",
"a",
"int n",
"n",
"//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}",
"ns",
"{\n\t\treturn next().toCharArray();\n\t}",
"return next().toCharArray();",
"next().toCharArray()",
"next().toCharArray",
"next()",
"next",
"//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}",
"nal",
"{\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nl();",
"a[i] = nl()",
"a[i]",
"a",
"i",
"nl()",
"nl",
"return a;",
"a",
"int n",
"n",
"public class Main {\n\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tint a = ni();\n\t\tSystem.out.println(a + a*a + a*a*a);\n\t\t\t\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}",
"public class Main {\n\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tint a = ni();\n\t\tSystem.out.println(a + a*a + a*a*a);\n\t\t\t\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
private static void solve(){
//Implement solution here.
int a = ni();
System.out.println(a + a*a + a*a*a);
}
//Switch input source (stdin/file)
private static BufferedReader br;
public static void main(String[] args){
br = new BufferedReader(new InputStreamReader(System.in));
String debugDataPath = System.getenv("DD_PATH");
if(debugDataPath != null){
try{
br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));
}catch(Exception e){
throw new RuntimeException(e);
}
}
boolean hasNext = true;
while(hasNext){
solve();
try{
br.mark(1);
if(br.read() > 0){
br.reset();
System.out.println("---");
} else {
hasNext = false;
}
}catch(Exception e){
throw new RuntimeException(e);
}
}
}
//Input read utility
private static StringTokenizer tokenizer = null;
public static String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(br.readLine());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
//Get next single int
private static int ni() {
return Integer.parseInt(next());
}
//Get next single long
private static long nl() {
return Long.parseLong(next());
}
//Get next single double
private static double nd() {
return Double.parseDouble(next());
}
//Get next int array from one line
private static int[] na(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = ni();
return a;
}
//Get next char array from one line
private static char[] ns() {
return next().toCharArray();
}
//Get next long array from one line
private static long[] nal(int n) {
long[] a = new long[n];
for (int i = 0; i < n; i++)
a[i] = nl();
return a;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
2,
17,
17,
41,
13,
17,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
12,
13,
30,
41,
13,
4,
13,
4,
18,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
0,
13,
17,
0,
13,
4,
18,
4,
18,
13,
17,
0,
13,
18,
13,
13,
12,
13,
30,
0,
13,
17,
0,
13,
4,
18,
4,
18,
13,
17,
0,
13,
18,
13,
13,
12,
13,
30,
14,
2,
13,
13,
4,
13,
29,
4,
18,
13,
18,
13,
40,
13,
12,
13,
30,
14,
2,
13,
13,
4,
13,
29,
4,
18,
13,
18,
13,
40,
13,
12,
13,
30,
14,
2,
13,
13,
4,
13,
29,
4,
18,
13,
18,
13,
40,
13,
12,
13,
30,
14,
2,
13,
13,
4,
13,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
17,
40,
13,
29,
13,
23,
13,
12,
13,
30,
0,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
20,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
2,
13,
13,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
0,
13,
2,
2,
13,
13,
13,
0,
13,
2,
2,
13,
13,
13,
0,
13,
2,
13,
17,
29,
2,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
13,
14,
2,
13,
17,
29,
13,
41,
13,
17,
41,
13,
41,
13,
0,
13,
8,
2,
13,
13,
13,
13,
0,
13,
8,
2,
13,
13,
13,
13,
0,
13,
13,
42,
2,
2,
13,
13,
17,
30,
0,
13,
2,
13,
13,
0,
13,
13,
0,
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,
2,
13,
2,
13,
17,
41,
13,
2,
13,
2,
13,
17,
29,
2,
2,
17,
13,
13,
12,
13,
30,
41,
13,
13,
29,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
2,
17,
13,
17,
13,
17,
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,
2,
13,
2,
13,
17,
41,
13,
2,
13,
2,
13,
17,
29,
2,
2,
17,
13,
13,
12,
13,
30,
41,
13,
13,
29,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
2,
17,
13,
17,
13,
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
],
[
539,
17
],
[
539,
18
],
[
18,
19
],
[
18,
20
],
[
539,
21
],
[
21,
22
],
[
21,
23
],
[
539,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
539,
29
],
[
29,
30
],
[
29,
31
],
[
539,
32
],
[
32,
33
],
[
539,
34
],
[
34,
35
],
[
34,
36
],
[
539,
37
],
[
37,
38
],
[
37,
39
],
[
539,
40
],
[
40,
41
],
[
539,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
44,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
53,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
59,
59
],
[
59,
60
],
[
59,
61
],
[
59,
62
],
[
44,
63
],
[
63,
64
],
[
64,
65
],
[
44,
66
],
[
66,
67
],
[
67,
68
],
[
42,
69
],
[
69,
70
],
[
539,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
79,
84
],
[
73,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
539,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
98,
103
],
[
92,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
106,
108
],
[
539,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
111,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
539,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
128,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
539,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
150,
151
],
[
145,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
539,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
167,
168
],
[
162,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
539,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
180,
181
],
[
181,
182
],
[
180,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
174,
187
],
[
187,
188
],
[
539,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
202,
204
],
[
199,
205
],
[
205,
206
],
[
191,
207
],
[
207,
208
],
[
189,
209
],
[
209,
210
],
[
539,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
213,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
218,
223
],
[
223,
224
],
[
223,
225
],
[
218,
226
],
[
226,
227
],
[
227,
228
],
[
218,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
230,
234
],
[
211,
235
],
[
235,
236
],
[
539,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
240,
245
],
[
237,
246
],
[
246,
247
],
[
237,
248
],
[
248,
249
],
[
539,
250
],
[
250,
251
],
[
250,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
253,
258
],
[
258,
259
],
[
259,
260
],
[
258,
261
],
[
250,
262
],
[
262,
263
],
[
539,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
266,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
272,
274
],
[
266,
275
],
[
275,
276
],
[
276,
277
],
[
276,
278
],
[
275,
279
],
[
279,
280
],
[
280,
281
],
[
281,
282
],
[
282,
283
],
[
282,
284
],
[
281,
285
],
[
280,
286
],
[
286,
287
],
[
286,
288
],
[
288,
289
],
[
289,
290
],
[
289,
291
],
[
288,
292
],
[
279,
293
],
[
293,
294
],
[
293,
295
],
[
295,
296
],
[
296,
297
],
[
296,
298
],
[
295,
299
],
[
279,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
302,
304
],
[
266,
305
],
[
305,
306
],
[
306,
307
],
[
306,
308
],
[
264,
309
],
[
309,
310
],
[
264,
311
],
[
311,
312
],
[
264,
313
],
[
313,
314
],
[
539,
315
],
[
315,
316
],
[
315,
317
],
[
317,
318
],
[
318,
319
],
[
319,
320
],
[
319,
321
],
[
318,
322
],
[
322,
323
],
[
317,
324
],
[
324,
325
],
[
325,
326
],
[
325,
327
],
[
324,
328
],
[
328,
329
],
[
317,
330
],
[
330,
331
],
[
330,
332
],
[
317,
333
],
[
333,
334
],
[
317,
335
],
[
335,
336
],
[
317,
337
],
[
337,
338
],
[
337,
339
],
[
339,
340
],
[
340,
341
],
[
340,
342
],
[
339,
343
],
[
339,
344
],
[
317,
345
],
[
345,
346
],
[
345,
347
],
[
347,
348
],
[
348,
349
],
[
348,
350
],
[
347,
351
],
[
347,
352
],
[
317,
353
],
[
353,
354
],
[
353,
355
],
[
317,
356
],
[
356,
357
],
[
357,
358
],
[
358,
359
],
[
358,
360
],
[
357,
361
],
[
356,
362
],
[
362,
363
],
[
363,
364
],
[
363,
365
],
[
365,
366
],
[
365,
367
],
[
362,
368
],
[
368,
369
],
[
368,
370
],
[
362,
371
],
[
371,
372
],
[
371,
373
],
[
317,
374
],
[
374,
375
],
[
315,
376
],
[
376,
377
],
[
315,
378
],
[
378,
379
],
[
539,
380
],
[
380,
381
],
[
380,
382
],
[
382,
383
],
[
380,
384
],
[
384,
385
],
[
380,
386
],
[
386,
387
],
[
386,
388
],
[
388,
389
],
[
389,
390
],
[
390,
391
],
[
390,
392
],
[
389,
393
],
[
388,
394
],
[
394,
395
],
[
395,
396
],
[
395,
397
],
[
394,
398
],
[
386,
399
],
[
399,
400
],
[
386,
401
],
[
401,
402
],
[
380,
403
],
[
403,
404
],
[
403,
405
],
[
405,
406
],
[
406,
407
],
[
406,
408
],
[
408,
409
],
[
408,
410
],
[
410,
411
],
[
410,
412
],
[
405,
413
],
[
413,
414
],
[
413,
415
],
[
415,
416
],
[
415,
417
],
[
417,
418
],
[
417,
419
],
[
405,
420
],
[
420,
421
],
[
421,
422
],
[
422,
423
],
[
422,
424
],
[
421,
425
],
[
380,
426
],
[
426,
427
],
[
426,
428
],
[
428,
429
],
[
429,
430
],
[
429,
431
],
[
428,
432
],
[
432,
433
],
[
433,
434
],
[
434,
435
],
[
434,
436
],
[
436,
437
],
[
436,
438
],
[
433,
439
],
[
439,
440
],
[
439,
441
],
[
441,
442
],
[
441,
443
],
[
426,
444
],
[
444,
445
],
[
380,
446
],
[
446,
447
],
[
446,
448
],
[
448,
449
],
[
449,
450
],
[
453,
451
],
[
451,
452
],
[
452,
453
],
[
453,
454
],
[
453,
455
],
[
452,
456
],
[
451,
457
],
[
453,
458
],
[
539,
459
],
[
459,
460
],
[
459,
461
],
[
461,
462
],
[
459,
463
],
[
463,
464
],
[
459,
465
],
[
465,
466
],
[
465,
467
],
[
467,
468
],
[
468,
469
],
[
469,
470
],
[
469,
471
],
[
468,
472
],
[
467,
473
],
[
473,
474
],
[
474,
475
],
[
474,
476
],
[
473,
477
],
[
465,
478
],
[
478,
479
],
[
465,
480
],
[
480,
481
],
[
459,
482
],
[
482,
483
],
[
482,
484
],
[
484,
485
],
[
485,
486
],
[
485,
487
],
[
487,
488
],
[
487,
489
],
[
489,
490
],
[
489,
491
],
[
484,
492
],
[
492,
493
],
[
492,
494
],
[
494,
495
],
[
494,
496
],
[
496,
497
],
[
496,
498
],
[
484,
499
],
[
499,
500
],
[
500,
501
],
[
501,
502
],
[
501,
503
],
[
500,
504
],
[
459,
505
],
[
505,
506
],
[
505,
507
],
[
507,
508
],
[
508,
509
],
[
508,
510
],
[
507,
511
],
[
511,
512
],
[
512,
513
],
[
513,
514
],
[
513,
515
],
[
515,
516
],
[
515,
517
],
[
512,
518
],
[
518,
519
],
[
518,
520
],
[
520,
521
],
[
520,
522
],
[
505,
523
],
[
523,
524
],
[
459,
525
],
[
525,
526
],
[
525,
527
],
[
527,
528
],
[
528,
529
],
[
532,
530
],
[
530,
531
],
[
531,
532
],
[
532,
533
],
[
532,
534
],
[
531,
535
],
[
530,
536
],
[
532,
537
],
[
0,
538
],
[
538,
539
],
[
538,
540
]
]
| [
"/*****Author: Satyajeet Singh, Delhi Technological University************************************/\n import java.io.*;\n import java.util.*;\n import java.text.*; \n import java.lang.*;\n import java.math.*;\npublic class Main{\n/*********************************************Constants******************************************/\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out)); \n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static long mod=(long)1e9+7;\n static long mod1=998244353;\n static ArrayList<Integer> graph[];\n static int pptr=0,pptrmax=0;\n static String st[];\n/*****************************************Solution Begins***************************************/ \n public static void main(String args[]) throws Exception{\n int a=pi();\n out.println(a+a*a+a*a*a);\n/****************************************Solution Ends**************************************************/\n out.flush();\n out.close();\n }\n/****************************************Template Begins************************************************/\n static void nl() throws Exception{\n pptr=0;\n st=br.readLine().split(\" \");\n pptrmax=st.length;\n }\n static void nls() throws Exception{\n pptr=0;\n st=br.readLine().split(\"\");\n pptrmax=st.length;\n }\n static int pi() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Integer.parseInt(st[pptr++]);\n }\n static long pl() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Long.parseLong(st[pptr++]);\n }\n static double pd() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Double.parseDouble(st[pptr++]);\n }\n static String ps() throws Exception{\n if(pptr==pptrmax)\n nl();\n return st[pptr++];\n }\n/***************************************Precision Printing**********************************************/\n static void printPrecision(double d){\n DecimalFormat ft = new DecimalFormat(\"0.0000000000\"); \n out.println(ft.format(d));\n }\n/**************************************Bit Manipulation**************************************************/\n static int countBit(long mask){\n int ans=0;\n while(mask!=0){\n mask&=(mask-1);\n ans++;\n }\n return ans;\n }\n/******************************************Graph*********************************************************/\n static void Makegraph(int n){\n graph=new ArrayList[n];\n for(int i=0;i<n;i++)\n graph[i]=new ArrayList<>();\n }\n static void addEdge(int a,int b){\n graph[a].add(b);\n }\n // static void addEdge(int a,int b,int c){\n // graph[a].add(new Pair(b,c));\n // } \n/*********************************************PAIR********************************************************/\n static class Pair{\n int u;\n int v;\n public Pair(int u, int v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pair other = (Pair) o;\n return u == other.u && v == other.v;\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }\n/******************************************Long Pair*******************************************************/\n static class Pairl{\n long u;\n long v;\n public Pairl(long u, long v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pairl other = (Pairl) o;\n return u == other.u && v == other.v;\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }\n/*****************************************DEBUG***********************************************************/\n public static void debug(Object... o){\n System.out.println(Arrays.deepToString(o));\n }\n/************************************MODULAR EXPONENTIATION***********************************************/\n static long modulo(long a,long b,long c){\n long x=1,y=a%c;\n while(b > 0){\n if(b%2 == 1)\n x=(x*y)%c;\n y = (y*y)%c;\n b = b>>1;\n }\n return x%c;\n }\n/********************************************GCD**********************************************************/\n static long gcd(long x, long y){\n if(x==0)\n return y;\n if(y==0)\n return x;\n long r=0, a, b;\n a = (x > y) ? x : y; \n b = (x < y) ? x : y;\n r = b;\n while(a % b != 0){\n r = a % b;\n a = b;\n b = r;\n }\n return r;\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.text.*;",
"text.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main{\n/*********************************************Constants******************************************/\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out)); \n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static long mod=(long)1e9+7;\n static long mod1=998244353;\n static ArrayList<Integer> graph[];\n static int pptr=0,pptrmax=0;\n static String st[];\n/*****************************************Solution Begins***************************************/ \n public static void main(String args[]) throws Exception{\n int a=pi();\n out.println(a+a*a+a*a*a);\n/****************************************Solution Ends**************************************************/\n out.flush();\n out.close();\n }\n/****************************************Template Begins************************************************/\n static void nl() throws Exception{\n pptr=0;\n st=br.readLine().split(\" \");\n pptrmax=st.length;\n }\n static void nls() throws Exception{\n pptr=0;\n st=br.readLine().split(\"\");\n pptrmax=st.length;\n }\n static int pi() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Integer.parseInt(st[pptr++]);\n }\n static long pl() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Long.parseLong(st[pptr++]);\n }\n static double pd() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Double.parseDouble(st[pptr++]);\n }\n static String ps() throws Exception{\n if(pptr==pptrmax)\n nl();\n return st[pptr++];\n }\n/***************************************Precision Printing**********************************************/\n static void printPrecision(double d){\n DecimalFormat ft = new DecimalFormat(\"0.0000000000\"); \n out.println(ft.format(d));\n }\n/**************************************Bit Manipulation**************************************************/\n static int countBit(long mask){\n int ans=0;\n while(mask!=0){\n mask&=(mask-1);\n ans++;\n }\n return ans;\n }\n/******************************************Graph*********************************************************/\n static void Makegraph(int n){\n graph=new ArrayList[n];\n for(int i=0;i<n;i++)\n graph[i]=new ArrayList<>();\n }\n static void addEdge(int a,int b){\n graph[a].add(b);\n }\n // static void addEdge(int a,int b,int c){\n // graph[a].add(new Pair(b,c));\n // } \n/*********************************************PAIR********************************************************/\n static class Pair{\n int u;\n int v;\n public Pair(int u, int v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pair other = (Pair) o;\n return u == other.u && v == other.v;\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }\n/******************************************Long Pair*******************************************************/\n static class Pairl{\n long u;\n long v;\n public Pairl(long u, long v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pairl other = (Pairl) o;\n return u == other.u && v == other.v;\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }\n/*****************************************DEBUG***********************************************************/\n public static void debug(Object... o){\n System.out.println(Arrays.deepToString(o));\n }\n/************************************MODULAR EXPONENTIATION***********************************************/\n static long modulo(long a,long b,long c){\n long x=1,y=a%c;\n while(b > 0){\n if(b%2 == 1)\n x=(x*y)%c;\n y = (y*y)%c;\n b = b>>1;\n }\n return x%c;\n }\n/********************************************GCD**********************************************************/\n static long gcd(long x, long y){\n if(x==0)\n return y;\n if(y==0)\n return x;\n long r=0, a, b;\n a = (x > y) ? x : y; \n b = (x < y) ? x : y;\n r = b;\n while(a % b != 0){\n r = a % b;\n a = b;\n b = r;\n }\n return r;\n }\n}",
"Main",
"/*********************************************Constants******************************************/\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));",
"out",
"new PrintWriter(new OutputStreamWriter(System.out))",
"static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"static long mod=(long)1e9+7;",
"mod",
"(long)1e9+7",
"(long)1e9",
"7",
"static long mod1=998244353;",
"mod1",
"998244353",
"static ArrayList<Integer> graph[];",
"graph",
"static int pptr=0",
"pptr",
"0",
"pptrmax=0;",
"pptrmax",
"0",
"static String st[];",
"st",
"/*****************************************Solution Begins***************************************/ \n public static void main(String args[]) throws Exception{\n int a=pi();\n out.println(a+a*a+a*a*a);\n/****************************************Solution Ends**************************************************/\n out.flush();\n out.close();\n }",
"main",
"{\n int a=pi();\n out.println(a+a*a+a*a*a);\n/****************************************Solution Ends**************************************************/\n out.flush();\n out.close();\n }",
"int a=pi();",
"a",
"pi()",
"pi",
"out.println(a+a*a+a*a*a)",
"out.println",
"out",
"a+a*a+a*a*a",
"a+a*a+a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"out.flush()",
"out.flush",
"out",
"out.close()",
"out.close",
"out",
"String args[]",
"args",
"/****************************************Template Begins************************************************/\n static void nl() throws Exception{\n pptr=0;\n st=br.readLine().split(\" \");\n pptrmax=st.length;\n }",
"nl",
"{\n pptr=0;\n st=br.readLine().split(\" \");\n pptrmax=st.length;\n }",
"pptr=0",
"pptr",
"0",
"st=br.readLine().split(\" \")",
"st",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"pptrmax=st.length",
"pptrmax",
"st.length",
"st",
"st.length",
"static void nls() throws Exception{\n pptr=0;\n st=br.readLine().split(\"\");\n pptrmax=st.length;\n }",
"nls",
"{\n pptr=0;\n st=br.readLine().split(\"\");\n pptrmax=st.length;\n }",
"pptr=0",
"pptr",
"0",
"st=br.readLine().split(\"\")",
"st",
"br.readLine().split(\"\")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\"\"",
"pptrmax=st.length",
"pptrmax",
"st.length",
"st",
"st.length",
"static int pi() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Integer.parseInt(st[pptr++]);\n }",
"pi",
"{\n if(pptr==pptrmax)\n nl();\n return Integer.parseInt(st[pptr++]);\n }",
"if(pptr==pptrmax)\n nl();",
"pptr==pptrmax",
"pptr",
"pptrmax",
"nl()",
"nl",
"return Integer.parseInt(st[pptr++]);",
"Integer.parseInt(st[pptr++])",
"Integer.parseInt",
"Integer",
"st[pptr++]",
"st",
"pptr++",
"pptr",
"static long pl() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Long.parseLong(st[pptr++]);\n }",
"pl",
"{\n if(pptr==pptrmax)\n nl();\n return Long.parseLong(st[pptr++]);\n }",
"if(pptr==pptrmax)\n nl();",
"pptr==pptrmax",
"pptr",
"pptrmax",
"nl()",
"nl",
"return Long.parseLong(st[pptr++]);",
"Long.parseLong(st[pptr++])",
"Long.parseLong",
"Long",
"st[pptr++]",
"st",
"pptr++",
"pptr",
"static double pd() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Double.parseDouble(st[pptr++]);\n }",
"pd",
"{\n if(pptr==pptrmax)\n nl();\n return Double.parseDouble(st[pptr++]);\n }",
"if(pptr==pptrmax)\n nl();",
"pptr==pptrmax",
"pptr",
"pptrmax",
"nl()",
"nl",
"return Double.parseDouble(st[pptr++]);",
"Double.parseDouble(st[pptr++])",
"Double.parseDouble",
"Double",
"st[pptr++]",
"st",
"pptr++",
"pptr",
"static String ps() throws Exception{\n if(pptr==pptrmax)\n nl();\n return st[pptr++];\n }",
"ps",
"{\n if(pptr==pptrmax)\n nl();\n return st[pptr++];\n }",
"if(pptr==pptrmax)\n nl();",
"pptr==pptrmax",
"pptr",
"pptrmax",
"nl()",
"nl",
"return st[pptr++];",
"st[pptr++]",
"st",
"pptr++",
"pptr",
"/***************************************Precision Printing**********************************************/\n static void printPrecision(double d){\n DecimalFormat ft = new DecimalFormat(\"0.0000000000\"); \n out.println(ft.format(d));\n }",
"printPrecision",
"{\n DecimalFormat ft = new DecimalFormat(\"0.0000000000\"); \n out.println(ft.format(d));\n }",
"DecimalFormat ft = new DecimalFormat(\"0.0000000000\");",
"ft",
"new DecimalFormat(\"0.0000000000\")",
"out.println(ft.format(d))",
"out.println",
"out",
"ft.format(d)",
"ft.format",
"ft",
"d",
"double d",
"d",
"/**************************************Bit Manipulation**************************************************/\n static int countBit(long mask){\n int ans=0;\n while(mask!=0){\n mask&=(mask-1);\n ans++;\n }\n return ans;\n }",
"countBit",
"{\n int ans=0;\n while(mask!=0){\n mask&=(mask-1);\n ans++;\n }\n return ans;\n }",
"int ans=0;",
"ans",
"0",
"while(mask!=0){\n mask&=(mask-1);\n ans++;\n }",
"mask!=0",
"mask",
"0",
"{\n mask&=(mask-1);\n ans++;\n }",
"mask&=(mask-1)",
"mask",
"(mask-1)",
"mask",
"1",
"ans++",
"ans",
"return ans;",
"ans",
"long mask",
"mask",
"/******************************************Graph*********************************************************/\n static void Makegraph(int n){\n graph=new ArrayList[n];\n for(int i=0;i<n;i++)\n graph[i]=new ArrayList<>();\n }",
"Makegraph",
"{\n graph=new ArrayList[n];\n for(int i=0;i<n;i++)\n graph[i]=new ArrayList<>();\n }",
"graph=new ArrayList[n]",
"graph",
"new ArrayList[n]",
"n",
"for(int i=0;i<n;i++)\n graph[i]=new ArrayList<>();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"graph[i]=new ArrayList<>();",
"graph[i]=new ArrayList<>()",
"graph[i]",
"graph",
"i",
"new ArrayList<>()",
"int n",
"n",
"static void addEdge(int a,int b){\n graph[a].add(b);\n }",
"addEdge",
"{\n graph[a].add(b);\n }",
"graph[a].add(b)",
"graph[a].add",
"graph[a]",
"graph",
"a",
"b",
"int a",
"a",
"int b",
"b",
"/*****************************************DEBUG***********************************************************/\n public static void debug(Object... o){\n System.out.println(Arrays.deepToString(o));\n }",
"debug",
"{\n System.out.println(Arrays.deepToString(o));\n }",
"System.out.println(Arrays.deepToString(o))",
"System.out.println",
"System.out",
"System",
"System.out",
"Arrays.deepToString(o)",
"Arrays.deepToString",
"Arrays",
"o",
"Object... o",
"o",
"/************************************MODULAR EXPONENTIATION***********************************************/\n static long modulo(long a,long b,long c){\n long x=1,y=a%c;\n while(b > 0){\n if(b%2 == 1)\n x=(x*y)%c;\n y = (y*y)%c;\n b = b>>1;\n }\n return x%c;\n }",
"modulo",
"{\n long x=1,y=a%c;\n while(b > 0){\n if(b%2 == 1)\n x=(x*y)%c;\n y = (y*y)%c;\n b = b>>1;\n }\n return x%c;\n }",
"long x=1",
"x",
"1",
"y=a%c;",
"y",
"a%c",
"a",
"c",
"while(b > 0){\n if(b%2 == 1)\n x=(x*y)%c;\n y = (y*y)%c;\n b = b>>1;\n }",
"b > 0",
"b",
"0",
"{\n if(b%2 == 1)\n x=(x*y)%c;\n y = (y*y)%c;\n b = b>>1;\n }",
"if(b%2 == 1)\n x=(x*y)%c;",
"b%2 == 1",
"b%2",
"b",
"2",
"1",
"x=(x*y)%c",
"x",
"(x*y)%c",
"(x*y)",
"x",
"y",
"c",
"y = (y*y)%c",
"y",
"(y*y)%c",
"(y*y)",
"y",
"y",
"c",
"b = b>>1",
"b",
"b>>1",
"b",
"1",
"return x%c;",
"x%c",
"x",
"c",
"long a",
"a",
"long b",
"b",
"long c",
"c",
"/********************************************GCD**********************************************************/\n static long gcd(long x, long y){\n if(x==0)\n return y;\n if(y==0)\n return x;\n long r=0, a, b;\n a = (x > y) ? x : y; \n b = (x < y) ? x : y;\n r = b;\n while(a % b != 0){\n r = a % b;\n a = b;\n b = r;\n }\n return r;\n }",
"gcd",
"{\n if(x==0)\n return y;\n if(y==0)\n return x;\n long r=0, a, b;\n a = (x > y) ? x : y; \n b = (x < y) ? x : y;\n r = b;\n while(a % b != 0){\n r = a % b;\n a = b;\n b = r;\n }\n return r;\n }",
"if(x==0)\n return y;",
"x==0",
"x",
"0",
"return y;",
"y",
"if(y==0)\n return x;",
"y==0",
"y",
"0",
"return x;",
"x",
"long r=0",
"r",
"0",
"a",
"a",
"b;",
"b",
"a = (x > y) ? x : y",
"a",
"(x > y) ? x : y",
"(x > y)",
"x",
"y",
"x",
"y",
"b = (x < y) ? x : y",
"b",
"(x < y) ? x : y",
"(x < y)",
"x",
"y",
"x",
"y",
"r = b",
"r",
"b",
"while(a % b != 0){\n r = a % b;\n a = b;\n b = r;\n }",
"a % b != 0",
"a % b",
"a",
"b",
"0",
"{\n r = a % b;\n a = b;\n b = r;\n }",
"r = a % b",
"r",
"a % b",
"a",
"b",
"a = b",
"a",
"b",
"b = r",
"b",
"r",
"return r;",
"r",
"long x",
"x",
"long y",
"y",
" static class Pair{\n int u;\n int v;\n public Pair(int u, int v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pair other = (Pair) o;\n return u == other.u && v == other.v;\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }",
"Pair",
"int u;",
"u",
"int v;",
"v",
"public Pair(int u, int v) {\n this.u = u;\n this.v = v;\n }",
"Pair",
"{\n this.u = u;\n this.v = v;\n }",
"this.u = u",
"this.u",
"this",
"this.u",
"u",
"this.v = v",
"this.v",
"this",
"this.v",
"v",
"int u",
"u",
"int v",
"v",
"public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }",
"hashCode",
"{\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }",
"int hu = (int) (u ^ (u >>> 32));",
"hu",
"(int) (u ^ (u >>> 32))",
"u",
"(u >>> 32)",
"u",
"32",
"int hv = (int) (v ^ (v >>> 32));",
"hv",
"(int) (v ^ (v >>> 32))",
"v",
"(v >>> 32)",
"v",
"32",
"return 31 * hu + hv;",
"31 * hu + hv",
"31 * hu",
"31",
"hu",
"hv",
"public boolean equals(Object o) {\n Pair other = (Pair) o;\n return u == other.u && v == other.v;\n }",
"equals",
"{\n Pair other = (Pair) o;\n return u == other.u && v == other.v;\n }",
"Pair other = (Pair) o;",
"other",
"(Pair) o",
"return u == other.u && v == other.v;",
"u == other.u && v == other.v",
"u == other.u",
"u",
"other.u",
"other",
"other.u",
"v == other.v",
"v",
"other.v",
"other",
"other.v",
"Object o",
"o",
"public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }",
"toString",
"{\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }",
"return \"[u=\" + u + \", v=\" + v + \"]\";",
"\"[u=\" + u + \", v=\" + v + \"]\"",
"v",
"\", v=\"",
"\"[u=\" + u + \", v=\" + v + \"]\"",
"\"[u=\"",
"u",
"\", v=\"",
"v",
"\"]\"",
" static class Pairl{\n long u;\n long v;\n public Pairl(long u, long v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pairl other = (Pairl) o;\n return u == other.u && v == other.v;\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }",
"Pairl",
"long u;",
"u",
"long v;",
"v",
"public Pairl(long u, long v) {\n this.u = u;\n this.v = v;\n }",
"Pairl",
"{\n this.u = u;\n this.v = v;\n }",
"this.u = u",
"this.u",
"this",
"this.u",
"u",
"this.v = v",
"this.v",
"this",
"this.v",
"v",
"long u",
"u",
"long v",
"v",
"public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }",
"hashCode",
"{\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }",
"int hu = (int) (u ^ (u >>> 32));",
"hu",
"(int) (u ^ (u >>> 32))",
"u",
"(u >>> 32)",
"u",
"32",
"int hv = (int) (v ^ (v >>> 32));",
"hv",
"(int) (v ^ (v >>> 32))",
"v",
"(v >>> 32)",
"v",
"32",
"return 31 * hu + hv;",
"31 * hu + hv",
"31 * hu",
"31",
"hu",
"hv",
"public boolean equals(Object o) {\n Pairl other = (Pairl) o;\n return u == other.u && v == other.v;\n }",
"equals",
"{\n Pairl other = (Pairl) o;\n return u == other.u && v == other.v;\n }",
"Pairl other = (Pairl) o;",
"other",
"(Pairl) o",
"return u == other.u && v == other.v;",
"u == other.u && v == other.v",
"u == other.u",
"u",
"other.u",
"other",
"other.u",
"v == other.v",
"v",
"other.v",
"other",
"other.v",
"Object o",
"o",
"public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }",
"toString",
"{\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }",
"return \"[u=\" + u + \", v=\" + v + \"]\";",
"\"[u=\" + u + \", v=\" + v + \"]\"",
"v",
"\", v=\"",
"\"[u=\" + u + \", v=\" + v + \"]\"",
"\"[u=\"",
"u",
"\", v=\"",
"v",
"\"]\"",
"public class Main{\n/*********************************************Constants******************************************/\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out)); \n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static long mod=(long)1e9+7;\n static long mod1=998244353;\n static ArrayList<Integer> graph[];\n static int pptr=0,pptrmax=0;\n static String st[];\n/*****************************************Solution Begins***************************************/ \n public static void main(String args[]) throws Exception{\n int a=pi();\n out.println(a+a*a+a*a*a);\n/****************************************Solution Ends**************************************************/\n out.flush();\n out.close();\n }\n/****************************************Template Begins************************************************/\n static void nl() throws Exception{\n pptr=0;\n st=br.readLine().split(\" \");\n pptrmax=st.length;\n }\n static void nls() throws Exception{\n pptr=0;\n st=br.readLine().split(\"\");\n pptrmax=st.length;\n }\n static int pi() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Integer.parseInt(st[pptr++]);\n }\n static long pl() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Long.parseLong(st[pptr++]);\n }\n static double pd() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Double.parseDouble(st[pptr++]);\n }\n static String ps() throws Exception{\n if(pptr==pptrmax)\n nl();\n return st[pptr++];\n }\n/***************************************Precision Printing**********************************************/\n static void printPrecision(double d){\n DecimalFormat ft = new DecimalFormat(\"0.0000000000\"); \n out.println(ft.format(d));\n }\n/**************************************Bit Manipulation**************************************************/\n static int countBit(long mask){\n int ans=0;\n while(mask!=0){\n mask&=(mask-1);\n ans++;\n }\n return ans;\n }\n/******************************************Graph*********************************************************/\n static void Makegraph(int n){\n graph=new ArrayList[n];\n for(int i=0;i<n;i++)\n graph[i]=new ArrayList<>();\n }\n static void addEdge(int a,int b){\n graph[a].add(b);\n }\n // static void addEdge(int a,int b,int c){\n // graph[a].add(new Pair(b,c));\n // } \n/*********************************************PAIR********************************************************/\n static class Pair{\n int u;\n int v;\n public Pair(int u, int v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pair other = (Pair) o;\n return u == other.u && v == other.v;\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }\n/******************************************Long Pair*******************************************************/\n static class Pairl{\n long u;\n long v;\n public Pairl(long u, long v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pairl other = (Pairl) o;\n return u == other.u && v == other.v;\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }\n/*****************************************DEBUG***********************************************************/\n public static void debug(Object... o){\n System.out.println(Arrays.deepToString(o));\n }\n/************************************MODULAR EXPONENTIATION***********************************************/\n static long modulo(long a,long b,long c){\n long x=1,y=a%c;\n while(b > 0){\n if(b%2 == 1)\n x=(x*y)%c;\n y = (y*y)%c;\n b = b>>1;\n }\n return x%c;\n }\n/********************************************GCD**********************************************************/\n static long gcd(long x, long y){\n if(x==0)\n return y;\n if(y==0)\n return x;\n long r=0, a, b;\n a = (x > y) ? x : y; \n b = (x < y) ? x : y;\n r = b;\n while(a % b != 0){\n r = a % b;\n a = b;\n b = r;\n }\n return r;\n }\n}",
"public class Main{\n/*********************************************Constants******************************************/\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out)); \n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static long mod=(long)1e9+7;\n static long mod1=998244353;\n static ArrayList<Integer> graph[];\n static int pptr=0,pptrmax=0;\n static String st[];\n/*****************************************Solution Begins***************************************/ \n public static void main(String args[]) throws Exception{\n int a=pi();\n out.println(a+a*a+a*a*a);\n/****************************************Solution Ends**************************************************/\n out.flush();\n out.close();\n }\n/****************************************Template Begins************************************************/\n static void nl() throws Exception{\n pptr=0;\n st=br.readLine().split(\" \");\n pptrmax=st.length;\n }\n static void nls() throws Exception{\n pptr=0;\n st=br.readLine().split(\"\");\n pptrmax=st.length;\n }\n static int pi() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Integer.parseInt(st[pptr++]);\n }\n static long pl() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Long.parseLong(st[pptr++]);\n }\n static double pd() throws Exception{\n if(pptr==pptrmax)\n nl();\n return Double.parseDouble(st[pptr++]);\n }\n static String ps() throws Exception{\n if(pptr==pptrmax)\n nl();\n return st[pptr++];\n }\n/***************************************Precision Printing**********************************************/\n static void printPrecision(double d){\n DecimalFormat ft = new DecimalFormat(\"0.0000000000\"); \n out.println(ft.format(d));\n }\n/**************************************Bit Manipulation**************************************************/\n static int countBit(long mask){\n int ans=0;\n while(mask!=0){\n mask&=(mask-1);\n ans++;\n }\n return ans;\n }\n/******************************************Graph*********************************************************/\n static void Makegraph(int n){\n graph=new ArrayList[n];\n for(int i=0;i<n;i++)\n graph[i]=new ArrayList<>();\n }\n static void addEdge(int a,int b){\n graph[a].add(b);\n }\n // static void addEdge(int a,int b,int c){\n // graph[a].add(new Pair(b,c));\n // } \n/*********************************************PAIR********************************************************/\n static class Pair{\n int u;\n int v;\n public Pair(int u, int v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pair other = (Pair) o;\n return u == other.u && v == other.v;\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }\n/******************************************Long Pair*******************************************************/\n static class Pairl{\n long u;\n long v;\n public Pairl(long u, long v) {\n this.u = u;\n this.v = v;\n }\n public int hashCode() {\n int hu = (int) (u ^ (u >>> 32));\n int hv = (int) (v ^ (v >>> 32));\n return 31 * hu + hv;\n }\n public boolean equals(Object o) {\n Pairl other = (Pairl) o;\n return u == other.u && v == other.v;\n }\n public String toString() {\n return \"[u=\" + u + \", v=\" + v + \"]\";\n }\n }\n/*****************************************DEBUG***********************************************************/\n public static void debug(Object... o){\n System.out.println(Arrays.deepToString(o));\n }\n/************************************MODULAR EXPONENTIATION***********************************************/\n static long modulo(long a,long b,long c){\n long x=1,y=a%c;\n while(b > 0){\n if(b%2 == 1)\n x=(x*y)%c;\n y = (y*y)%c;\n b = b>>1;\n }\n return x%c;\n }\n/********************************************GCD**********************************************************/\n static long gcd(long x, long y){\n if(x==0)\n return y;\n if(y==0)\n return x;\n long r=0, a, b;\n a = (x > y) ? x : y; \n b = (x < y) ? x : y;\n r = b;\n while(a % b != 0){\n r = a % b;\n a = b;\n b = r;\n }\n return r;\n }\n}",
"Main"
]
| /*****Author: Satyajeet Singh, Delhi Technological University************************************/
import java.io.*;
import java.util.*;
import java.text.*;
import java.lang.*;
import java.math.*;
public class Main{
/*********************************************Constants******************************************/
static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
static long mod=(long)1e9+7;
static long mod1=998244353;
static ArrayList<Integer> graph[];
static int pptr=0,pptrmax=0;
static String st[];
/*****************************************Solution Begins***************************************/
public static void main(String args[]) throws Exception{
int a=pi();
out.println(a+a*a+a*a*a);
/****************************************Solution Ends**************************************************/
out.flush();
out.close();
}
/****************************************Template Begins************************************************/
static void nl() throws Exception{
pptr=0;
st=br.readLine().split(" ");
pptrmax=st.length;
}
static void nls() throws Exception{
pptr=0;
st=br.readLine().split("");
pptrmax=st.length;
}
static int pi() throws Exception{
if(pptr==pptrmax)
nl();
return Integer.parseInt(st[pptr++]);
}
static long pl() throws Exception{
if(pptr==pptrmax)
nl();
return Long.parseLong(st[pptr++]);
}
static double pd() throws Exception{
if(pptr==pptrmax)
nl();
return Double.parseDouble(st[pptr++]);
}
static String ps() throws Exception{
if(pptr==pptrmax)
nl();
return st[pptr++];
}
/***************************************Precision Printing**********************************************/
static void printPrecision(double d){
DecimalFormat ft = new DecimalFormat("0.0000000000");
out.println(ft.format(d));
}
/**************************************Bit Manipulation**************************************************/
static int countBit(long mask){
int ans=0;
while(mask!=0){
mask&=(mask-1);
ans++;
}
return ans;
}
/******************************************Graph*********************************************************/
static void Makegraph(int n){
graph=new ArrayList[n];
for(int i=0;i<n;i++)
graph[i]=new ArrayList<>();
}
static void addEdge(int a,int b){
graph[a].add(b);
}
// static void addEdge(int a,int b,int c){
// graph[a].add(new Pair(b,c));
// }
/*********************************************PAIR********************************************************/
static class Pair{
int u;
int v;
public Pair(int u, int v) {
this.u = u;
this.v = v;
}
public int hashCode() {
int hu = (int) (u ^ (u >>> 32));
int hv = (int) (v ^ (v >>> 32));
return 31 * hu + hv;
}
public boolean equals(Object o) {
Pair other = (Pair) o;
return u == other.u && v == other.v;
}
public String toString() {
return "[u=" + u + ", v=" + v + "]";
}
}
/******************************************Long Pair*******************************************************/
static class Pairl{
long u;
long v;
public Pairl(long u, long v) {
this.u = u;
this.v = v;
}
public int hashCode() {
int hu = (int) (u ^ (u >>> 32));
int hv = (int) (v ^ (v >>> 32));
return 31 * hu + hv;
}
public boolean equals(Object o) {
Pairl other = (Pairl) o;
return u == other.u && v == other.v;
}
public String toString() {
return "[u=" + u + ", v=" + v + "]";
}
}
/*****************************************DEBUG***********************************************************/
public static void debug(Object... o){
System.out.println(Arrays.deepToString(o));
}
/************************************MODULAR EXPONENTIATION***********************************************/
static long modulo(long a,long b,long c){
long x=1,y=a%c;
while(b > 0){
if(b%2 == 1)
x=(x*y)%c;
y = (y*y)%c;
b = b>>1;
}
return x%c;
}
/********************************************GCD**********************************************************/
static long gcd(long x, long y){
if(x==0)
return y;
if(y==0)
return x;
long r=0, a, b;
a = (x > y) ? x : y;
b = (x < y) ? x : y;
r = b;
while(a % b != 0){
r = a % b;
a = b;
b = r;
}
return r;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
18,
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
],
[
94,
20
],
[
94,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
94,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
32,
34
],
[
28,
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
],
[
47,
51
],
[
51,
52
],
[
51,
53
],
[
28,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
26,
60
],
[
60,
61
],
[
94,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
70,
75
],
[
64,
76
],
[
76,
77
],
[
76,
78
],
[
64,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
84,
86
],
[
64,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
62,
91
],
[
91,
92
],
[
0,
93
],
[
93,
94
],
[
93,
95
]
]
| [
"import java.awt.*;\nimport java.util.*;\nimport java.io.*;\nimport java.math.BigDecimal;\nimport java.nio.file.Files;\nimport java.nio.charset.StandardCharsets;\n//给出两个数a,b 求出[a,b]中各位数字之和能整除原数的数的个数。\npublic class Main {\n int mod = (int) 1e9+7;\n //int n = (int) 1e6+5;\n //long[][] memo = new long[n][27];\n void solve(int a) {\n int sum = 0;\n int v = 1;\n for(int i=0;i<3;i++){\n v*=a;\n sum+=v;\n }\n System.out.println(sum);\n }\n //0 1 2 3 4 5 6 7\n //1 7 3 4 7 6 2 9\n //1 7 4 3 7 6 2 9;\n //1 2 1 2 1\n public static void main(String[] args) throws IOException {\n // Use the Scanner class\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] s = br.readLine().split(\" \");\n Main test = new Main();\n\n int n = Integer.parseInt(s[0]);\n //s = br.readLine().split(\" \");\n //s = br.readLine().split(\" \");\n test.solve(n);\n }\n}",
"import java.awt.*;",
"awt.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.nio.file.Files;",
"Files",
"java.nio.file",
"import java.nio.charset.StandardCharsets;",
"StandardCharsets",
"java.nio.charset",
"public class Main {\n int mod = (int) 1e9+7;\n //int n = (int) 1e6+5;\n //long[][] memo = new long[n][27];\n void solve(int a) {\n int sum = 0;\n int v = 1;\n for(int i=0;i<3;i++){\n v*=a;\n sum+=v;\n }\n System.out.println(sum);\n }\n //0 1 2 3 4 5 6 7\n //1 7 3 4 7 6 2 9\n //1 7 4 3 7 6 2 9;\n //1 2 1 2 1\n public static void main(String[] args) throws IOException {\n // Use the Scanner class\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] s = br.readLine().split(\" \");\n Main test = new Main();\n\n int n = Integer.parseInt(s[0]);\n //s = br.readLine().split(\" \");\n //s = br.readLine().split(\" \");\n test.solve(n);\n }\n}",
"Main",
"int mod = (int) 1e9+7;",
"mod",
"(int) 1e9+7",
"(int) 1e9",
"7",
"//int n = (int) 1e6+5;\n //long[][] memo = new long[n][27];\n void solve(int a) {\n int sum = 0;\n int v = 1;\n for(int i=0;i<3;i++){\n v*=a;\n sum+=v;\n }\n System.out.println(sum);\n }",
"solve",
"{\n int sum = 0;\n int v = 1;\n for(int i=0;i<3;i++){\n v*=a;\n sum+=v;\n }\n System.out.println(sum);\n }",
"int sum = 0;",
"sum",
"0",
"int v = 1;",
"v",
"1",
"for(int i=0;i<3;i++){\n v*=a;\n sum+=v;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"{\n v*=a;\n sum+=v;\n }",
"{\n v*=a;\n sum+=v;\n }",
"v*=a",
"v",
"a",
"sum+=v",
"sum",
"v",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"int a",
"a",
"//0 1 2 3 4 5 6 7\n //1 7 3 4 7 6 2 9\n //1 7 4 3 7 6 2 9;\n //1 2 1 2 1\n public static void main(String[] args) throws IOException {\n // Use the Scanner class\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] s = br.readLine().split(\" \");\n Main test = new Main();\n\n int n = Integer.parseInt(s[0]);\n //s = br.readLine().split(\" \");\n //s = br.readLine().split(\" \");\n test.solve(n);\n }",
"main",
"{\n // Use the Scanner class\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] s = br.readLine().split(\" \");\n Main test = new Main();\n\n int n = Integer.parseInt(s[0]);\n //s = br.readLine().split(\" \");\n //s = br.readLine().split(\" \");\n test.solve(n);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] s = br.readLine().split(\" \");",
"s",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"Main test = new Main();",
"test",
"new Main()",
"int n = Integer.parseInt(s[0]);",
"n",
"Integer.parseInt(s[0])",
"Integer.parseInt",
"Integer",
"s[0]",
"s",
"0",
"test.solve(n)",
"test.solve",
"test",
"n",
"String[] args",
"args",
"public class Main {\n int mod = (int) 1e9+7;\n //int n = (int) 1e6+5;\n //long[][] memo = new long[n][27];\n void solve(int a) {\n int sum = 0;\n int v = 1;\n for(int i=0;i<3;i++){\n v*=a;\n sum+=v;\n }\n System.out.println(sum);\n }\n //0 1 2 3 4 5 6 7\n //1 7 3 4 7 6 2 9\n //1 7 4 3 7 6 2 9;\n //1 2 1 2 1\n public static void main(String[] args) throws IOException {\n // Use the Scanner class\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] s = br.readLine().split(\" \");\n Main test = new Main();\n\n int n = Integer.parseInt(s[0]);\n //s = br.readLine().split(\" \");\n //s = br.readLine().split(\" \");\n test.solve(n);\n }\n}",
"public class Main {\n int mod = (int) 1e9+7;\n //int n = (int) 1e6+5;\n //long[][] memo = new long[n][27];\n void solve(int a) {\n int sum = 0;\n int v = 1;\n for(int i=0;i<3;i++){\n v*=a;\n sum+=v;\n }\n System.out.println(sum);\n }\n //0 1 2 3 4 5 6 7\n //1 7 3 4 7 6 2 9\n //1 7 4 3 7 6 2 9;\n //1 2 1 2 1\n public static void main(String[] args) throws IOException {\n // Use the Scanner class\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] s = br.readLine().split(\" \");\n Main test = new Main();\n\n int n = Integer.parseInt(s[0]);\n //s = br.readLine().split(\" \");\n //s = br.readLine().split(\" \");\n test.solve(n);\n }\n}",
"Main"
]
| import java.awt.*;
import java.util.*;
import java.io.*;
import java.math.BigDecimal;
import java.nio.file.Files;
import java.nio.charset.StandardCharsets;
//给出两个数a,b 求出[a,b]中各位数字之和能整除原数的数的个数。
public class Main {
int mod = (int) 1e9+7;
//int n = (int) 1e6+5;
//long[][] memo = new long[n][27];
void solve(int a) {
int sum = 0;
int v = 1;
for(int i=0;i<3;i++){
v*=a;
sum+=v;
}
System.out.println(sum);
}
//0 1 2 3 4 5 6 7
//1 7 3 4 7 6 2 9
//1 7 4 3 7 6 2 9;
//1 2 1 2 1
public static void main(String[] args) throws IOException {
// Use the Scanner class
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] s = br.readLine().split(" ");
Main test = new Main();
int n = Integer.parseInt(s[0]);
//s = br.readLine().split(" ");
//s = br.readLine().split(" ");
test.solve(n);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
42,
5
],
[
42,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
20,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
26,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
6,
39
],
[
39,
40
],
[
0,
41
],
[
41,
42
],
[
41,
43
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\t\n\t\tint ans = a + a * a + a * a * a;\n\t\tSystem.out.println(ans);\n\t\t\n\t\tsc.close();\n\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 sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\t\n\t\tint ans = a + a * a + a * a * a;\n\t\tSystem.out.println(ans);\n\t\t\n\t\tsc.close();\n\t}\n\t\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\t\n\t\tint ans = a + a * a + a * a * a;\n\t\tSystem.out.println(ans);\n\t\t\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\t\n\t\tint ans = a + a * a + a * a * a;\n\t\tSystem.out.println(ans);\n\t\t\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans = a + a * a + a * a * a;",
"ans",
"a + a * a + a * a * a",
"a + a * a + a * a * a",
"a",
"a * a",
"a",
"a",
"a * a * a",
"a * a * a",
"a",
"a",
"a",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\t\n\t\tint ans = a + a * a + a * a * a;\n\t\tSystem.out.println(ans);\n\t\t\n\t\tsc.close();\n\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 a = sc.nextInt();\n\t\t\n\t\tint ans = a + a * a + a * a * a;\n\t\tSystem.out.println(ans);\n\t\t\n\t\tsc.close();\n\t}\n\t\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int ans = a + a * a + a * a * a;
System.out.println(ans);
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
39,
5
],
[
39,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
32,
32
],
[
32,
33
],
[
32,
34
],
[
32,
35
],
[
6,
36
],
[
36,
37
],
[
0,
38
],
[
38,
39
],
[
38,
40
]
]
| [
"import java.util.*;\npublic class Main{\n public static void main(String[] args)throws Exception{\n Scanner sc=new Scanner(System.in);\n int a=Integer.parseInt(sc.next());\n System.out.println(a+a*a+a*a*a);\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 a=Integer.parseInt(sc.next());\n System.out.println(a+a*a+a*a*a);\n }\n}",
"Main",
"public static void main(String[] args)throws Exception{\n Scanner sc=new Scanner(System.in);\n int a=Integer.parseInt(sc.next());\n System.out.println(a+a*a+a*a*a);\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int a=Integer.parseInt(sc.next());\n System.out.println(a+a*a+a*a*a);\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a=Integer.parseInt(sc.next());",
"a",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"System.out.println(a+a*a+a*a*a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a+a*a+a*a*a",
"a+a*a+a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args)throws Exception{\n Scanner sc=new Scanner(System.in);\n int a=Integer.parseInt(sc.next());\n System.out.println(a+a*a+a*a*a);\n }\n}",
"public class Main{\n public static void main(String[] args)throws Exception{\n Scanner sc=new Scanner(System.in);\n int a=Integer.parseInt(sc.next());\n System.out.println(a+a*a+a*a*a);\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args)throws Exception{
Scanner sc=new Scanner(System.in);
int a=Integer.parseInt(sc.next());
System.out.println(a+a*a+a*a*a);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
39,
5
],
[
39,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
6,
36
],
[
36,
37
],
[
0,
38
],
[
38,
39
],
[
38,
40
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = Integer.parseInt(scanner.next());\n\t\tSystem.out.println((n) + (n * n) + (n * n * n));\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 scanner = new Scanner(System.in);\n\t\tint n = Integer.parseInt(scanner.next());\n\t\tSystem.out.println((n) + (n * n) + (n * n * n));\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = Integer.parseInt(scanner.next());\n\t\tSystem.out.println((n) + (n * n) + (n * n * n));\n\t}",
"main",
"{\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = Integer.parseInt(scanner.next());\n\t\tSystem.out.println((n) + (n * n) + (n * n * n));\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = Integer.parseInt(scanner.next());",
"n",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"System.out.println((n) + (n * n) + (n * n * n))",
"System.out.println",
"System.out",
"System",
"System.out",
"(n) + (n * n) + (n * n * n)",
"(n) + (n * n) + (n * n * n)",
"(n)",
"(n * n)",
"n",
"n",
"(n * n * n)",
"n * n * n",
"n",
"n",
"n",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = Integer.parseInt(scanner.next());\n\t\tSystem.out.println((n) + (n * n) + (n * n * n));\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = Integer.parseInt(scanner.next());\n\t\tSystem.out.println((n) + (n * n) + (n * n * n));\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = Integer.parseInt(scanner.next());
System.out.println((n) + (n * n) + (n * n * n));
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
46,
8
],
[
46,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
11,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
30,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
36,
36
],
[
36,
37
],
[
36,
38
],
[
36,
39
],
[
11,
40
],
[
40,
41
],
[
41,
42
],
[
9,
43
],
[
43,
44
],
[
0,
45
],
[
45,
46
],
[
45,
47
]
]
| [
"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 a = Integer.parseInt(br.readLine());\n \n out.println(a + a * a + a * a * a);\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 a = Integer.parseInt(br.readLine());\n \n out.println(a + a * a + a * a * a);\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 a = Integer.parseInt(br.readLine());\n \n out.println(a + a * a + a * a * a);\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 a = Integer.parseInt(br.readLine());\n \n out.println(a + a * a + a * a * a);\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 a = Integer.parseInt(br.readLine());",
"a",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"out.println(a + a * a + a * a * a)",
"out.println",
"out",
"a + a * a + a * a * a",
"a + a * a + a * a * a",
"a",
"a * a",
"a",
"a",
"a * a * a",
"a * a * a",
"a",
"a",
"a",
"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 a = Integer.parseInt(br.readLine());\n \n out.println(a + a * a + a * a * a);\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 a = Integer.parseInt(br.readLine());\n \n out.println(a + a * a + a * a * a);\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 a = Integer.parseInt(br.readLine());
out.println(a + a * a + a * a * a);
out.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
42,
8
],
[
42,
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
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
29,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
35,
35
],
[
35,
36
],
[
35,
37
],
[
35,
38
],
[
9,
39
],
[
39,
40
],
[
0,
41
],
[
41,
42
],
[
41,
43
]
]
| [
"import java.io.*;\nimport java.util.*;\npublic class Main\n{\n\tpublic static void main(String args[])throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint a = Integer.parseInt(br.readLine());\n\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n\tpublic static void main(String args[])throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint a = Integer.parseInt(br.readLine());\n\n\t\tSystem.out.println(a+a*a+a*a*a);\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\n\t\tint a = Integer.parseInt(br.readLine());\n\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint a = Integer.parseInt(br.readLine());\n\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int a = Integer.parseInt(br.readLine());",
"a",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"System.out.println(a+a*a+a*a*a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a+a*a+a*a*a",
"a+a*a+a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"String args[]",
"args",
"public class Main\n{\n\tpublic static void main(String args[])throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint a = Integer.parseInt(br.readLine());\n\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String args[])throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint a = Integer.parseInt(br.readLine());\n\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main
{
public static void main(String args[])throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(br.readLine());
System.out.println(a+a*a+a*a*a);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
39,
8
],
[
39,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
32,
32
],
[
32,
33
],
[
32,
34
],
[
32,
35
],
[
9,
36
],
[
36,
37
],
[
0,
38
],
[
38,
39
],
[
38,
40
]
]
| [
"import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(a+a*a+a*a*a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a+a*a+a*a*a",
"a+a*a+a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}\n}",
"Main"
]
| import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
System.out.println(a+a*a+a*a*a);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
2,
17,
17,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
23,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
17,
41,
13,
42,
2,
0,
13,
4,
13,
40,
17,
30,
14,
2,
13,
17,
3,
0,
18,
13,
40,
13,
13,
29,
20,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
2,
13,
17,
30,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
0,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
0,
13,
4,
18,
13,
13,
0,
13,
17,
13,
14,
2,
13,
40,
17,
0,
18,
13,
17,
40,
17,
12,
13,
30,
14,
2,
13,
13,
4,
13,
29,
18,
13,
40,
13,
12,
13,
30,
14,
2,
13,
17,
29,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
391,
14
],
[
391,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
17,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
17,
32
],
[
32,
33
],
[
32,
34
],
[
35,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
41,
41
],
[
41,
42
],
[
41,
43
],
[
41,
44
],
[
17,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
17,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
52,
53
],
[
53,
54
],
[
17,
55
],
[
55,
56
],
[
56,
57
],
[
15,
58
],
[
58,
59
],
[
391,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
60,
67
],
[
67,
68
],
[
60,
69
],
[
69,
70
],
[
60,
71
],
[
71,
72
],
[
60,
73
],
[
73,
74
],
[
60,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
77,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
60,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
96,
98
],
[
92,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
90,
105
],
[
105,
106
],
[
60,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
114
],
[
114,
115
],
[
114,
116
],
[
109,
117
],
[
117,
118
],
[
109,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
120,
125
],
[
125,
126
],
[
119,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
127,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
133,
138
],
[
109,
139
],
[
139,
140
],
[
60,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
143,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
143,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
161,
163
],
[
143,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
143,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
172,
177
],
[
171,
178
],
[
178,
179
],
[
178,
180
],
[
170,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
184,
190
],
[
143,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
143,
196
],
[
196,
197
],
[
60,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
200,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
200,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
218,
220
],
[
200,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
200,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
229,
234
],
[
228,
235
],
[
235,
236
],
[
235,
237
],
[
227,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
242,
246
],
[
241,
247
],
[
200,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
251,
252
],
[
200,
253
],
[
253,
254
],
[
60,
255
],
[
255,
256
],
[
255,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
257,
261
],
[
261,
262
],
[
261,
263
],
[
257,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
257,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
268,
272
],
[
272,
273
],
[
272,
274
],
[
274,
275
],
[
257,
276
],
[
276,
277
],
[
276,
278
],
[
278,
279
],
[
278,
280
],
[
257,
281
],
[
281,
282
],
[
281,
283
],
[
283,
284
],
[
283,
285
],
[
285,
286
],
[
257,
287
],
[
287,
288
],
[
288,
289
],
[
289,
290
],
[
290,
291
],
[
290,
292
],
[
292,
293
],
[
289,
294
],
[
288,
295
],
[
295,
296
],
[
295,
297
],
[
287,
298
],
[
298,
299
],
[
299,
300
],
[
299,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
303,
305
],
[
302,
306
],
[
301,
307
],
[
257,
308
],
[
308,
309
],
[
309,
310
],
[
309,
311
],
[
308,
312
],
[
312,
313
],
[
313,
314
],
[
314,
315
],
[
315,
316
],
[
316,
317
],
[
316,
318
],
[
318,
319
],
[
315,
320
],
[
314,
321
],
[
321,
322
],
[
321,
323
],
[
313,
324
],
[
324,
325
],
[
325,
326
],
[
325,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
327,
331
],
[
331,
332
],
[
331,
333
],
[
257,
334
],
[
334,
335
],
[
334,
336
],
[
336,
337
],
[
337,
338
],
[
257,
339
],
[
339,
340
],
[
60,
341
],
[
341,
342
],
[
341,
343
],
[
343,
344
],
[
344,
345
],
[
344,
346
],
[
346,
347
],
[
347,
348
],
[
346,
349
],
[
346,
350
],
[
350,
351
],
[
350,
352
],
[
346,
353
],
[
343,
354
],
[
354,
355
],
[
355,
356
],
[
355,
357
],
[
357,
358
],
[
354,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
359,
363
],
[
363,
364
],
[
60,
365
],
[
365,
366
],
[
365,
367
],
[
367,
368
],
[
368,
369
],
[
369,
370
],
[
369,
371
],
[
368,
372
],
[
372,
373
],
[
367,
374
],
[
374,
375
],
[
375,
376
],
[
375,
377
],
[
377,
378
],
[
60,
379
],
[
379,
380
],
[
379,
381
],
[
381,
382
],
[
382,
383
],
[
383,
384
],
[
383,
385
],
[
382,
386
],
[
381,
387
],
[
387,
388
],
[
388,
389
],
[
0,
390
],
[
390,
391
],
[
390,
392
]
]
| [
"import java.io.*;\nimport java.math.*;\nimport java.util.*;\nimport java.lang.*;\n\n// import java.text.DecimalFormat; \n// import java.text.DecimalFormatSymbols; \n \n \n// Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail\n \npublic class Main {\n \n static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[1000001]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n } \n \n\n \n public static void main(String args[] ) throws Exception {\n StringBuffer str = new StringBuffer();\n PrintWriter pw=new PrintWriter(System.out);\n Reader sc = new Reader();\n \n int a = sc.nextInt();\n int ans = a+a*a+a*a*a;\n \n str.append(ans);\n \n pw.println(str.toString());\n \n pw.close();\n }\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n}",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main {\n \n static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[1000001]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n } \n \n\n \n public static void main(String args[] ) throws Exception {\n StringBuffer str = new StringBuffer();\n PrintWriter pw=new PrintWriter(System.out);\n Reader sc = new Reader();\n \n int a = sc.nextInt();\n int ans = a+a*a+a*a*a;\n \n str.append(ans);\n \n pw.println(str.toString());\n \n pw.close();\n }\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n}",
"Main",
"public static void main(String args[] ) throws Exception {\n StringBuffer str = new StringBuffer();\n PrintWriter pw=new PrintWriter(System.out);\n Reader sc = new Reader();\n \n int a = sc.nextInt();\n int ans = a+a*a+a*a*a;\n \n str.append(ans);\n \n pw.println(str.toString());\n \n pw.close();\n }",
"main",
"{\n StringBuffer str = new StringBuffer();\n PrintWriter pw=new PrintWriter(System.out);\n Reader sc = new Reader();\n \n int a = sc.nextInt();\n int ans = a+a*a+a*a*a;\n \n str.append(ans);\n \n pw.println(str.toString());\n \n pw.close();\n }",
"StringBuffer str = new StringBuffer();",
"str",
"new StringBuffer()",
"PrintWriter pw=new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"Reader sc = new Reader();",
"sc",
"new Reader()",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans = a+a*a+a*a*a;",
"ans",
"a+a*a+a*a*a",
"a+a*a+a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"str.append(ans)",
"str.append",
"str",
"ans",
"pw.println(str.toString())",
"pw.println",
"pw",
"str.toString()",
"str.toString",
"str",
"pw.close()",
"pw.close",
"pw",
"String args[]",
"args",
"static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[1000001]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n }",
"Reader",
"final private int BUFFER_SIZE = 1 << 16;",
"BUFFER_SIZE",
"1 << 16",
"1",
"16",
"private DataInputStream din;",
"din",
"private byte[] buffer;",
"buffer",
"private int bufferPointer",
"bufferPointer",
"bytesRead;",
"bytesRead",
"public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"Reader",
"{ \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"din = new DataInputStream(System.in)",
"din",
"new DataInputStream(System.in)",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"Reader",
"{ \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"din = new DataInputStream(new FileInputStream(file_name))",
"din",
"new DataInputStream(new FileInputStream(file_name))",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"String file_name",
"file_name",
"public String readLine() throws IOException \n { \n byte[] buf = new byte[1000001]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }",
"readLine",
"{ \n byte[] buf = new byte[1000001]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }",
"byte[] buf = new byte[1000001];",
"buf",
"new byte[1000001]",
"1000001",
"int cnt = 0",
"cnt",
"0",
"c;",
"c",
"while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n }",
"(c = read()) != -1",
"(c = read())",
"c",
"read()",
"read",
"-1",
"1",
"{ \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n }",
"if (c == '\\n') \n break;",
"c == '\\n'",
"c",
"'\\n'",
"break;",
"buf[cnt++] = (byte) c",
"buf[cnt++]",
"buf",
"cnt++",
"cnt",
"(byte) c",
"return new String(buf, 0, cnt);",
"new String(buf, 0, cnt)",
"public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n }",
"nextInt",
"{ \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n }",
"int ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }",
"nextLong",
"{ \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }",
"long ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n }",
"nextDouble",
"{ \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n }",
"double ret = 0",
"ret",
"0",
"div = 1;",
"div",
"1",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }",
"c == '.'",
"c",
"'.'",
"{ \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }",
"while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n }",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret += (c - '0') / (div *= 10); \n }",
"ret += (c - '0') / (div *= 10)",
"ret",
"(c - '0') / (div *= 10)",
"(c - '0')",
"c",
"'0'",
"(div *= 10)",
"div",
"10",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }",
"fillBuffer",
"{ \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }",
"bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"bytesRead",
"din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"din.read",
"din",
"buffer",
"bufferPointer = 0",
"bufferPointer",
"0",
"BUFFER_SIZE",
"if (bytesRead == -1) \n buffer[0] = -1;",
"bytesRead == -1",
"bytesRead",
"-1",
"1",
"buffer[0] = -1",
"buffer[0]",
"buffer",
"0",
"-1",
"1",
"private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }",
"read",
"{ \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }",
"if (bufferPointer == bytesRead) \n fillBuffer();",
"bufferPointer == bytesRead",
"bufferPointer",
"bytesRead",
"fillBuffer()",
"fillBuffer",
"return buffer[bufferPointer++];",
"buffer[bufferPointer++]",
"buffer",
"bufferPointer++",
"bufferPointer",
"public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n }",
"close",
"{ \n if (din == null) \n return; \n din.close(); \n }",
"if (din == null) \n return;",
"din == null",
"din",
"null",
"return;",
"din.close()",
"din.close",
"din",
"public class Main {\n \n static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[1000001]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n } \n \n\n \n public static void main(String args[] ) throws Exception {\n StringBuffer str = new StringBuffer();\n PrintWriter pw=new PrintWriter(System.out);\n Reader sc = new Reader();\n \n int a = sc.nextInt();\n int ans = a+a*a+a*a*a;\n \n str.append(ans);\n \n pw.println(str.toString());\n \n pw.close();\n }\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n}",
"public class Main {\n \n static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[1000001]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n } \n \n\n \n public static void main(String args[] ) throws Exception {\n StringBuffer str = new StringBuffer();\n PrintWriter pw=new PrintWriter(System.out);\n Reader sc = new Reader();\n \n int a = sc.nextInt();\n int ans = a+a*a+a*a*a;\n \n str.append(ans);\n \n pw.println(str.toString());\n \n pw.close();\n }\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n}",
"Main"
]
| import java.io.*;
import java.math.*;
import java.util.*;
import java.lang.*;
// import java.text.DecimalFormat;
// import java.text.DecimalFormatSymbols;
// Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
public class Main {
static class Reader
{
final private int BUFFER_SIZE = 1 << 16;
private DataInputStream din;
private byte[] buffer;
private int bufferPointer, bytesRead;
public Reader()
{
din = new DataInputStream(System.in);
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public Reader(String file_name) throws IOException
{
din = new DataInputStream(new FileInputStream(file_name));
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public String readLine() throws IOException
{
byte[] buf = new byte[1000001]; // line length
int cnt = 0, c;
while ((c = read()) != -1)
{
if (c == '\n')
break;
buf[cnt++] = (byte) c;
}
return new String(buf, 0, cnt);
}
public int nextInt() throws IOException
{
int ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do
{
ret = ret * 10 + c - '0';
} while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public long nextLong() throws IOException
{
long ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
}
while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public double nextDouble() throws IOException
{
double ret = 0, div = 1;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
}
while ((c = read()) >= '0' && c <= '9');
if (c == '.')
{
while ((c = read()) >= '0' && c <= '9')
{
ret += (c - '0') / (div *= 10);
}
}
if (neg)
return -ret;
return ret;
}
private void fillBuffer() throws IOException
{
bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
if (bytesRead == -1)
buffer[0] = -1;
}
private byte read() throws IOException
{
if (bufferPointer == bytesRead)
fillBuffer();
return buffer[bufferPointer++];
}
public void close() throws IOException
{
if (din == null)
return;
din.close();
}
}
public static void main(String args[] ) throws Exception {
StringBuffer str = new StringBuffer();
PrintWriter pw=new PrintWriter(System.out);
Reader sc = new Reader();
int a = sc.nextInt();
int ans = a+a*a+a*a*a;
str.append(ans);
pw.println(str.toString());
pw.close();
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
14,
2,
13,
17,
29,
13,
14,
2,
13,
17,
29,
13,
14,
2,
13,
13,
29,
13,
14,
2,
13,
13,
29,
4,
13,
2,
13,
13,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
117,
5
],
[
117,
6
],
[
6,
7
],
[
6,
8
],
[
117,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
12,
16
],
[
16,
17
],
[
11,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
22,
23
],
[
11,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
11,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
42,
45
],
[
45,
46
],
[
45,
47
],
[
9,
48
],
[
48,
49
],
[
9,
50
],
[
50,
51
],
[
117,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
52,
63
],
[
63,
64
],
[
52,
65
],
[
65,
66
],
[
117,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
67,
78
],
[
78,
79
],
[
67,
80
],
[
80,
81
],
[
117,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
84,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
105,
109
],
[
98,
110
],
[
84,
111
],
[
111,
112
],
[
112,
113
],
[
82,
114
],
[
114,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
]
| [
"\nimport java.util.*;\n\npublic class Main\n{\n\n private final static int MOD = 1_000_000_007;\n\n public static int gcd(int a, int b) { \n // Everything divides 0 \n if (a == 0) \n return b; \n if (b == 0) \n return a; \n \n // base case \n if (a == b) \n return a; \n \n // a is greater \n if (a > b) \n return gcd(a-b, b); \n return gcd(a, b-a); \n }\n \n public static long mod(long a, long b) {\n return ((a % b) + b ) % b;\n }\n\n public static int mod (int a, int b) {\n return ((a % b) + b ) % b;\n }\n \n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n\tint a = in.nextInt();\n\tSystem.out.println((int)(Math.pow(a,2) + Math.pow(a,3) + a));\n\tin.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n\n private final static int MOD = 1_000_000_007;\n\n public static int gcd(int a, int b) { \n // Everything divides 0 \n if (a == 0) \n return b; \n if (b == 0) \n return a; \n \n // base case \n if (a == b) \n return a; \n \n // a is greater \n if (a > b) \n return gcd(a-b, b); \n return gcd(a, b-a); \n }\n \n public static long mod(long a, long b) {\n return ((a % b) + b ) % b;\n }\n\n public static int mod (int a, int b) {\n return ((a % b) + b ) % b;\n }\n \n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n\tint a = in.nextInt();\n\tSystem.out.println((int)(Math.pow(a,2) + Math.pow(a,3) + a));\n\tin.close();\n }\n}",
"Main",
"private final static int MOD = 1_000_000_007;",
"MOD",
"1_000_000_007",
"public static int gcd(int a, int b) { \n // Everything divides 0 \n if (a == 0) \n return b; \n if (b == 0) \n return a; \n \n // base case \n if (a == b) \n return a; \n \n // a is greater \n if (a > b) \n return gcd(a-b, b); \n return gcd(a, b-a); \n }",
"gcd",
"{ \n // Everything divides 0 \n if (a == 0) \n return b; \n if (b == 0) \n return a; \n \n // base case \n if (a == b) \n return a; \n \n // a is greater \n if (a > b) \n return gcd(a-b, b); \n return gcd(a, b-a); \n }",
"if (a == 0) \n return b;",
"a == 0",
"a",
"0",
"return b;",
"b",
"if (b == 0) \n return a;",
"b == 0",
"b",
"0",
"return a;",
"a",
"if (a == b) \n return a;",
"a == b",
"a",
"b",
"return a;",
"a",
"if (a > b) \n return gcd(a-b, b);",
"a > b",
"a",
"b",
"return gcd(a-b, b);",
"gcd(a-b, b)",
"gcd",
"a-b",
"a",
"b",
"b",
"return gcd(a, b-a);",
"gcd(a, b-a)",
"gcd",
"a",
"b-a",
"b",
"a",
"int a",
"a",
"int b",
"b",
"public static long mod(long a, long b) {\n return ((a % b) + b ) % b;\n }",
"mod",
"{\n return ((a % b) + b ) % b;\n }",
"return ((a % b) + b ) % b;",
"((a % b) + b ) % b",
"((a % b) + b )",
"(a % b)",
"a",
"b",
"b",
"b",
"long a",
"a",
"long b",
"b",
"public static int mod (int a, int b) {\n return ((a % b) + b ) % b;\n }",
"mod",
"{\n return ((a % b) + b ) % b;\n }",
"return ((a % b) + b ) % b;",
"((a % b) + b ) % b",
"((a % b) + b )",
"(a % b)",
"a",
"b",
"b",
"b",
"int a",
"a",
"int b",
"b",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n\tint a = in.nextInt();\n\tSystem.out.println((int)(Math.pow(a,2) + Math.pow(a,3) + a));\n\tin.close();\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n\tint a = in.nextInt();\n\tSystem.out.println((int)(Math.pow(a,2) + Math.pow(a,3) + a));\n\tin.close();\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int a = in.nextInt();",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"System.out.println((int)(Math.pow(a,2) + Math.pow(a,3) + a))",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)(Math.pow(a,2) + Math.pow(a,3) + a)",
"Math.pow(a,2) + Math.pow(a,3) + a",
"Math.pow(a,2)",
"Math.pow",
"Math",
"a",
"2",
"Math.pow(a,3)",
"Math.pow",
"Math",
"a",
"3",
"a",
"in.close()",
"in.close",
"in",
"String[] args",
"args",
"public class Main\n{\n\n private final static int MOD = 1_000_000_007;\n\n public static int gcd(int a, int b) { \n // Everything divides 0 \n if (a == 0) \n return b; \n if (b == 0) \n return a; \n \n // base case \n if (a == b) \n return a; \n \n // a is greater \n if (a > b) \n return gcd(a-b, b); \n return gcd(a, b-a); \n }\n \n public static long mod(long a, long b) {\n return ((a % b) + b ) % b;\n }\n\n public static int mod (int a, int b) {\n return ((a % b) + b ) % b;\n }\n \n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n\tint a = in.nextInt();\n\tSystem.out.println((int)(Math.pow(a,2) + Math.pow(a,3) + a));\n\tin.close();\n }\n}",
"public class Main\n{\n\n private final static int MOD = 1_000_000_007;\n\n public static int gcd(int a, int b) { \n // Everything divides 0 \n if (a == 0) \n return b; \n if (b == 0) \n return a; \n \n // base case \n if (a == b) \n return a; \n \n // a is greater \n if (a > b) \n return gcd(a-b, b); \n return gcd(a, b-a); \n }\n \n public static long mod(long a, long b) {\n return ((a % b) + b ) % b;\n }\n\n public static int mod (int a, int b) {\n return ((a % b) + b ) % b;\n }\n \n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n\tint a = in.nextInt();\n\tSystem.out.println((int)(Math.pow(a,2) + Math.pow(a,3) + a));\n\tin.close();\n }\n}",
"Main"
]
|
import java.util.*;
public class Main
{
private final static int MOD = 1_000_000_007;
public static int gcd(int a, int b) {
// Everything divides 0
if (a == 0)
return b;
if (b == 0)
return a;
// base case
if (a == b)
return a;
// a is greater
if (a > b)
return gcd(a-b, b);
return gcd(a, b-a);
}
public static long mod(long a, long b) {
return ((a % b) + b ) % b;
}
public static int mod (int a, int b) {
return ((a % b) + b ) % b;
}
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a = in.nextInt();
System.out.println((int)(Math.pow(a,2) + Math.pow(a,3) + a));
in.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
12,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
14,
2,
13,
13,
30,
29,
17,
30,
0,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
17,
29,
17,
12,
13,
30,
14,
4,
13,
29,
18,
13,
40,
13,
29,
40,
17,
12,
13,
30,
29,
2,
2,
17,
13,
2,
13,
17,
23,
13,
12,
13,
30,
42,
2,
4,
13,
40,
4,
13,
18,
13,
13,
40,
13,
29,
4,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
20,
41,
13,
4,
13,
42,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
14,
2,
2,
13,
17,
2,
17,
13,
30,
37,
20,
42,
17,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
2,
13,
40,
17,
40,
4,
13,
13,
30,
29,
8,
13,
40,
13,
13,
30,
37,
20,
0,
13,
4,
13,
12,
13,
30,
41,
13,
4,
13,
14,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
37,
20,
29,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
318,
17
],
[
318,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
18,
24
],
[
24,
25
],
[
318,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
28,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
43,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
49,
49
],
[
49,
50
],
[
49,
51
],
[
49,
52
],
[
318,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
53,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
67,
74
],
[
74,
75
],
[
74,
76
],
[
67,
78
],
[
78,
79
],
[
78,
80
],
[
67,
81
],
[
81,
82
],
[
81,
83
],
[
67,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
92,
93
],
[
87,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
98,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
94,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
117,
118
],
[
86,
119
],
[
119,
120
],
[
67,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
124,
132
],
[
132,
133
],
[
133,
134
],
[
67,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
143,
144
],
[
143,
145
],
[
135,
146
],
[
146,
147
],
[
67,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
152,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
158,
160
],
[
151,
161
],
[
161,
162
],
[
150,
163
],
[
163,
164
],
[
164,
165
],
[
67,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
169,
173
],
[
173,
174
],
[
168,
175
],
[
175,
176
],
[
175,
177
],
[
168,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
168,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
187,
190
],
[
186,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
168,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
67,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
202,
206
],
[
206,
207
],
[
201,
208
],
[
208,
209
],
[
208,
210
],
[
201,
211
],
[
211,
212
],
[
211,
213
],
[
201,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
201,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
222,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
201,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
231,
235
],
[
235,
236
],
[
235,
237
],
[
230,
238
],
[
238,
239
],
[
239,
240
],
[
201,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
245,
249
],
[
249,
250
],
[
249,
251
],
[
244,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
252,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
258,
260
],
[
244,
261
],
[
261,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
262,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
261,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
275,
276
],
[
273,
277
],
[
261,
278
],
[
278,
279
],
[
279,
280
],
[
243,
281
],
[
281,
282
],
[
281,
283
],
[
283,
284
],
[
67,
285
],
[
285,
286
],
[
285,
287
],
[
287,
288
],
[
288,
289
],
[
288,
290
],
[
290,
291
],
[
287,
292
],
[
292,
293
],
[
293,
294
],
[
294,
295
],
[
294,
296
],
[
296,
297
],
[
296,
298
],
[
293,
299
],
[
299,
300
],
[
299,
301
],
[
301,
302
],
[
301,
303
],
[
292,
304
],
[
304,
305
],
[
287,
306
],
[
306,
307
],
[
67,
308
],
[
308,
309
],
[
308,
310
],
[
310,
311
],
[
311,
312
],
[
312,
313
],
[
313,
314
],
[
312,
315
],
[
315,
316
],
[
0,
317
],
[
317,
318
],
[
317,
319
]
]
| [
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.util.Arrays;\nimport java.util.NoSuchElementException;\nimport java.util.TreeSet;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\t\n\tvoid run() {\n\t\tFastScanner sc=new FastScanner();\n\t\tlong a=sc.nextLong();\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}\n\n\tvoid tr(Object...o) {System.out.println(Arrays.deepToString(o));}\n}\n\nclass FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n \tptr = 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 \n public double nextDouble() { return Double.parseDouble(next());}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.NoSuchElementException;",
"NoSuchElementException",
"java.util",
"import java.util.TreeSet;",
"TreeSet",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\t\n\tvoid run() {\n\t\tFastScanner sc=new FastScanner();\n\t\tlong a=sc.nextLong();\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}\n\n\tvoid tr(Object...o) {System.out.println(Arrays.deepToString(o));}\n}",
"Main",
"public static void main(String[] args) {\n\t\tnew Main().run();\n\t}",
"main",
"{\n\t\tnew Main().run();\n\t}",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"void run() {\n\t\tFastScanner sc=new FastScanner();\n\t\tlong a=sc.nextLong();\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}",
"run",
"{\n\t\tFastScanner sc=new FastScanner();\n\t\tlong a=sc.nextLong();\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}",
"FastScanner sc=new FastScanner();",
"sc",
"new FastScanner()",
"long a=sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"System.out.println(a+a*a+a*a*a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a+a*a+a*a*a",
"a+a*a+a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"void tr(Object...o) {System.out.println(Arrays.deepToString(o));}",
"tr",
"{System.out.println(Arrays.deepToString(o));}",
"System.out.println(Arrays.deepToString(o))",
"System.out.println",
"System.out",
"System",
"System.out",
"Arrays.deepToString(o)",
"Arrays.deepToString",
"Arrays",
"o",
"Object...o",
"o",
"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 \tptr = 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 \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 \tptr = 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 \tptr = 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 \tptr = 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 \tptr = 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\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\t\n\tvoid run() {\n\t\tFastScanner sc=new FastScanner();\n\t\tlong a=sc.nextLong();\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}\n\n\tvoid tr(Object...o) {System.out.println(Arrays.deepToString(o));}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\t\n\tvoid run() {\n\t\tFastScanner sc=new FastScanner();\n\t\tlong a=sc.nextLong();\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}\n\n\tvoid tr(Object...o) {System.out.println(Arrays.deepToString(o));}\n}",
"Main"
]
| import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.NoSuchElementException;
import java.util.TreeSet;
public class Main {
public static void main(String[] args) {
new Main().run();
}
void run() {
FastScanner sc=new FastScanner();
long a=sc.nextLong();
System.out.println(a+a*a+a*a*a);
}
void tr(Object...o) {System.out.println(Arrays.deepToString(o));}
}
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,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
13,
23,
13,
12,
13,
30,
29,
2,
2,
13,
2,
13,
13,
2,
2,
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
],
[
54,
11
],
[
54,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
12,
34
],
[
34,
35
],
[
54,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
41,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
47,
47
],
[
47,
48
],
[
47,
49
],
[
47,
50
],
[
36,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int m = Integer.parseInt(br.readLine());\n System.out.println(problem172a(m));\n }\n\n private static int problem172a(int a) {\n return a + a * a + a * a * a;\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int m = Integer.parseInt(br.readLine());\n System.out.println(problem172a(m));\n }\n\n private static int problem172a(int a) {\n return a + a * a + a * a * a;\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int m = Integer.parseInt(br.readLine());\n System.out.println(problem172a(m));\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int m = Integer.parseInt(br.readLine());\n System.out.println(problem172a(m));\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int m = Integer.parseInt(br.readLine());",
"m",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"System.out.println(problem172a(m))",
"System.out.println",
"System.out",
"System",
"System.out",
"problem172a(m)",
"problem172a",
"m",
"String[] args",
"args",
"private static int problem172a(int a) {\n return a + a * a + a * a * a;\n }",
"problem172a",
"{\n return a + a * a + a * a * a;\n }",
"return a + a * a + a * a * a;",
"a + a * a + a * a * a",
"a + a * a + a * a * a",
"a",
"a * a",
"a",
"a",
"a * a * a",
"a * a * a",
"a",
"a",
"a",
"int a",
"a",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int m = Integer.parseInt(br.readLine());\n System.out.println(problem172a(m));\n }\n\n private static int problem172a(int a) {\n return a + a * a + a * a * a;\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int m = Integer.parseInt(br.readLine());\n System.out.println(problem172a(m));\n }\n\n private static int problem172a(int a) {\n return a + a * a + a * a * a;\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int m = Integer.parseInt(br.readLine());
System.out.println(problem172a(m));
}
private static int problem172a(int a) {
return a + a * a + a * a * a;
}
} |
[
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,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
45,
8
],
[
45,
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
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
32,
32
],
[
32,
33
],
[
32,
34
],
[
32,
35
],
[
11,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
9,
42
],
[
42,
43
],
[
0,
44
],
[
44,
45
],
[
44,
46
]
]
| [
"import java.util.*;\nimport java.io.*;\npublic class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\tint a = Integer.parseInt(reader.readLine());\n\tint res = a+a*a+a*a*a;\n\tSystem.out.println(res);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\tint a = Integer.parseInt(reader.readLine());\n\tint res = a+a*a+a*a*a;\n\tSystem.out.println(res);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\tint a = Integer.parseInt(reader.readLine());\n\tint res = a+a*a+a*a*a;\n\tSystem.out.println(res);\n\t}",
"main",
"{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\tint a = Integer.parseInt(reader.readLine());\n\tint res = a+a*a+a*a*a;\n\tSystem.out.println(res);\n\t}",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"int a = Integer.parseInt(reader.readLine());",
"a",
"Integer.parseInt(reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"int res = a+a*a+a*a*a;",
"res",
"a+a*a+a*a*a",
"a+a*a+a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"System.out.println(res)",
"System.out.println",
"System.out",
"System",
"System.out",
"res",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\tint a = Integer.parseInt(reader.readLine());\n\tint res = a+a*a+a*a*a;\n\tSystem.out.println(res);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\tint a = Integer.parseInt(reader.readLine());\n\tint res = a+a*a+a*a*a;\n\tSystem.out.println(res);\n\t}\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int res = a+a*a+a*a*a;
System.out.println(res);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
17,
12,
13,
30,
14,
2,
13,
17,
29,
13,
29,
4,
13,
2,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
2,
13,
13,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
4,
18,
13,
13,
29,
4,
18,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
2,
13,
2,
17,
2,
13,
2,
17,
13,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
4,
18,
4,
18,
13,
17,
29,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
275,
32
],
[
275,
33
],
[
33,
34
],
[
33,
35
],
[
275,
36
],
[
36,
37
],
[
36,
38
],
[
275,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
41,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
39,
55
],
[
55,
56
],
[
39,
57
],
[
57,
58
],
[
275,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
67,
69
],
[
64,
70
],
[
61,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
61,
77
],
[
77,
78
],
[
77,
79
],
[
61,
80
],
[
80,
81
],
[
80,
82
],
[
61,
83
],
[
83,
84
],
[
83,
85
],
[
61,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
98,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
98,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
61,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
59,
125
],
[
125,
126
],
[
59,
127
],
[
127,
128
],
[
275,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
131,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
149,
151
],
[
131,
152
],
[
152,
153
],
[
153,
154
],
[
131,
155
],
[
155,
156
],
[
156,
157
],
[
129,
158
],
[
158,
159
],
[
275,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
160,
164
],
[
164,
165
],
[
160,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
160,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
175,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
185,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
174,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
160,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
204,
207
],
[
207,
208
],
[
160,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
213,
216
],
[
216,
217
],
[
160,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
222,
225
],
[
225,
226
],
[
160,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
233,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
243,
250
],
[
229,
251
],
[
251,
252
],
[
160,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
255,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
259,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
270,
271
],
[
255,
272
],
[
272,
273
],
[
0,
274
],
[
274,
275
],
[
274,
276
]
]
| [
"import java.io.BufferedOutputStream;\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.math.BigInteger;\nimport java.text.DecimalFormat;\nimport java.util.ArrayList;\n\nimport java.util.HashMap;\n\nimport java.util.StringTokenizer;\n\n\n\npublic class Main {\n\n public static PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));\n\n static class FastReader {\n\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[] nextSArray() {\n String sr[] = null;\n try {\n sr = br.readLine().trim().split(\" \");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return sr;\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return str;\n }\n }\n static long gcd(long a,long b)\n {\n if(a==0)\n return b;\n return gcd(b%a,a);\n }\n\n // static int MOD=1000000000+7;\n static BigInteger combination(long n,long k)\n {\n\n long kk=Math.min(n-k,k);\n BigInteger N=BigInteger.valueOf(n);\n //BigInteger K=BigInteger.valueOf(kk);\n BigInteger num=new BigInteger(\"1\");\n BigInteger den =new BigInteger(\"1\");\n BigInteger one =new BigInteger(\"1\");\n\n for(int i=1;i<=kk;++i)\n {\n // num*=n;\n num=num.multiply(N);\n N=N.subtract(one);\n den=den.multiply(BigInteger.valueOf(i));\n }\n return num.divide(den);\n }\n\n static long mod=1000000007;\n public static void main(String[] args) throws Exception {\n FastReader sc = new FastReader();\n int n=sc.nextInt();\n out.println(n*(1+n*(1+n)));\n out.flush();\n out.close();\n }\n}\n\n\n\n// out.println(al.toString().replaceAll(\"[\\\\[|\\\\]|,]\",\"\"));",
"import java.io.BufferedOutputStream;",
"BufferedOutputStream",
"java.io",
"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.math.BigInteger;",
"BigInteger",
"java.math",
"import java.text.DecimalFormat;",
"DecimalFormat",
"java.text",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n public static PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));\n\n static class FastReader {\n\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[] nextSArray() {\n String sr[] = null;\n try {\n sr = br.readLine().trim().split(\" \");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return sr;\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return str;\n }\n }\n static long gcd(long a,long b)\n {\n if(a==0)\n return b;\n return gcd(b%a,a);\n }\n\n // static int MOD=1000000000+7;\n static BigInteger combination(long n,long k)\n {\n\n long kk=Math.min(n-k,k);\n BigInteger N=BigInteger.valueOf(n);\n //BigInteger K=BigInteger.valueOf(kk);\n BigInteger num=new BigInteger(\"1\");\n BigInteger den =new BigInteger(\"1\");\n BigInteger one =new BigInteger(\"1\");\n\n for(int i=1;i<=kk;++i)\n {\n // num*=n;\n num=num.multiply(N);\n N=N.subtract(one);\n den=den.multiply(BigInteger.valueOf(i));\n }\n return num.divide(den);\n }\n\n static long mod=1000000007;\n public static void main(String[] args) throws Exception {\n FastReader sc = new FastReader();\n int n=sc.nextInt();\n out.println(n*(1+n*(1+n)));\n out.flush();\n out.close();\n }\n}",
"Main",
"public static PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));",
"out",
"new PrintWriter(new BufferedOutputStream(System.out))",
"static long mod=1000000007;",
"mod",
"1000000007",
"static long gcd(long a,long b)\n {\n if(a==0)\n return b;\n return gcd(b%a,a);\n }",
"gcd",
"{\n if(a==0)\n return b;\n return gcd(b%a,a);\n }",
"if(a==0)\n return b;",
"a==0",
"a",
"0",
"return b;",
"b",
"return gcd(b%a,a);",
"gcd(b%a,a)",
"gcd",
"b%a",
"b",
"a",
"a",
"long a",
"a",
"long b",
"b",
"// static int MOD=1000000000+7;\n static BigInteger combination(long n,long k)\n {\n\n long kk=Math.min(n-k,k);\n BigInteger N=BigInteger.valueOf(n);\n //BigInteger K=BigInteger.valueOf(kk);\n BigInteger num=new BigInteger(\"1\");\n BigInteger den =new BigInteger(\"1\");\n BigInteger one =new BigInteger(\"1\");\n\n for(int i=1;i<=kk;++i)\n {\n // num*=n;\n num=num.multiply(N);\n N=N.subtract(one);\n den=den.multiply(BigInteger.valueOf(i));\n }\n return num.divide(den);\n }",
"combination",
"{\n\n long kk=Math.min(n-k,k);\n BigInteger N=BigInteger.valueOf(n);\n //BigInteger K=BigInteger.valueOf(kk);\n BigInteger num=new BigInteger(\"1\");\n BigInteger den =new BigInteger(\"1\");\n BigInteger one =new BigInteger(\"1\");\n\n for(int i=1;i<=kk;++i)\n {\n // num*=n;\n num=num.multiply(N);\n N=N.subtract(one);\n den=den.multiply(BigInteger.valueOf(i));\n }\n return num.divide(den);\n }",
"long kk=Math.min(n-k,k);",
"kk",
"Math.min(n-k,k)",
"Math.min",
"Math",
"n-k",
"n",
"k",
"k",
"BigInteger N=BigInteger.valueOf(n);",
"N",
"BigInteger.valueOf(n)",
"BigInteger.valueOf",
"BigInteger",
"n",
"BigInteger num=new BigInteger(\"1\");",
"num",
"new BigInteger(\"1\")",
"BigInteger den =new BigInteger(\"1\");",
"den",
"new BigInteger(\"1\")",
"BigInteger one =new BigInteger(\"1\");",
"one",
"new BigInteger(\"1\")",
"for(int i=1;i<=kk;++i)\n {\n // num*=n;\n num=num.multiply(N);\n N=N.subtract(one);\n den=den.multiply(BigInteger.valueOf(i));\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=kk",
"i",
"kk",
"++i",
"++i",
"i",
"{\n // num*=n;\n num=num.multiply(N);\n N=N.subtract(one);\n den=den.multiply(BigInteger.valueOf(i));\n }",
"{\n // num*=n;\n num=num.multiply(N);\n N=N.subtract(one);\n den=den.multiply(BigInteger.valueOf(i));\n }",
"num=num.multiply(N)",
"num",
"num.multiply(N)",
"num.multiply",
"num",
"N",
"N=N.subtract(one)",
"N",
"N.subtract(one)",
"N.subtract",
"N",
"one",
"den=den.multiply(BigInteger.valueOf(i))",
"den",
"den.multiply(BigInteger.valueOf(i))",
"den.multiply",
"den",
"BigInteger.valueOf(i)",
"BigInteger.valueOf",
"BigInteger",
"i",
"return num.divide(den);",
"num.divide(den)",
"num.divide",
"num",
"den",
"long n",
"n",
"long k",
"k",
"public static void main(String[] args) throws Exception {\n FastReader sc = new FastReader();\n int n=sc.nextInt();\n out.println(n*(1+n*(1+n)));\n out.flush();\n out.close();\n }",
"main",
"{\n FastReader sc = new FastReader();\n int n=sc.nextInt();\n out.println(n*(1+n*(1+n)));\n out.flush();\n out.close();\n }",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"out.println(n*(1+n*(1+n)))",
"out.println",
"out",
"n*(1+n*(1+n))",
"n",
"(1+n*(1+n))",
"1",
"n*(1+n)",
"n",
"(1+n)",
"1",
"n",
"out.flush()",
"out.flush",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class FastReader {\n\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[] nextSArray() {\n String sr[] = null;\n try {\n sr = br.readLine().trim().split(\" \");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return sr;\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\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[] nextSArray() {\n String sr[] = null;\n try {\n sr = br.readLine().trim().split(\" \");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return sr;\n }",
"nextSArray",
"{\n String sr[] = null;\n try {\n sr = br.readLine().trim().split(\" \");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return sr;\n }",
"String sr[] = null;",
"sr",
"null",
"try {\n sr = br.readLine().trim().split(\" \");\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 sr = br.readLine().trim().split(\" \");\n }",
"sr = br.readLine().trim().split(\" \")",
"sr",
"br.readLine().trim().split(\" \")",
"br.readLine().trim().split",
"br.readLine().trim()",
"br.readLine().trim",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"return sr;",
"sr",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\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 public static PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));\n\n static class FastReader {\n\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[] nextSArray() {\n String sr[] = null;\n try {\n sr = br.readLine().trim().split(\" \");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return sr;\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return str;\n }\n }\n static long gcd(long a,long b)\n {\n if(a==0)\n return b;\n return gcd(b%a,a);\n }\n\n // static int MOD=1000000000+7;\n static BigInteger combination(long n,long k)\n {\n\n long kk=Math.min(n-k,k);\n BigInteger N=BigInteger.valueOf(n);\n //BigInteger K=BigInteger.valueOf(kk);\n BigInteger num=new BigInteger(\"1\");\n BigInteger den =new BigInteger(\"1\");\n BigInteger one =new BigInteger(\"1\");\n\n for(int i=1;i<=kk;++i)\n {\n // num*=n;\n num=num.multiply(N);\n N=N.subtract(one);\n den=den.multiply(BigInteger.valueOf(i));\n }\n return num.divide(den);\n }\n\n static long mod=1000000007;\n public static void main(String[] args) throws Exception {\n FastReader sc = new FastReader();\n int n=sc.nextInt();\n out.println(n*(1+n*(1+n)));\n out.flush();\n out.close();\n }\n}",
"public class Main {\n\n public static PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));\n\n static class FastReader {\n\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[] nextSArray() {\n String sr[] = null;\n try {\n sr = br.readLine().trim().split(\" \");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return sr;\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return str;\n }\n }\n static long gcd(long a,long b)\n {\n if(a==0)\n return b;\n return gcd(b%a,a);\n }\n\n // static int MOD=1000000000+7;\n static BigInteger combination(long n,long k)\n {\n\n long kk=Math.min(n-k,k);\n BigInteger N=BigInteger.valueOf(n);\n //BigInteger K=BigInteger.valueOf(kk);\n BigInteger num=new BigInteger(\"1\");\n BigInteger den =new BigInteger(\"1\");\n BigInteger one =new BigInteger(\"1\");\n\n for(int i=1;i<=kk;++i)\n {\n // num*=n;\n num=num.multiply(N);\n N=N.subtract(one);\n den=den.multiply(BigInteger.valueOf(i));\n }\n return num.divide(den);\n }\n\n static long mod=1000000007;\n public static void main(String[] args) throws Exception {\n FastReader sc = new FastReader();\n int n=sc.nextInt();\n out.println(n*(1+n*(1+n)));\n out.flush();\n out.close();\n }\n}",
"Main"
]
| import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.StringTokenizer;
public class Main {
public static PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));
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[] nextSArray() {
String sr[] = null;
try {
sr = br.readLine().trim().split(" ");
} catch (IOException e) {
e.printStackTrace();
}
return sr;
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
static long gcd(long a,long b)
{
if(a==0)
return b;
return gcd(b%a,a);
}
// static int MOD=1000000000+7;
static BigInteger combination(long n,long k)
{
long kk=Math.min(n-k,k);
BigInteger N=BigInteger.valueOf(n);
//BigInteger K=BigInteger.valueOf(kk);
BigInteger num=new BigInteger("1");
BigInteger den =new BigInteger("1");
BigInteger one =new BigInteger("1");
for(int i=1;i<=kk;++i)
{
// num*=n;
num=num.multiply(N);
N=N.subtract(one);
den=den.multiply(BigInteger.valueOf(i));
}
return num.divide(den);
}
static long mod=1000000007;
public static void main(String[] args) throws Exception {
FastReader sc = new FastReader();
int n=sc.nextInt();
out.println(n*(1+n*(1+n)));
out.flush();
out.close();
}
}
// out.println(al.toString().replaceAll("[\\[|\\]|,]",""));
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
41,
13,
17,
41,
13,
41,
13,
17,
41,
13,
17,
0,
13,
4,
18,
13,
0,
13,
2,
13,
13,
0,
13,
2,
13,
13,
4,
18,
13,
2,
2,
13,
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
],
[
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
],
[
173,
32
],
[
173,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
35,
49
],
[
49,
50
],
[
49,
51
],
[
35,
52
],
[
52,
53
],
[
52,
54
],
[
35,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
35,
60
],
[
60,
61
],
[
61,
62
],
[
33,
63
],
[
63,
64
],
[
173,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
72,
74
],
[
69,
75
],
[
75,
76
],
[
69,
77
],
[
77,
78
],
[
77,
79
],
[
69,
80
],
[
80,
81
],
[
80,
82
],
[
69,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
69,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
69,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
69,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
102,
102
],
[
102,
103
],
[
102,
104
],
[
102,
105
],
[
67,
106
],
[
106,
107
],
[
67,
108
],
[
108,
109
],
[
173,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
110,
114
],
[
114,
115
],
[
110,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
122,
124
],
[
116,
125
],
[
125,
126
],
[
110,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
130,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
140,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
129,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
110,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
158,
161
],
[
161,
162
],
[
110,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
167,
170
],
[
170,
171
],
[
0,
172
],
[
172,
173
],
[
172,
174
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.StringTokenizer;\nimport java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\n\npublic class Main {\n\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.call(in,out);\n out.close();\n }\n\n static class TaskA {\n public void call(InputReader in, PrintWriter out) {\n int n ,x =0, y ,sum=0 , count=0;\n n = in.nextInt();\n x = n*n;\n y = x*n;\n out.println(n+x+y);\n\n\n\n\n }\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n public long nextLong() {\n return Long.parseLong(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.Arrays;",
"Arrays",
"java.util",
"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\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.call(in,out);\n out.close();\n }\n\n static class TaskA {\n public void call(InputReader in, PrintWriter out) {\n int n ,x =0, y ,sum=0 , count=0;\n n = in.nextInt();\n x = n*n;\n y = x*n;\n out.println(n+x+y);\n\n\n\n\n }\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.call(in,out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.call(in,out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"TaskA solver = new TaskA();",
"solver",
"new TaskA()",
"solver.call(in,out)",
"solver.call",
"solver",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class TaskA {\n public void call(InputReader in, PrintWriter out) {\n int n ,x =0, y ,sum=0 , count=0;\n n = in.nextInt();\n x = n*n;\n y = x*n;\n out.println(n+x+y);\n\n\n\n\n }\n }",
"TaskA",
"public void call(InputReader in, PrintWriter out) {\n int n ,x =0, y ,sum=0 , count=0;\n n = in.nextInt();\n x = n*n;\n y = x*n;\n out.println(n+x+y);\n\n\n\n\n }",
"call",
"{\n int n ,x =0, y ,sum=0 , count=0;\n n = in.nextInt();\n x = n*n;\n y = x*n;\n out.println(n+x+y);\n\n\n\n\n }",
"int n",
"n",
"x =0",
"x",
"0",
"y",
"y",
"sum=0",
"sum",
"0",
"count=0;",
"count",
"0",
"n = in.nextInt()",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"x = n*n",
"x",
"n*n",
"n",
"n",
"y = x*n",
"y",
"x*n",
"x",
"n",
"out.println(n+x+y)",
"out.println",
"out",
"n+x+y",
"n+x+y",
"n",
"x",
"y",
"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 public long nextLong() {\n return Long.parseLong(next());\n }\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) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.call(in,out);\n out.close();\n }\n\n static class TaskA {\n public void call(InputReader in, PrintWriter out) {\n int n ,x =0, y ,sum=0 , count=0;\n n = in.nextInt();\n x = n*n;\n y = x*n;\n out.println(n+x+y);\n\n\n\n\n }\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.call(in,out);\n out.close();\n }\n\n static class TaskA {\n public void call(InputReader in, PrintWriter out) {\n int n ,x =0, y ,sum=0 , count=0;\n n = in.nextInt();\n x = n*n;\n y = x*n;\n out.println(n+x+y);\n\n\n\n\n }\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
TaskA solver = new TaskA();
solver.call(in,out);
out.close();
}
static class TaskA {
public void call(InputReader in, PrintWriter out) {
int n ,x =0, y ,sum=0 , count=0;
n = in.nextInt();
x = n*n;
y = x*n;
out.println(n+x+y);
}
}
static class InputReader {
public BufferedReader reader;
public StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream), 32768);
tokenizer = null;
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
public long nextLong() {
return Long.parseLong(next());
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
13,
41,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
54,
8
],
[
54,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
18,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
25,
32
],
[
32,
33
],
[
32,
34
],
[
35,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
41,
41
],
[
41,
42
],
[
41,
43
],
[
41,
44
],
[
25,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
9,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String s;\n while ((s = in.readLine()) != null) {\n int i = Integer.parseInt(s);\n int ret = i + i * i + i * i * i;\n System.out.println(ret);\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String s;\n while ((s = in.readLine()) != null) {\n int i = Integer.parseInt(s);\n int ret = i + i * i + i * i * i;\n System.out.println(ret);\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String s;\n while ((s = in.readLine()) != null) {\n int i = Integer.parseInt(s);\n int ret = i + i * i + i * i * i;\n System.out.println(ret);\n }\n }",
"main",
"{\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String s;\n while ((s = in.readLine()) != null) {\n int i = Integer.parseInt(s);\n int ret = i + i * i + i * i * i;\n System.out.println(ret);\n }\n }",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"String s;",
"s",
"while ((s = in.readLine()) != null) {\n int i = Integer.parseInt(s);\n int ret = i + i * i + i * i * i;\n System.out.println(ret);\n }",
"(s = in.readLine()) != null",
"(s = in.readLine())",
"s",
"in.readLine()",
"in.readLine",
"in",
"null",
"{\n int i = Integer.parseInt(s);\n int ret = i + i * i + i * i * i;\n System.out.println(ret);\n }",
"int i = Integer.parseInt(s);",
"i",
"Integer.parseInt(s)",
"Integer.parseInt",
"Integer",
"s",
"int ret = i + i * i + i * i * i;",
"ret",
"i + i * i + i * i * i",
"i + i * i + i * i * i",
"i",
"i * i",
"i",
"i",
"i * i * i",
"i * i * i",
"i",
"i",
"i",
"System.out.println(ret)",
"System.out.println",
"System.out",
"System",
"System.out",
"ret",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String s;\n while ((s = in.readLine()) != null) {\n int i = Integer.parseInt(s);\n int ret = i + i * i + i * i * i;\n System.out.println(ret);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String s;\n while ((s = in.readLine()) != null) {\n int i = Integer.parseInt(s);\n int ret = i + i * i + i * i * i;\n System.out.println(ret);\n }\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String s;
while ((s = in.readLine()) != null) {
int i = Integer.parseInt(s);
int ret = i + i * i + i * i * i;
System.out.println(ret);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
2,
2,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
45,
5
],
[
45,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
25,
25
],
[
25,
26
],
[
25,
27
],
[
25,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
35,
35
],
[
35,
36
],
[
35,
37
],
[
35,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
6,
42
],
[
42,
43
],
[
0,
44
],
[
44,
45
],
[
44,
46
]
]
| [
"import java.util.*; \npublic class Main{\n static public void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n\n int a2=a*a;\n int a3=a*a*a;\n System.out.print(a+a2+a3);\n sc.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n static public void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n\n int a2=a*a;\n int a3=a*a*a;\n System.out.print(a+a2+a3);\n sc.close();\n }\n}",
"Main",
"static public void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n\n int a2=a*a;\n int a3=a*a*a;\n System.out.print(a+a2+a3);\n sc.close();\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n\n int a2=a*a;\n int a3=a*a*a;\n System.out.print(a+a2+a3);\n sc.close();\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a=sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a2=a*a;",
"a2",
"a*a",
"a",
"a",
"int a3=a*a*a;",
"a3",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"System.out.print(a+a2+a3)",
"System.out.print",
"System.out",
"System",
"System.out",
"a+a2+a3",
"a+a2+a3",
"a",
"a2",
"a3",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main{\n static public void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n\n int a2=a*a;\n int a3=a*a*a;\n System.out.print(a+a2+a3);\n sc.close();\n }\n}",
"public class Main{\n static public void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n\n int a2=a*a;\n int a3=a*a*a;\n System.out.print(a+a2+a3);\n sc.close();\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
static public void main(String[] args){
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int a2=a*a;
int a3=a*a*a;
System.out.print(a+a2+a3);
sc.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,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
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
],
[
45,
11
],
[
45,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
32,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
38,
38
],
[
38,
39
],
[
38,
40
],
[
38,
41
],
[
12,
42
],
[
42,
43
],
[
0,
44
],
[
44,
45
],
[
44,
46
]
]
| [
"import java.util.*;\nimport java.lang.*;\nimport java.io.*;\npublic class Main {\n\tpublic static void main(String[] args)throws java.lang.Exception\n {\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint a=Integer.parseInt(br.readLine());\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\tpublic static void main(String[] args)throws java.lang.Exception\n {\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint a=Integer.parseInt(br.readLine());\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}\n}",
"Main",
"public static void main(String[] args)throws java.lang.Exception\n {\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint a=Integer.parseInt(br.readLine());\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}",
"main",
"{\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint a=Integer.parseInt(br.readLine());\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int a=Integer.parseInt(br.readLine());",
"a",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"System.out.println(a+a*a+a*a*a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a+a*a+a*a*a",
"a+a*a+a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args)throws java.lang.Exception\n {\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint a=Integer.parseInt(br.readLine());\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args)throws java.lang.Exception\n {\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint a=Integer.parseInt(br.readLine());\n\t\tSystem.out.println(a+a*a+a*a*a);\n\t}\n}",
"Main"
]
| import java.util.*;
import java.lang.*;
import java.io.*;
public class Main {
public static void main(String[] args)throws java.lang.Exception
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int a=Integer.parseInt(br.readLine());
System.out.println(a+a*a+a*a*a);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
0,
13,
2,
2,
13,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
48,
5
],
[
48,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
30,
30
],
[
30,
31
],
[
30,
32
],
[
30,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
6,
45
],
[
45,
46
],
[
0,
47
],
[
47,
48
],
[
47,
49
]
]
| [
"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 a = sc.nextInt();\n\t\tint b = a*a;\n\t\tint ans = a+b;\n\t\tb=a*a*a;\n\t\tans=ans+b;\n\n\n\t\tSystem.out.println(ans);\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\n\t\tint a = sc.nextInt();\n\t\tint b = a*a;\n\t\tint ans = a+b;\n\t\tb=a*a*a;\n\t\tans=ans+b;\n\n\n\t\tSystem.out.println(ans);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = a*a;\n\t\tint ans = a+b;\n\t\tb=a*a*a;\n\t\tans=ans+b;\n\n\n\t\tSystem.out.println(ans);\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = a*a;\n\t\tint ans = a+b;\n\t\tb=a*a*a;\n\t\tans=ans+b;\n\n\n\t\tSystem.out.println(ans);\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = a*a;",
"b",
"a*a",
"a",
"a",
"int ans = a+b;",
"ans",
"a+b",
"a",
"b",
"b=a*a*a",
"b",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"ans=ans+b",
"ans",
"ans+b",
"ans",
"b",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = a*a;\n\t\tint ans = a+b;\n\t\tb=a*a*a;\n\t\tans=ans+b;\n\n\n\t\tSystem.out.println(ans);\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\n\t\tint a = sc.nextInt();\n\t\tint b = a*a;\n\t\tint ans = a+b;\n\t\tb=a*a*a;\n\t\tans=ans+b;\n\n\n\t\tSystem.out.println(ans);\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 a = sc.nextInt();
int b = a*a;
int ans = a+b;
b=a*a*a;
ans=ans+b;
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
42,
8
],
[
42,
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
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
29,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
35,
35
],
[
35,
36
],
[
35,
37
],
[
35,
38
],
[
9,
39
],
[
39,
40
],
[
0,
41
],
[
41,
42
],
[
41,
43
]
]
| [
"import java.util.Scanner;\nimport java.util.regex.Pattern;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tsc.close();\n\t\tSystem.out.println(a + a * a + a * a * a);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.regex.Pattern;",
"Pattern",
"java.util.regex",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tsc.close();\n\t\tSystem.out.println(a + a * a + a * a * a);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tsc.close();\n\t\tSystem.out.println(a + a * a + a * a * a);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tsc.close();\n\t\tSystem.out.println(a + a * a + a * a * a);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"System.out.println(a + a * a + a * a * a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a + a * a + a * a * a",
"a + a * a + a * a * a",
"a",
"a * a",
"a",
"a",
"a * a * a",
"a * a * a",
"a",
"a",
"a",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tsc.close();\n\t\tSystem.out.println(a + a * a + a * a * a);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tsc.close();\n\t\tSystem.out.println(a + a * a + a * a * a);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
import java.util.regex.Pattern;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
sc.close();
System.out.println(a + a * a + a * a * a);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
39,
5
],
[
39,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
20,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
26,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
6,
36
],
[
36,
37
],
[
0,
38
],
[
38,
39
],
[
38,
40
]
]
| [
"import java.util.Scanner;\npublic class Main {\npublic static void main(String[] args) {\nScanner sc = new Scanner(System.in);\n\nint input = sc.nextInt();\nint result = input + input * input + input * input * input;\n\nSystem.out.println(result);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\npublic static void main(String[] args) {\nScanner sc = new Scanner(System.in);\n\nint input = sc.nextInt();\nint result = input + input * input + input * input * input;\n\nSystem.out.println(result);\n\t}\n}",
"Main",
"public static void main(String[] args) {\nScanner sc = new Scanner(System.in);\n\nint input = sc.nextInt();\nint result = input + input * input + input * input * input;\n\nSystem.out.println(result);\n\t}",
"main",
"{\nScanner sc = new Scanner(System.in);\n\nint input = sc.nextInt();\nint result = input + input * input + input * input * input;\n\nSystem.out.println(result);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int input = sc.nextInt();",
"input",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int result = input + input * input + input * input * input;",
"result",
"input + input * input + input * input * input",
"input + input * input + input * input * input",
"input",
"input * input",
"input",
"input",
"input * input * input",
"input * input * input",
"input",
"input",
"input",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main {\npublic static void main(String[] args) {\nScanner sc = new Scanner(System.in);\n\nint input = sc.nextInt();\nint result = input + input * input + input * input * input;\n\nSystem.out.println(result);\n\t}\n}",
"public class Main {\npublic static void main(String[] args) {\nScanner sc = new Scanner(System.in);\n\nint input = sc.nextInt();\nint result = input + input * input + input * input * input;\n\nSystem.out.println(result);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int input = sc.nextInt();
int result = input + input * input + input * input * input;
System.out.println(result);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
47,
11
],
[
47,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
34,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
39,
43
],
[
12,
44
],
[
44,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tshort a = Short.parseShort(br.readLine());\n\t\tSystem.out.print((short) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tshort a = Short.parseShort(br.readLine());\n\t\tSystem.out.print((short) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tshort a = Short.parseShort(br.readLine());\n\t\tSystem.out.print((short) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tshort a = Short.parseShort(br.readLine());\n\t\tSystem.out.print((short) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"short a = Short.parseShort(br.readLine());",
"a",
"Short.parseShort(br.readLine())",
"Short.parseShort",
"Short",
"br.readLine()",
"br.readLine",
"br",
"System.out.print((short) (a + Math.pow(a, 2) + Math.pow(a, 3)))",
"System.out.print",
"System.out",
"System",
"System.out",
"(short) (a + Math.pow(a, 2) + Math.pow(a, 3))",
"a + Math.pow(a, 2) + Math.pow(a, 3)",
"a",
"Math.pow(a, 2)",
"Math.pow",
"Math",
"a",
"2",
"Math.pow(a, 3)",
"Math.pow",
"Math",
"a",
"3",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tshort a = Short.parseShort(br.readLine());\n\t\tSystem.out.print((short) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tshort a = Short.parseShort(br.readLine());\n\t\tSystem.out.print((short) (a + Math.pow(a, 2) + Math.pow(a, 3)));\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));
short a = Short.parseShort(br.readLine());
System.out.print((short) (a + Math.pow(a, 2) + Math.pow(a, 3)));
}
}
|
[
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,
2,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
47,
11
],
[
47,
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
],
[
26,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
27,
31
],
[
26,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
32,
36
],
[
26,
37
],
[
14,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
12,
44
],
[
44,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
]
]
| [
"import java.io.*;\nimport java.lang.*;\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 double a = sc.nextDouble();\n double total = Math.pow(a, 2) + Math.pow(a, 3) + a;\n System.out.println((int)(total));\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.lang.*;",
"lang.*",
"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 double a = sc.nextDouble();\n double total = Math.pow(a, 2) + Math.pow(a, 3) + a;\n System.out.println((int)(total));\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double total = Math.pow(a, 2) + Math.pow(a, 3) + a;\n System.out.println((int)(total));\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double total = Math.pow(a, 2) + Math.pow(a, 3) + a;\n System.out.println((int)(total));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"double a = sc.nextDouble();",
"a",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double total = Math.pow(a, 2) + Math.pow(a, 3) + a;",
"total",
"Math.pow(a, 2) + Math.pow(a, 3) + a",
"Math.pow(a, 2) + Math.pow(a, 3) + a",
"Math.pow(a, 2)",
"Math.pow",
"Math",
"a",
"2",
"Math.pow(a, 3)",
"Math.pow",
"Math",
"a",
"3",
"a",
"System.out.println((int)(total))",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)(total)",
"String[] args",
"args",
"public class Main\n{\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double total = Math.pow(a, 2) + Math.pow(a, 3) + a;\n System.out.println((int)(total));\n }\n}",
"public class Main\n{\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double total = Math.pow(a, 2) + Math.pow(a, 3) + a;\n System.out.println((int)(total));\n }\n}",
"Main"
]
| import java.io.*;
import java.lang.*;
import java.util.*;
public class Main
{
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
double a = sc.nextDouble();
double total = Math.pow(a, 2) + Math.pow(a, 3) + a;
System.out.println((int)(total));
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
17,
41,
13,
4,
18,
13,
13,
17,
41,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
19,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
26,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
6,
44
],
[
44,
45
]
]
| [
"import java.util.*;\n \nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double a = sc.nextInt();\n int a2 = (int)Math.pow(a, 2);\n int a3 = (int)Math.pow(a, 3);\n int ans = (int)(a+a2+a3);\n System.out.println(ans);\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 double a = sc.nextInt();\n int a2 = (int)Math.pow(a, 2);\n int a3 = (int)Math.pow(a, 3);\n int ans = (int)(a+a2+a3);\n System.out.println(ans);\n \n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double a = sc.nextInt();\n int a2 = (int)Math.pow(a, 2);\n int a3 = (int)Math.pow(a, 3);\n int ans = (int)(a+a2+a3);\n System.out.println(ans);\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n double a = sc.nextInt();\n int a2 = (int)Math.pow(a, 2);\n int a3 = (int)Math.pow(a, 3);\n int ans = (int)(a+a2+a3);\n System.out.println(ans);\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"double a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a2 = (int)Math.pow(a, 2);",
"a2",
"(int)Math.pow(a, 2)",
"Math.pow",
"Math",
"a",
"2",
"int a3 = (int)Math.pow(a, 3);",
"a3",
"(int)Math.pow(a, 3)",
"Math.pow",
"Math",
"a",
"3",
"int ans = (int)(a+a2+a3);",
"ans",
"(int)(a+a2+a3)",
"a+a2+a3",
"a",
"a2",
"a3",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args"
]
| import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
double a = sc.nextInt();
int a2 = (int)Math.pow(a, 2);
int a3 = (int)Math.pow(a, 3);
int ans = (int)(a+a2+a3);
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
17,
12,
13,
30,
4,
18,
13,
2,
13,
17,
4,
18,
13,
29,
4,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
4,
18,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
12,
13,
30,
41,
13,
4,
18,
17,
41,
13,
20,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
13,
17,
17,
4,
18,
13,
17,
30,
4,
18,
13,
18,
13,
2,
2,
13,
17,
17,
0,
13,
2,
13,
17,
29,
4,
18,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
17,
28,
13,
4,
18,
13,
30,
30,
41,
13,
2,
2,
13,
17,
17,
0,
13,
2,
2,
13,
17,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
0,
13,
8,
4,
18,
13,
20,
20,
0,
13,
20,
4,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
13,
2,
2,
13,
13,
17,
23,
13,
12,
13,
30,
42,
2,
13,
17,
30,
41,
13,
13,
0,
13,
2,
13,
13,
0,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
13,
0,
13,
13,
0,
13,
17,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
13,
13,
13,
0,
13,
2,
2,
13,
13,
13,
0,
13,
17,
29,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
13,
0,
13,
13,
0,
13,
17,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
13,
13,
13,
0,
13,
2,
2,
13,
13,
13,
0,
13,
17,
29,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
14,
40,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
12,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
439,
11
],
[
439,
12
],
[
12,
13
],
[
439,
14
],
[
14,
15
],
[
439,
16
],
[
16,
17
],
[
16,
18
],
[
439,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
25,
27
],
[
21,
28
],
[
28,
29
],
[
29,
30
],
[
21,
31
],
[
31,
32
],
[
32,
33
],
[
19,
34
],
[
34,
35
],
[
439,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
38,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
47,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
53,
53
],
[
53,
54
],
[
53,
55
],
[
53,
56
],
[
439,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
59,
65
],
[
65,
66
],
[
65,
67
],
[
59,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
79,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
73,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
91,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
104,
106
],
[
59,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
57,
113
],
[
113,
114
],
[
439,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
121,
126
],
[
127,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
127,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
117,
142
],
[
142,
143
],
[
115,
144
],
[
144,
145
],
[
439,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
148,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
156,
160
],
[
156,
161
],
[
148,
162
],
[
162,
163
],
[
162,
164
],
[
148,
165
],
[
165,
166
],
[
148,
167
],
[
167,
168
],
[
168,
169
],
[
148,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
148,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
146,
182
],
[
182,
183
],
[
439,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
197,
199
],
[
191,
200
],
[
200,
201
],
[
200,
202
],
[
186,
203
],
[
203,
204
],
[
184,
205
],
[
205,
206
],
[
184,
207
],
[
207,
208
],
[
439,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
439,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
439,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
439,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
439,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
243,
244
],
[
244,
245
],
[
244,
246
],
[
243,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
248,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
247,
258
],
[
258,
259
],
[
258,
260
],
[
247,
261
],
[
261,
262
],
[
261,
263
],
[
239,
264
],
[
264,
265
],
[
237,
266
],
[
266,
267
],
[
237,
268
],
[
268,
269
],
[
439,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
272,
276
],
[
276,
277
],
[
277,
278
],
[
277,
279
],
[
276,
280
],
[
280,
281
],
[
281,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
282,
286
],
[
281,
287
],
[
287,
288
],
[
288,
289
],
[
288,
290
],
[
290,
291
],
[
291,
292
],
[
291,
293
],
[
290,
294
],
[
280,
295
],
[
295,
296
],
[
295,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
297,
301
],
[
280,
302
],
[
302,
303
],
[
302,
304
],
[
272,
305
],
[
305,
306
],
[
270,
307
],
[
307,
308
],
[
270,
309
],
[
309,
310
],
[
270,
311
],
[
311,
312
],
[
439,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
316,
317
],
[
316,
318
],
[
315,
319
],
[
319,
320
],
[
320,
321
],
[
320,
322
],
[
319,
323
],
[
323,
324
],
[
324,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
325,
329
],
[
324,
330
],
[
330,
331
],
[
331,
332
],
[
331,
333
],
[
323,
334
],
[
334,
335
],
[
334,
336
],
[
323,
337
],
[
337,
338
],
[
337,
339
],
[
315,
340
],
[
340,
341
],
[
313,
342
],
[
342,
343
],
[
313,
344
],
[
344,
345
],
[
439,
346
],
[
346,
347
],
[
346,
348
],
[
348,
349
],
[
349,
350
],
[
349,
351
],
[
348,
352
],
[
352,
353
],
[
353,
354
],
[
353,
355
],
[
352,
356
],
[
356,
357
],
[
357,
358
],
[
358,
359
],
[
359,
360
],
[
359,
361
],
[
358,
362
],
[
357,
363
],
[
363,
364
],
[
364,
365
],
[
364,
366
],
[
366,
367
],
[
367,
368
],
[
367,
369
],
[
366,
370
],
[
356,
371
],
[
371,
372
],
[
371,
373
],
[
373,
374
],
[
374,
375
],
[
374,
376
],
[
373,
377
],
[
356,
378
],
[
378,
379
],
[
378,
380
],
[
348,
381
],
[
381,
382
],
[
346,
383
],
[
383,
384
],
[
346,
385
],
[
385,
386
],
[
346,
387
],
[
387,
388
],
[
439,
389
],
[
389,
390
],
[
389,
391
],
[
391,
392
],
[
392,
393
],
[
393,
394
],
[
394,
395
],
[
395,
396
],
[
392,
397
],
[
397,
398
],
[
398,
399
],
[
397,
400
],
[
400,
401
],
[
401,
402
],
[
400,
403
],
[
389,
404
],
[
404,
405
],
[
439,
406
],
[
406,
407
],
[
406,
408
],
[
408,
409
],
[
409,
410
],
[
410,
411
],
[
411,
412
],
[
411,
413
],
[
409,
414
],
[
414,
415
],
[
414,
416
],
[
409,
417
],
[
417,
418
],
[
418,
419
],
[
409,
420
],
[
421,
421
],
[
421,
422
],
[
422,
423
],
[
423,
424
],
[
422,
425
],
[
406,
426
],
[
426,
427
],
[
406,
428
],
[
428,
429
],
[
406,
430
],
[
430,
431
],
[
439,
432
],
[
432,
433
],
[
432,
434
],
[
434,
435
],
[
434,
436
],
[
436,
437
],
[
0,
438
],
[
438,
439
],
[
438,
440
]
]
| [
"import java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.Scanner;\n\n// Solution\npublic class Main {\n private static Scanner in;\n private static PrintWriter out;\n private static final String INPUT = \"\"; // input file name\n\n /**\n * Interactive get next command\n */\n static int get(int pos) {\n out.println(pos + 1);\n out.flush();\n return ni();\n }\n\n static void solve() {\n int a = ni();\n\n out.println(a + a * a + a * a * a);\n }\n\n static String convert(int x) {\n char[] z = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toCharArray();\n\n StringBuilder sb = new StringBuilder();\n\n while (x > 0) {\n if (x % 26 == 0) {\n x = x / 26 - 1;\n sb.append('Z');\n } else {\n sb.append(z[x % 26 - 1]);\n x = x / 26;\n }\n }\n\n return sb.reverse().toString();\n }\n\n static int sconvert(String s) {\n int ans = 0;\n\n for (char c: s.toCharArray()) {\n int t = c - 'A' + 1;\n ans = ans * 26 + t;\n }\n\n return ans;\n }\n\n public static void main(String[] args) throws Exception {\n long S = System.currentTimeMillis();\n in = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(INPUT);\n out = new PrintWriter(System.out);\n\n solve();\n out.flush();\n long G = System.currentTimeMillis();\n tr(G - S + \"ms\");\n }\n\n private static int gcd(int a, int b) {\n while (b != 0) {\n int t = b;\n b = a % b;\n a = t;\n }\n\n return a;\n }\n\n private static int ni() {\n return in.nextInt();\n }\n\n private static String nt() {\n return in.next();\n }\n\n private static String ns() {\n return in.nextLine();\n }\n\n private static long nl() {\n return in.nextLong();\n }\n\n // Math Utils\n private static int pi(int num, int pow) {\n int result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n result *= num;\n }\n\n num *= num;\n pow /= 2;\n }\n\n return result;\n }\n\n private static int pim(int num, int pow, int mod) {\n int result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }\n\n num = (num * num) % mod;\n pow /= 2;\n }\n\n return result;\n }\n\n private static long pl(long num, long pow) {\n long result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n result *= num;\n }\n\n num *= num;\n pow /= 2;\n }\n\n return result;\n }\n\n private static long plm(long num, long pow, long mod) {\n long result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }\n\n num = (num * num) % mod;\n pow /= 2;\n }\n\n return result;\n }\n\n static void tr(Object... o) {\n if (!INPUT.isEmpty())\n out.println(Arrays.deepToString(o));\n }\n\n private static void fo(int begin, int end, Callback call) {\n for (int i = begin; i < end; i++) {\n call.call(i);\n }\n }\n\n @FunctionalInterface\n private interface Callback {\n void call(int index);\n }\n}",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n private static Scanner in;\n private static PrintWriter out;\n private static final String INPUT = \"\"; // input file name\n\n /**\n * Interactive get next command\n */\n static int get(int pos) {\n out.println(pos + 1);\n out.flush();\n return ni();\n }\n\n static void solve() {\n int a = ni();\n\n out.println(a + a * a + a * a * a);\n }\n\n static String convert(int x) {\n char[] z = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toCharArray();\n\n StringBuilder sb = new StringBuilder();\n\n while (x > 0) {\n if (x % 26 == 0) {\n x = x / 26 - 1;\n sb.append('Z');\n } else {\n sb.append(z[x % 26 - 1]);\n x = x / 26;\n }\n }\n\n return sb.reverse().toString();\n }\n\n static int sconvert(String s) {\n int ans = 0;\n\n for (char c: s.toCharArray()) {\n int t = c - 'A' + 1;\n ans = ans * 26 + t;\n }\n\n return ans;\n }\n\n public static void main(String[] args) throws Exception {\n long S = System.currentTimeMillis();\n in = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(INPUT);\n out = new PrintWriter(System.out);\n\n solve();\n out.flush();\n long G = System.currentTimeMillis();\n tr(G - S + \"ms\");\n }\n\n private static int gcd(int a, int b) {\n while (b != 0) {\n int t = b;\n b = a % b;\n a = t;\n }\n\n return a;\n }\n\n private static int ni() {\n return in.nextInt();\n }\n\n private static String nt() {\n return in.next();\n }\n\n private static String ns() {\n return in.nextLine();\n }\n\n private static long nl() {\n return in.nextLong();\n }\n\n // Math Utils\n private static int pi(int num, int pow) {\n int result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n result *= num;\n }\n\n num *= num;\n pow /= 2;\n }\n\n return result;\n }\n\n private static int pim(int num, int pow, int mod) {\n int result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }\n\n num = (num * num) % mod;\n pow /= 2;\n }\n\n return result;\n }\n\n private static long pl(long num, long pow) {\n long result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n result *= num;\n }\n\n num *= num;\n pow /= 2;\n }\n\n return result;\n }\n\n private static long plm(long num, long pow, long mod) {\n long result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }\n\n num = (num * num) % mod;\n pow /= 2;\n }\n\n return result;\n }\n\n static void tr(Object... o) {\n if (!INPUT.isEmpty())\n out.println(Arrays.deepToString(o));\n }\n\n private static void fo(int begin, int end, Callback call) {\n for (int i = begin; i < end; i++) {\n call.call(i);\n }\n }\n\n @FunctionalInterface\n private interface Callback {\n void call(int index);\n }\n}",
"Main",
"private static Scanner in;",
"in",
"private static PrintWriter out;",
"out",
"private static final String INPUT = \"\"; // input file name",
"INPUT",
"\"\"",
"/**\n * Interactive get next command\n */\n static int get(int pos) {\n out.println(pos + 1);\n out.flush();\n return ni();\n }",
"get",
"{\n out.println(pos + 1);\n out.flush();\n return ni();\n }",
"out.println(pos + 1)",
"out.println",
"out",
"pos + 1",
"pos",
"1",
"out.flush()",
"out.flush",
"out",
"return ni();",
"ni()",
"ni",
"int pos",
"pos",
"static void solve() {\n int a = ni();\n\n out.println(a + a * a + a * a * a);\n }",
"solve",
"{\n int a = ni();\n\n out.println(a + a * a + a * a * a);\n }",
"int a = ni();",
"a",
"ni()",
"ni",
"out.println(a + a * a + a * a * a)",
"out.println",
"out",
"a + a * a + a * a * a",
"a + a * a + a * a * a",
"a",
"a * a",
"a",
"a",
"a * a * a",
"a * a * a",
"a",
"a",
"a",
"static String convert(int x) {\n char[] z = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toCharArray();\n\n StringBuilder sb = new StringBuilder();\n\n while (x > 0) {\n if (x % 26 == 0) {\n x = x / 26 - 1;\n sb.append('Z');\n } else {\n sb.append(z[x % 26 - 1]);\n x = x / 26;\n }\n }\n\n return sb.reverse().toString();\n }",
"convert",
"{\n char[] z = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toCharArray();\n\n StringBuilder sb = new StringBuilder();\n\n while (x > 0) {\n if (x % 26 == 0) {\n x = x / 26 - 1;\n sb.append('Z');\n } else {\n sb.append(z[x % 26 - 1]);\n x = x / 26;\n }\n }\n\n return sb.reverse().toString();\n }",
"char[] z = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toCharArray();",
"z",
"\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toCharArray()",
"\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toCharArray",
"\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"while (x > 0) {\n if (x % 26 == 0) {\n x = x / 26 - 1;\n sb.append('Z');\n } else {\n sb.append(z[x % 26 - 1]);\n x = x / 26;\n }\n }",
"x > 0",
"x",
"0",
"{\n if (x % 26 == 0) {\n x = x / 26 - 1;\n sb.append('Z');\n } else {\n sb.append(z[x % 26 - 1]);\n x = x / 26;\n }\n }",
"if (x % 26 == 0) {\n x = x / 26 - 1;\n sb.append('Z');\n } else {\n sb.append(z[x % 26 - 1]);\n x = x / 26;\n }",
"x % 26 == 0",
"x % 26",
"x",
"26",
"0",
"{\n x = x / 26 - 1;\n sb.append('Z');\n }",
"x = x / 26 - 1",
"x",
"x / 26 - 1",
"x / 26",
"x",
"26",
"1",
"sb.append('Z')",
"sb.append",
"sb",
"'Z'",
"{\n sb.append(z[x % 26 - 1]);\n x = x / 26;\n }",
"sb.append(z[x % 26 - 1])",
"sb.append",
"sb",
"z[x % 26 - 1]",
"z",
"x % 26 - 1",
"x % 26",
"x",
"26",
"1",
"x = x / 26",
"x",
"x / 26",
"x",
"26",
"return sb.reverse().toString();",
"sb.reverse().toString()",
"sb.reverse().toString",
"sb.reverse()",
"sb.reverse",
"sb",
"int x",
"x",
"static int sconvert(String s) {\n int ans = 0;\n\n for (char c: s.toCharArray()) {\n int t = c - 'A' + 1;\n ans = ans * 26 + t;\n }\n\n return ans;\n }",
"sconvert",
"{\n int ans = 0;\n\n for (char c: s.toCharArray()) {\n int t = c - 'A' + 1;\n ans = ans * 26 + t;\n }\n\n return ans;\n }",
"int ans = 0;",
"ans",
"0",
"for (char c: s.toCharArray()) {\n int t = c - 'A' + 1;\n ans = ans * 26 + t;\n }",
"char c",
"s.toCharArray()",
"s.toCharArray",
"s",
"{\n int t = c - 'A' + 1;\n ans = ans * 26 + t;\n }",
"{\n int t = c - 'A' + 1;\n ans = ans * 26 + t;\n }",
"int t = c - 'A' + 1;",
"t",
"c - 'A' + 1",
"c - 'A'",
"c",
"'A'",
"1",
"ans = ans * 26 + t",
"ans",
"ans * 26 + t",
"ans * 26",
"ans",
"26",
"t",
"return ans;",
"ans",
"String s",
"s",
"public static void main(String[] args) throws Exception {\n long S = System.currentTimeMillis();\n in = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(INPUT);\n out = new PrintWriter(System.out);\n\n solve();\n out.flush();\n long G = System.currentTimeMillis();\n tr(G - S + \"ms\");\n }",
"main",
"{\n long S = System.currentTimeMillis();\n in = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(INPUT);\n out = new PrintWriter(System.out);\n\n solve();\n out.flush();\n long G = System.currentTimeMillis();\n tr(G - S + \"ms\");\n }",
"long S = System.currentTimeMillis();",
"S",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"in = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(INPUT)",
"in",
"INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(INPUT)",
"INPUT.isEmpty()",
"INPUT.isEmpty",
"INPUT",
"new Scanner(System.in)",
"new Scanner(INPUT)",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"solve()",
"solve",
"out.flush()",
"out.flush",
"out",
"long G = System.currentTimeMillis();",
"G",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"tr(G - S + \"ms\")",
"tr",
"G - S + \"ms\"",
"G - S",
"G",
"S",
"\"ms\"",
"String[] args",
"args",
"private static int gcd(int a, int b) {\n while (b != 0) {\n int t = b;\n b = a % b;\n a = t;\n }\n\n return a;\n }",
"gcd",
"{\n while (b != 0) {\n int t = b;\n b = a % b;\n a = t;\n }\n\n return a;\n }",
"while (b != 0) {\n int t = b;\n b = a % b;\n a = t;\n }",
"b != 0",
"b",
"0",
"{\n int t = b;\n b = a % b;\n a = t;\n }",
"int t = b;",
"t",
"b",
"b = a % b",
"b",
"a % b",
"a",
"b",
"a = t",
"a",
"t",
"return a;",
"a",
"int a",
"a",
"int b",
"b",
"private static int ni() {\n return in.nextInt();\n }",
"ni",
"{\n return in.nextInt();\n }",
"return in.nextInt();",
"in.nextInt()",
"in.nextInt",
"in",
"private static String nt() {\n return in.next();\n }",
"nt",
"{\n return in.next();\n }",
"return in.next();",
"in.next()",
"in.next",
"in",
"private static String ns() {\n return in.nextLine();\n }",
"ns",
"{\n return in.nextLine();\n }",
"return in.nextLine();",
"in.nextLine()",
"in.nextLine",
"in",
"private static long nl() {\n return in.nextLong();\n }",
"nl",
"{\n return in.nextLong();\n }",
"return in.nextLong();",
"in.nextLong()",
"in.nextLong",
"in",
"// Math Utils\n private static int pi(int num, int pow) {\n int result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n result *= num;\n }\n\n num *= num;\n pow /= 2;\n }\n\n return result;\n }",
"pi",
"{\n int result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n result *= num;\n }\n\n num *= num;\n pow /= 2;\n }\n\n return result;\n }",
"int result = 1;",
"result",
"1",
"while (pow > 0) {\n if (pow % 2 == 1) {\n result *= num;\n }\n\n num *= num;\n pow /= 2;\n }",
"pow > 0",
"pow",
"0",
"{\n if (pow % 2 == 1) {\n result *= num;\n }\n\n num *= num;\n pow /= 2;\n }",
"if (pow % 2 == 1) {\n result *= num;\n }",
"pow % 2 == 1",
"pow % 2",
"pow",
"2",
"1",
"{\n result *= num;\n }",
"result *= num",
"result",
"num",
"num *= num",
"num",
"num",
"pow /= 2",
"pow",
"2",
"return result;",
"result",
"int num",
"num",
"int pow",
"pow",
"private static int pim(int num, int pow, int mod) {\n int result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }\n\n num = (num * num) % mod;\n pow /= 2;\n }\n\n return result;\n }",
"pim",
"{\n int result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }\n\n num = (num * num) % mod;\n pow /= 2;\n }\n\n return result;\n }",
"int result = 1;",
"result",
"1",
"while (pow > 0) {\n if (pow % 2 == 1) {\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }\n\n num = (num * num) % mod;\n pow /= 2;\n }",
"pow > 0",
"pow",
"0",
"{\n if (pow % 2 == 1) {\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }\n\n num = (num * num) % mod;\n pow /= 2;\n }",
"if (pow % 2 == 1) {\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }",
"pow % 2 == 1",
"pow % 2",
"pow",
"2",
"1",
"{\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }",
"result = (result * num) % mod",
"result",
"(result * num) % mod",
"(result * num)",
"result",
"num",
"mod",
"num = (num * num) % mod",
"num",
"(num * num) % mod",
"(num * num)",
"num",
"num",
"mod",
"pow /= 2",
"pow",
"2",
"return result;",
"result",
"int num",
"num",
"int pow",
"pow",
"int mod",
"mod",
"private static long pl(long num, long pow) {\n long result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n result *= num;\n }\n\n num *= num;\n pow /= 2;\n }\n\n return result;\n }",
"pl",
"{\n long result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n result *= num;\n }\n\n num *= num;\n pow /= 2;\n }\n\n return result;\n }",
"long result = 1;",
"result",
"1",
"while (pow > 0) {\n if (pow % 2 == 1) {\n result *= num;\n }\n\n num *= num;\n pow /= 2;\n }",
"pow > 0",
"pow",
"0",
"{\n if (pow % 2 == 1) {\n result *= num;\n }\n\n num *= num;\n pow /= 2;\n }",
"if (pow % 2 == 1) {\n result *= num;\n }",
"pow % 2 == 1",
"pow % 2",
"pow",
"2",
"1",
"{\n result *= num;\n }",
"result *= num",
"result",
"num",
"num *= num",
"num",
"num",
"pow /= 2",
"pow",
"2",
"return result;",
"result",
"long num",
"num",
"long pow",
"pow",
"private static long plm(long num, long pow, long mod) {\n long result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }\n\n num = (num * num) % mod;\n pow /= 2;\n }\n\n return result;\n }",
"plm",
"{\n long result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }\n\n num = (num * num) % mod;\n pow /= 2;\n }\n\n return result;\n }",
"long result = 1;",
"result",
"1",
"while (pow > 0) {\n if (pow % 2 == 1) {\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }\n\n num = (num * num) % mod;\n pow /= 2;\n }",
"pow > 0",
"pow",
"0",
"{\n if (pow % 2 == 1) {\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }\n\n num = (num * num) % mod;\n pow /= 2;\n }",
"if (pow % 2 == 1) {\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }",
"pow % 2 == 1",
"pow % 2",
"pow",
"2",
"1",
"{\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }",
"result = (result * num) % mod",
"result",
"(result * num) % mod",
"(result * num)",
"result",
"num",
"mod",
"num = (num * num) % mod",
"num",
"(num * num) % mod",
"(num * num)",
"num",
"num",
"mod",
"pow /= 2",
"pow",
"2",
"return result;",
"result",
"long num",
"num",
"long pow",
"pow",
"long mod",
"mod",
"static void tr(Object... o) {\n if (!INPUT.isEmpty())\n out.println(Arrays.deepToString(o));\n }",
"tr",
"{\n if (!INPUT.isEmpty())\n out.println(Arrays.deepToString(o));\n }",
"if (!INPUT.isEmpty())\n out.println(Arrays.deepToString(o));",
"!INPUT.isEmpty()",
"INPUT.isEmpty()",
"INPUT.isEmpty",
"INPUT",
"out.println(Arrays.deepToString(o))",
"out.println",
"out",
"Arrays.deepToString(o)",
"Arrays.deepToString",
"Arrays",
"o",
"Object... o",
"o",
"private static void fo(int begin, int end, Callback call) {\n for (int i = begin; i < end; i++) {\n call.call(i);\n }\n }",
"fo",
"{\n for (int i = begin; i < end; i++) {\n call.call(i);\n }\n }",
"for (int i = begin; i < end; i++) {\n call.call(i);\n }",
"int i = begin;",
"int i = begin;",
"i",
"begin",
"i < end",
"i",
"end",
"i++",
"i++",
"i",
"{\n call.call(i);\n }",
"{\n call.call(i);\n }",
"call.call(i)",
"call.call",
"call",
"i",
"int begin",
"begin",
"int end",
"end",
"Callback call",
"call",
"private interface Callback {\n void call(int index);\n }",
"Callback",
"void call(int index);",
"call",
"int index",
"index",
"public class Main {\n private static Scanner in;\n private static PrintWriter out;\n private static final String INPUT = \"\"; // input file name\n\n /**\n * Interactive get next command\n */\n static int get(int pos) {\n out.println(pos + 1);\n out.flush();\n return ni();\n }\n\n static void solve() {\n int a = ni();\n\n out.println(a + a * a + a * a * a);\n }\n\n static String convert(int x) {\n char[] z = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toCharArray();\n\n StringBuilder sb = new StringBuilder();\n\n while (x > 0) {\n if (x % 26 == 0) {\n x = x / 26 - 1;\n sb.append('Z');\n } else {\n sb.append(z[x % 26 - 1]);\n x = x / 26;\n }\n }\n\n return sb.reverse().toString();\n }\n\n static int sconvert(String s) {\n int ans = 0;\n\n for (char c: s.toCharArray()) {\n int t = c - 'A' + 1;\n ans = ans * 26 + t;\n }\n\n return ans;\n }\n\n public static void main(String[] args) throws Exception {\n long S = System.currentTimeMillis();\n in = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(INPUT);\n out = new PrintWriter(System.out);\n\n solve();\n out.flush();\n long G = System.currentTimeMillis();\n tr(G - S + \"ms\");\n }\n\n private static int gcd(int a, int b) {\n while (b != 0) {\n int t = b;\n b = a % b;\n a = t;\n }\n\n return a;\n }\n\n private static int ni() {\n return in.nextInt();\n }\n\n private static String nt() {\n return in.next();\n }\n\n private static String ns() {\n return in.nextLine();\n }\n\n private static long nl() {\n return in.nextLong();\n }\n\n // Math Utils\n private static int pi(int num, int pow) {\n int result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n result *= num;\n }\n\n num *= num;\n pow /= 2;\n }\n\n return result;\n }\n\n private static int pim(int num, int pow, int mod) {\n int result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }\n\n num = (num * num) % mod;\n pow /= 2;\n }\n\n return result;\n }\n\n private static long pl(long num, long pow) {\n long result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n result *= num;\n }\n\n num *= num;\n pow /= 2;\n }\n\n return result;\n }\n\n private static long plm(long num, long pow, long mod) {\n long result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }\n\n num = (num * num) % mod;\n pow /= 2;\n }\n\n return result;\n }\n\n static void tr(Object... o) {\n if (!INPUT.isEmpty())\n out.println(Arrays.deepToString(o));\n }\n\n private static void fo(int begin, int end, Callback call) {\n for (int i = begin; i < end; i++) {\n call.call(i);\n }\n }\n\n @FunctionalInterface\n private interface Callback {\n void call(int index);\n }\n}",
"public class Main {\n private static Scanner in;\n private static PrintWriter out;\n private static final String INPUT = \"\"; // input file name\n\n /**\n * Interactive get next command\n */\n static int get(int pos) {\n out.println(pos + 1);\n out.flush();\n return ni();\n }\n\n static void solve() {\n int a = ni();\n\n out.println(a + a * a + a * a * a);\n }\n\n static String convert(int x) {\n char[] z = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toCharArray();\n\n StringBuilder sb = new StringBuilder();\n\n while (x > 0) {\n if (x % 26 == 0) {\n x = x / 26 - 1;\n sb.append('Z');\n } else {\n sb.append(z[x % 26 - 1]);\n x = x / 26;\n }\n }\n\n return sb.reverse().toString();\n }\n\n static int sconvert(String s) {\n int ans = 0;\n\n for (char c: s.toCharArray()) {\n int t = c - 'A' + 1;\n ans = ans * 26 + t;\n }\n\n return ans;\n }\n\n public static void main(String[] args) throws Exception {\n long S = System.currentTimeMillis();\n in = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(INPUT);\n out = new PrintWriter(System.out);\n\n solve();\n out.flush();\n long G = System.currentTimeMillis();\n tr(G - S + \"ms\");\n }\n\n private static int gcd(int a, int b) {\n while (b != 0) {\n int t = b;\n b = a % b;\n a = t;\n }\n\n return a;\n }\n\n private static int ni() {\n return in.nextInt();\n }\n\n private static String nt() {\n return in.next();\n }\n\n private static String ns() {\n return in.nextLine();\n }\n\n private static long nl() {\n return in.nextLong();\n }\n\n // Math Utils\n private static int pi(int num, int pow) {\n int result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n result *= num;\n }\n\n num *= num;\n pow /= 2;\n }\n\n return result;\n }\n\n private static int pim(int num, int pow, int mod) {\n int result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }\n\n num = (num * num) % mod;\n pow /= 2;\n }\n\n return result;\n }\n\n private static long pl(long num, long pow) {\n long result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n result *= num;\n }\n\n num *= num;\n pow /= 2;\n }\n\n return result;\n }\n\n private static long plm(long num, long pow, long mod) {\n long result = 1;\n\n while (pow > 0) {\n if (pow % 2 == 1) {\n // keep collecting `odd` num in result\n result = (result * num) % mod;\n }\n\n num = (num * num) % mod;\n pow /= 2;\n }\n\n return result;\n }\n\n static void tr(Object... o) {\n if (!INPUT.isEmpty())\n out.println(Arrays.deepToString(o));\n }\n\n private static void fo(int begin, int end, Callback call) {\n for (int i = begin; i < end; i++) {\n call.call(i);\n }\n }\n\n @FunctionalInterface\n private interface Callback {\n void call(int index);\n }\n}",
"Main"
]
| import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;
// Solution
public class Main {
private static Scanner in;
private static PrintWriter out;
private static final String INPUT = ""; // input file name
/**
* Interactive get next command
*/
static int get(int pos) {
out.println(pos + 1);
out.flush();
return ni();
}
static void solve() {
int a = ni();
out.println(a + a * a + a * a * a);
}
static String convert(int x) {
char[] z = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray();
StringBuilder sb = new StringBuilder();
while (x > 0) {
if (x % 26 == 0) {
x = x / 26 - 1;
sb.append('Z');
} else {
sb.append(z[x % 26 - 1]);
x = x / 26;
}
}
return sb.reverse().toString();
}
static int sconvert(String s) {
int ans = 0;
for (char c: s.toCharArray()) {
int t = c - 'A' + 1;
ans = ans * 26 + t;
}
return ans;
}
public static void main(String[] args) throws Exception {
long S = System.currentTimeMillis();
in = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(INPUT);
out = new PrintWriter(System.out);
solve();
out.flush();
long G = System.currentTimeMillis();
tr(G - S + "ms");
}
private static int gcd(int a, int b) {
while (b != 0) {
int t = b;
b = a % b;
a = t;
}
return a;
}
private static int ni() {
return in.nextInt();
}
private static String nt() {
return in.next();
}
private static String ns() {
return in.nextLine();
}
private static long nl() {
return in.nextLong();
}
// Math Utils
private static int pi(int num, int pow) {
int result = 1;
while (pow > 0) {
if (pow % 2 == 1) {
result *= num;
}
num *= num;
pow /= 2;
}
return result;
}
private static int pim(int num, int pow, int mod) {
int result = 1;
while (pow > 0) {
if (pow % 2 == 1) {
// keep collecting `odd` num in result
result = (result * num) % mod;
}
num = (num * num) % mod;
pow /= 2;
}
return result;
}
private static long pl(long num, long pow) {
long result = 1;
while (pow > 0) {
if (pow % 2 == 1) {
result *= num;
}
num *= num;
pow /= 2;
}
return result;
}
private static long plm(long num, long pow, long mod) {
long result = 1;
while (pow > 0) {
if (pow % 2 == 1) {
// keep collecting `odd` num in result
result = (result * num) % mod;
}
num = (num * num) % mod;
pow /= 2;
}
return result;
}
static void tr(Object... o) {
if (!INPUT.isEmpty())
out.println(Arrays.deepToString(o));
}
private static void fo(int begin, int end, Callback call) {
for (int i = begin; i < end; i++) {
call.call(i);
}
}
@FunctionalInterface
private interface Callback {
void call(int index);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
2,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
30,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
4,
18,
13,
13,
29,
4,
13,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
6,
13,
12,
13,
23,
13,
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
],
[
278,
23
],
[
278,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
26,
37
],
[
37,
38
],
[
37,
39
],
[
26,
40
],
[
40,
41
],
[
40,
42
],
[
26,
43
],
[
43,
44
],
[
43,
45
],
[
26,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
46,
51
],
[
26,
52
],
[
52,
53
],
[
53,
54
],
[
24,
55
],
[
55,
56
],
[
278,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
77,
81
],
[
70,
82
],
[
59,
83
],
[
83,
84
],
[
59,
85
],
[
85,
86
],
[
59,
87
],
[
87,
88
],
[
278,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
89,
93
],
[
93,
94
],
[
93,
95
],
[
89,
97
],
[
97,
98
],
[
89,
99
],
[
99,
100
],
[
89,
101
],
[
101,
102
],
[
89,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
103,
111
],
[
111,
112
],
[
89,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
116,
121
],
[
121,
122
],
[
122,
123
],
[
115,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
132,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
128,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
115,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
89,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
160,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
160,
174
],
[
174,
175
],
[
174,
176
],
[
160,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
181,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
160,
190
],
[
190,
191
],
[
190,
192
],
[
160,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
193,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
204,
205
],
[
204,
206
],
[
199,
207
],
[
207,
208
],
[
208,
209
],
[
198,
210
],
[
210,
211
],
[
210,
212
],
[
198,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
215,
217
],
[
198,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
160,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
89,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
235,
238
],
[
228,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
226,
243
],
[
243,
244
],
[
89,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
248,
249
],
[
252,
250
],
[
262,
251
],
[
259,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
252,
256
],
[
256,
257
],
[
256,
258
],
[
259,
259
],
[
259,
260
],
[
259,
261
],
[
262,
262
],
[
262,
263
],
[
262,
264
],
[
252,
265
],
[
265,
266
],
[
265,
267
],
[
267,
268
],
[
245,
269
],
[
269,
270
],
[
89,
271
],
[
271,
272
],
[
271,
273
],
[
273,
274
],
[
273,
275
],
[
275,
276
],
[
0,
277
],
[
277,
278
],
[
277,
279
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ACalc solver = new ACalc();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ACalc {\n public void solve(int testNumber, FastReader s, PrintWriter out) {\n long a = s.nextLong();\n out.println((int) (Math.pow(a, 2) + Math.pow(a, 3) + a));\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ACalc solver = new ACalc();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ACalc {\n public void solve(int testNumber, FastReader s, PrintWriter out) {\n long a = s.nextLong();\n out.println((int) (Math.pow(a, 2) + Math.pow(a, 3) + a));\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ACalc solver = new ACalc();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ACalc solver = new ACalc();\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",
"FastReader in = new FastReader(inputStream);",
"in",
"new FastReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"ACalc solver = new ACalc();",
"solver",
"new ACalc()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class ACalc {\n public void solve(int testNumber, FastReader s, PrintWriter out) {\n long a = s.nextLong();\n out.println((int) (Math.pow(a, 2) + Math.pow(a, 3) + a));\n }\n\n }",
"ACalc",
"public void solve(int testNumber, FastReader s, PrintWriter out) {\n long a = s.nextLong();\n out.println((int) (Math.pow(a, 2) + Math.pow(a, 3) + a));\n }",
"solve",
"{\n long a = s.nextLong();\n out.println((int) (Math.pow(a, 2) + Math.pow(a, 3) + a));\n }",
"long a = s.nextLong();",
"a",
"s.nextLong()",
"s.nextLong",
"s",
"out.println((int) (Math.pow(a, 2) + Math.pow(a, 3) + a))",
"out.println",
"out",
"(int) (Math.pow(a, 2) + Math.pow(a, 3) + a)",
"Math.pow(a, 2) + Math.pow(a, 3) + a",
"Math.pow(a, 2)",
"Math.pow",
"Math",
"a",
"2",
"Math.pow(a, 3)",
"Math.pow",
"Math",
"a",
"3",
"a",
"int testNumber",
"testNumber",
"FastReader s",
"s",
"PrintWriter out",
"out",
"static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }",
"FastReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"private FastReader.SpaceCharFilter filter;",
"filter",
"public FastReader(InputStream stream) {\n this.stream = stream;\n }",
"FastReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"if (numChars == -1) {\n throw new InputMismatchException();\n }",
"numChars == -1",
"numChars",
"-1",
"1",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0) {\n return -1;\n }",
"numChars <= 0",
"numChars",
"0",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextLong",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"long res = 0;",
"res",
"0",
"do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }",
"if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"isSpaceChar",
"{\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"if (filter != null) {\n return filter.isSpaceChar(c);\n }",
"filter != null",
"filter",
"null",
"{\n return filter.isSpaceChar(c);\n }",
"return filter.isSpaceChar(c);",
"filter.isSpaceChar(c)",
"filter.isSpaceChar",
"filter",
"c",
"return isWhitespace(c);",
"isWhitespace(c)",
"isWhitespace",
"c",
"int c",
"c",
"public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isWhitespace",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }",
"SpaceCharFilter",
"public boolean isSpaceChar(int ch);",
"isSpaceChar",
"int ch",
"ch",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ACalc solver = new ACalc();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ACalc {\n public void solve(int testNumber, FastReader s, PrintWriter out) {\n long a = s.nextLong();\n out.println((int) (Math.pow(a, 2) + Math.pow(a, 3) + a));\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ACalc solver = new ACalc();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ACalc {\n public void solve(int testNumber, FastReader s, PrintWriter out) {\n long a = s.nextLong();\n out.println((int) (Math.pow(a, 2) + Math.pow(a, 3) + a));\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
FastReader in = new FastReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
ACalc solver = new ACalc();
solver.solve(1, in, out);
out.close();
}
static class ACalc {
public void solve(int testNumber, FastReader s, PrintWriter out) {
long a = s.nextLong();
out.println((int) (Math.pow(a, 2) + Math.pow(a, 3) + a));
}
}
static class FastReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private FastReader.SpaceCharFilter filter;
public FastReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1) {
throw new InputMismatchException();
}
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0) {
return -1;
}
}
return buf[curChar++];
}
public long nextLong() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
long res = 0;
do {
if (c < '0' || c > '9') {
throw new InputMismatchException();
}
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public boolean isSpaceChar(int c) {
if (filter != null) {
return filter.isSpaceChar(c);
}
return isWhitespace(c);
}
public static boolean isWhitespace(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public interface SpaceCharFilter {
public boolean isSpaceChar(int ch);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
13,
4,
18,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
12,
13,
30,
0,
13,
18,
13,
13,
0,
13,
20,
4,
13,
4,
18,
13,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
30,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
29,
40,
2,
2,
13,
17,
2,
13,
17,
23,
13,
12,
13,
30,
41,
13,
42,
2,
2,
0,
13,
4,
13,
40,
17,
4,
13,
13,
29,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
41,
13,
4,
13,
41,
13,
17,
42,
2,
2,
13,
13,
40,
4,
13,
13,
30,
0,
18,
13,
40,
13,
13,
0,
13,
4,
13,
29,
8,
2,
13,
13,
13,
4,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
41,
13,
17,
42,
2,
2,
0,
13,
4,
13,
40,
17,
40,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
42,
17,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
2,
13,
17,
30,
29,
8,
13,
40,
13,
13,
0,
13,
4,
13,
12,
13,
30,
41,
13,
17,
41,
13,
41,
13,
17,
42,
2,
2,
0,
13,
4,
13,
40,
17,
40,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
42,
17,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
2,
13,
17,
30,
29,
8,
13,
40,
13,
13,
0,
13,
4,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
7,
11
],
[
11,
12
],
[
7,
13
],
[
13,
14
],
[
7,
15
],
[
15,
16
],
[
15,
17
],
[
7,
18
],
[
18,
19
],
[
18,
20
],
[
7,
22
],
[
22,
23
],
[
22,
24
],
[
7,
25
],
[
25,
26
],
[
25,
27
],
[
7,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
48,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
54,
54
],
[
54,
55
],
[
54,
56
],
[
54,
57
],
[
7,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
60,
66
],
[
66,
67
],
[
66,
68
],
[
60,
69
],
[
69,
70
],
[
60,
71
],
[
71,
72
],
[
72,
73
],
[
7,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
74,
80
],
[
80,
81
],
[
7,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
85,
90
],
[
90,
91
],
[
91,
92
],
[
84,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
101,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
97,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
84,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
7,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
136,
138
],
[
127,
139
],
[
139,
140
],
[
7,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
148,
153
],
[
153,
154
],
[
147,
155
],
[
155,
156
],
[
155,
157
],
[
143,
158
],
[
158,
159
],
[
7,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
164,
167
],
[
167,
168
],
[
7,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
7,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
177,
182
],
[
182,
183
],
[
182,
184
],
[
177,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
185,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
191,
194
],
[
190,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
177,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
7,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
205,
210
],
[
210,
211
],
[
210,
212
],
[
212,
213
],
[
205,
214
],
[
214,
215
],
[
214,
216
],
[
205,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
217,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
227,
232
],
[
226,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
205,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
238,
242
],
[
238,
243
],
[
243,
244
],
[
244,
245
],
[
243,
246
],
[
243,
247
],
[
203,
248
],
[
248,
249
],
[
7,
250
],
[
250,
251
],
[
250,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
252,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
257,
262
],
[
262,
263
],
[
262,
264
],
[
257,
265
],
[
265,
266
],
[
266,
267
],
[
257,
268
],
[
269,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
271,
273
],
[
270,
274
],
[
274,
275
],
[
274,
276
],
[
252,
277
],
[
277,
278
],
[
250,
279
],
[
279,
280
],
[
250,
281
],
[
281,
282
],
[
7,
283
],
[
283,
284
],
[
283,
285
],
[
285,
286
],
[
286,
287
],
[
286,
288
],
[
285,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
292,
294
],
[
290,
295
],
[
295,
296
],
[
295,
297
],
[
290,
298
],
[
298,
299
],
[
299,
300
],
[
290,
301
],
[
302,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
304,
306
],
[
303,
307
],
[
307,
308
],
[
285,
309
],
[
309,
310
],
[
283,
311
],
[
311,
312
],
[
7,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
316,
317
],
[
316,
318
],
[
315,
319
],
[
319,
320
],
[
315,
321
],
[
321,
322
],
[
321,
323
],
[
315,
324
],
[
324,
325
],
[
325,
326
],
[
326,
327
],
[
327,
328
],
[
327,
329
],
[
329,
330
],
[
326,
331
],
[
331,
332
],
[
325,
333
],
[
333,
334
],
[
334,
335
],
[
335,
336
],
[
336,
337
],
[
336,
338
],
[
335,
339
],
[
339,
340
],
[
339,
341
],
[
334,
342
],
[
342,
343
],
[
342,
344
],
[
315,
345
],
[
345,
346
],
[
346,
347
],
[
346,
348
],
[
345,
349
],
[
349,
350
],
[
350,
351
],
[
350,
352
],
[
349,
353
],
[
353,
354
],
[
353,
355
],
[
355,
356
],
[
315,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
360,
361
],
[
361,
362
],
[
362,
363
],
[
362,
364
],
[
361,
365
],
[
365,
366
],
[
365,
367
],
[
360,
368
],
[
368,
369
],
[
369,
370
],
[
369,
371
],
[
371,
372
],
[
372,
373
],
[
372,
374
],
[
371,
375
],
[
375,
376
],
[
375,
377
],
[
360,
378
],
[
378,
379
],
[
379,
380
],
[
380,
381
],
[
380,
382
],
[
382,
383
],
[
380,
384
],
[
359,
385
],
[
385,
386
],
[
385,
387
],
[
387,
388
],
[
7,
389
],
[
389,
390
],
[
389,
391
],
[
391,
392
],
[
392,
393
],
[
392,
394
],
[
391,
395
],
[
395,
396
],
[
391,
397
],
[
397,
398
],
[
397,
399
],
[
391,
400
],
[
400,
401
],
[
401,
402
],
[
402,
403
],
[
403,
404
],
[
403,
405
],
[
405,
406
],
[
402,
407
],
[
407,
408
],
[
401,
409
],
[
409,
410
],
[
410,
411
],
[
411,
412
],
[
412,
413
],
[
412,
414
],
[
411,
415
],
[
415,
416
],
[
415,
417
],
[
410,
418
],
[
418,
419
],
[
418,
420
],
[
391,
421
],
[
421,
422
],
[
422,
423
],
[
422,
424
],
[
421,
425
],
[
425,
426
],
[
426,
427
],
[
426,
428
],
[
425,
429
],
[
429,
430
],
[
429,
431
],
[
431,
432
],
[
391,
433
],
[
433,
434
],
[
433,
435
],
[
435,
436
],
[
436,
437
],
[
437,
438
],
[
438,
439
],
[
438,
440
],
[
437,
441
],
[
441,
442
],
[
441,
443
],
[
436,
444
],
[
444,
445
],
[
445,
446
],
[
445,
447
],
[
447,
448
],
[
448,
449
],
[
448,
450
],
[
447,
451
],
[
451,
452
],
[
451,
453
],
[
436,
454
],
[
454,
455
],
[
455,
456
],
[
456,
457
],
[
456,
458
],
[
458,
459
],
[
456,
460
],
[
435,
461
],
[
461,
462
],
[
461,
463
],
[
463,
464
]
]
| [
"\nimport java.util.*;\nimport java.io.*;\n\nclass Main {\n\n Scanner in;\n InputStream is;\n PrintWriter out;\n String INPUT = \"\";\n\n//----------------------------------------------------------------------------------------------------//\n \n\n void solve() throws IOException {\n int t = 1;\n // t = ni();\n while (t-- > 0) {\n int a=ni();\n out.println(a+a*a+a*a*a);\n }\n\n }\n//----------------------------------------------------------------------------------------------------//\n\n void run() throws Exception {\n is = System.in;\n out = new PrintWriter(System.out);\n\n //long s = System.currentTimeMillis();\n solve();\n out.flush();\n //tr(System.currentTimeMillis() - s + \"ms\");\n }\n\n public static void main(String[] args) throws Exception {\n new Main().run();\n }\n\n private byte[] inbuf = new byte[1024];\n public int lenbuf = 0, ptrbuf = 0;\n\n private int readByte() {\n if (lenbuf == -1) {\n throw new InputMismatchException();\n }\n if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) {\n return -1;\n }\n }\n return inbuf[ptrbuf++];\n }\n\n private boolean isSpaceChar(int c) {\n return !(c >= 33 && c <= 126);\n }\n\n private int skip() {\n int b;\n while ((b = readByte()) != -1 && isSpaceChar(b));\n return b;\n }\n\n private double nd() {\n return Double.parseDouble(ns());\n }\n\n private char nc() {\n return (char) skip();\n }\n\n private String ns() {\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while (!(isSpaceChar(b))) { // when nextLine(take whole line as input wid space), (!isSpaceChar(b) || b == ' ') \n //if(b!=' ') to remove spaces in Str when taking spaces in Str\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n private char[] ns(int n) {\n char[] buf = new char[n];\n int b = skip(), p = 0;\n while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }\n return n == p ? buf : Arrays.copyOf(buf, p);\n }\n\n private char[][] nm(int n, int m) {\n char[][] map = new char[n][];\n for (int i = 0; i < n; i++) {\n map[i] = ns(m);\n }\n return map;\n }\n\n private int[] na(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }\n\n private int ni() {\n int num = 0, b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'));\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n private long nl() {\n long num = 0;\n int b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'));\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n /*private boolean oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n \n private void tr(Object... o) {\n if (!oj) {\n System.out.println(Arrays.deepToString(o));\n \n }\n }*/\n\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\n Scanner in;\n InputStream is;\n PrintWriter out;\n String INPUT = \"\";\n\n//----------------------------------------------------------------------------------------------------//\n \n\n void solve() throws IOException {\n int t = 1;\n // t = ni();\n while (t-- > 0) {\n int a=ni();\n out.println(a+a*a+a*a*a);\n }\n\n }\n//----------------------------------------------------------------------------------------------------//\n\n void run() throws Exception {\n is = System.in;\n out = new PrintWriter(System.out);\n\n //long s = System.currentTimeMillis();\n solve();\n out.flush();\n //tr(System.currentTimeMillis() - s + \"ms\");\n }\n\n public static void main(String[] args) throws Exception {\n new Main().run();\n }\n\n private byte[] inbuf = new byte[1024];\n public int lenbuf = 0, ptrbuf = 0;\n\n private int readByte() {\n if (lenbuf == -1) {\n throw new InputMismatchException();\n }\n if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) {\n return -1;\n }\n }\n return inbuf[ptrbuf++];\n }\n\n private boolean isSpaceChar(int c) {\n return !(c >= 33 && c <= 126);\n }\n\n private int skip() {\n int b;\n while ((b = readByte()) != -1 && isSpaceChar(b));\n return b;\n }\n\n private double nd() {\n return Double.parseDouble(ns());\n }\n\n private char nc() {\n return (char) skip();\n }\n\n private String ns() {\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while (!(isSpaceChar(b))) { // when nextLine(take whole line as input wid space), (!isSpaceChar(b) || b == ' ') \n //if(b!=' ') to remove spaces in Str when taking spaces in Str\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n private char[] ns(int n) {\n char[] buf = new char[n];\n int b = skip(), p = 0;\n while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }\n return n == p ? buf : Arrays.copyOf(buf, p);\n }\n\n private char[][] nm(int n, int m) {\n char[][] map = new char[n][];\n for (int i = 0; i < n; i++) {\n map[i] = ns(m);\n }\n return map;\n }\n\n private int[] na(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }\n\n private int ni() {\n int num = 0, b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'));\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n\n private long nl() {\n long num = 0;\n int b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'));\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }\n /*private boolean oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n \n private void tr(Object... o) {\n if (!oj) {\n System.out.println(Arrays.deepToString(o));\n \n }\n }*/\n\n}",
"Main",
"Scanner in;",
"in",
"InputStream is;",
"is",
"PrintWriter out;",
"out",
"String INPUT = \"\";",
"INPUT",
"\"\"",
"private byte[] inbuf = new byte[1024];",
"inbuf",
"new byte[1024]",
"1024",
"public int lenbuf = 0",
"lenbuf",
"0",
"ptrbuf = 0;",
"ptrbuf",
"0",
"void solve() throws IOException {\n int t = 1;\n // t = ni();\n while (t-- > 0) {\n int a=ni();\n out.println(a+a*a+a*a*a);\n }\n\n }",
"solve",
"{\n int t = 1;\n // t = ni();\n while (t-- > 0) {\n int a=ni();\n out.println(a+a*a+a*a*a);\n }\n\n }",
"int t = 1;",
"t",
"1",
"while (t-- > 0) {\n int a=ni();\n out.println(a+a*a+a*a*a);\n }",
"t-- > 0",
"t--",
"t",
"0",
"{\n int a=ni();\n out.println(a+a*a+a*a*a);\n }",
"int a=ni();",
"a",
"ni()",
"ni",
"out.println(a+a*a+a*a*a)",
"out.println",
"out",
"a+a*a+a*a*a",
"a+a*a+a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"void run() throws Exception {\n is = System.in;\n out = new PrintWriter(System.out);\n\n //long s = System.currentTimeMillis();\n solve();\n out.flush();\n //tr(System.currentTimeMillis() - s + \"ms\");\n }",
"run",
"{\n is = System.in;\n out = new PrintWriter(System.out);\n\n //long s = System.currentTimeMillis();\n solve();\n out.flush();\n //tr(System.currentTimeMillis() - s + \"ms\");\n }",
"is = System.in",
"is",
"System.in",
"System",
"System.in",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"solve()",
"solve",
"out.flush()",
"out.flush",
"out",
"public static void main(String[] args) throws Exception {\n new Main().run();\n }",
"main",
"{\n new Main().run();\n }",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"private int readByte() {\n if (lenbuf == -1) {\n throw new InputMismatchException();\n }\n if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) {\n return -1;\n }\n }\n return inbuf[ptrbuf++];\n }",
"readByte",
"{\n if (lenbuf == -1) {\n throw new InputMismatchException();\n }\n if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) {\n return -1;\n }\n }\n return inbuf[ptrbuf++];\n }",
"if (lenbuf == -1) {\n throw new InputMismatchException();\n }",
"lenbuf == -1",
"lenbuf",
"-1",
"1",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (ptrbuf >= lenbuf) {\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) {\n return -1;\n }\n }",
"ptrbuf >= lenbuf",
"ptrbuf",
"lenbuf",
"{\n ptrbuf = 0;\n try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (lenbuf <= 0) {\n return -1;\n }\n }",
"ptrbuf = 0",
"ptrbuf",
"0",
"try {\n lenbuf = is.read(inbuf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n lenbuf = is.read(inbuf);\n }",
"lenbuf = is.read(inbuf)",
"lenbuf",
"is.read(inbuf)",
"is.read",
"is",
"inbuf",
"if (lenbuf <= 0) {\n return -1;\n }",
"lenbuf <= 0",
"lenbuf",
"0",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"return inbuf[ptrbuf++];",
"inbuf[ptrbuf++]",
"inbuf",
"ptrbuf++",
"ptrbuf",
"private boolean isSpaceChar(int c) {\n return !(c >= 33 && c <= 126);\n }",
"isSpaceChar",
"{\n return !(c >= 33 && c <= 126);\n }",
"return !(c >= 33 && c <= 126);",
"!(c >= 33 && c <= 126)",
"(c >= 33 && c <= 126)",
"c >= 33",
"c",
"33",
"c <= 126",
"c",
"126",
"int c",
"c",
"private int skip() {\n int b;\n while ((b = readByte()) != -1 && isSpaceChar(b));\n return b;\n }",
"skip",
"{\n int b;\n while ((b = readByte()) != -1 && isSpaceChar(b));\n return b;\n }",
"int b;",
"b",
"while ((b = readByte()) != -1 && isSpaceChar(b));",
"(b = readByte()) != -1 && isSpaceChar(b)",
"(b = readByte()) != -1",
"(b = readByte())",
"b",
"readByte()",
"readByte",
"-1",
"1",
"isSpaceChar(b)",
"isSpaceChar",
"b",
"return b;",
"b",
"private double nd() {\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",
"private char nc() {\n return (char) skip();\n }",
"nc",
"{\n return (char) skip();\n }",
"return (char) skip();",
"(char) skip()",
"skip",
"private String ns() {\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while (!(isSpaceChar(b))) { // when nextLine(take whole line as input wid space), (!isSpaceChar(b) || b == ' ') \n //if(b!=' ') to remove spaces in Str when taking spaces in Str\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"ns",
"{\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while (!(isSpaceChar(b))) { // when nextLine(take whole line as input wid space), (!isSpaceChar(b) || b == ' ') \n //if(b!=' ') to remove spaces in Str when taking spaces in Str\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"int b = skip();",
"b",
"skip()",
"skip",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"while (!(isSpaceChar(b))) { // when nextLine(take whole line as input wid space), (!isSpaceChar(b) || b == ' ') \n //if(b!=' ') to remove spaces in Str when taking spaces in Str\n sb.appendCodePoint(b);\n b = readByte();\n }",
"!(isSpaceChar(b))",
"(isSpaceChar(b))",
"isSpaceChar",
"b",
"{ // when nextLine(take whole line as input wid space), (!isSpaceChar(b) || b == ' ') \n //if(b!=' ') to remove spaces in Str when taking spaces in Str\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",
"private char[] ns(int n) {\n char[] buf = new char[n];\n int b = skip(), p = 0;\n while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }\n return n == p ? buf : Arrays.copyOf(buf, p);\n }",
"ns",
"{\n char[] buf = new char[n];\n int b = skip(), p = 0;\n while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }\n return n == p ? buf : Arrays.copyOf(buf, p);\n }",
"char[] buf = new char[n];",
"buf",
"new char[n]",
"n",
"int b = skip()",
"b",
"skip()",
"skip",
"p = 0;",
"p",
"0",
"while (p < n && !(isSpaceChar(b))) {\n buf[p++] = (char) b;\n b = readByte();\n }",
"p < n && !(isSpaceChar(b))",
"p < n",
"p",
"n",
"!(isSpaceChar(b))",
"(isSpaceChar(b))",
"isSpaceChar",
"b",
"{\n buf[p++] = (char) b;\n b = readByte();\n }",
"buf[p++] = (char) b",
"buf[p++]",
"buf",
"p++",
"p",
"(char) b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return n == p ? buf : Arrays.copyOf(buf, p);",
"n == p ? buf : Arrays.copyOf(buf, p)",
"n == p",
"n",
"p",
"buf",
"Arrays.copyOf(buf, p)",
"Arrays.copyOf",
"Arrays",
"buf",
"p",
"int n",
"n",
"private char[][] nm(int n, int m) {\n char[][] map = new char[n][];\n for (int i = 0; i < n; i++) {\n map[i] = ns(m);\n }\n return map;\n }",
"nm",
"{\n char[][] map = new char[n][];\n for (int i = 0; i < n; i++) {\n map[i] = ns(m);\n }\n return map;\n }",
"char[][] map = new char[n][];",
"map",
"new char[n][]",
"n",
"for (int i = 0; i < n; i++) {\n map[i] = ns(m);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n map[i] = ns(m);\n }",
"{\n map[i] = ns(m);\n }",
"map[i] = ns(m)",
"map[i]",
"map",
"i",
"ns(m)",
"ns",
"m",
"return map;",
"map",
"int n",
"n",
"int m",
"m",
"private int[] na(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }",
"na",
"{\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = ni();\n }\n return a;\n }",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n a[i] = ni();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = ni();\n }",
"{\n a[i] = ni();\n }",
"a[i] = ni()",
"a[i]",
"a",
"i",
"ni()",
"ni",
"return a;",
"a",
"int n",
"n",
"private int ni() {\n int num = 0, b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'));\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }",
"ni",
"{\n int num = 0, b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'));\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }",
"int num = 0",
"num",
"0",
"b;",
"b",
"boolean minus = false;",
"minus",
"false",
"while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'));",
"(b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')",
"(b = readByte()) != -1",
"(b = readByte())",
"b",
"readByte()",
"readByte",
"-1",
"1",
"!((b >= '0' && b <= '9') || b == '-')",
"((b >= '0' && b <= '9') || b == '-')",
"(b >= '0' && b <= '9')",
"b >= '0'",
"b",
"'0'",
"b <= '9'",
"b",
"'9'",
"b == '-'",
"b",
"'-'",
"if (b == '-') {\n minus = true;\n b = readByte();\n }",
"b == '-'",
"b",
"'-'",
"{\n minus = true;\n b = readByte();\n }",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }",
"true",
"{\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }",
"if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }",
"b >= '0' && b <= '9'",
"b >= '0'",
"b",
"'0'",
"b <= '9'",
"b",
"'9'",
"{\n num = num * 10 + (b - '0');\n }",
"num = num * 10 + (b - '0')",
"num",
"num * 10 + (b - '0')",
"num * 10",
"num",
"10",
"(b - '0')",
"b",
"'0'",
"{\n return minus ? -num : num;\n }",
"return minus ? -num : num;",
"minus ? -num : num",
"minus",
"-num",
"num",
"num",
"b = readByte()",
"b",
"readByte()",
"readByte",
"private long nl() {\n long num = 0;\n int b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'));\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }",
"nl",
"{\n long num = 0;\n int b;\n boolean minus = false;\n while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'));\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n\n while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }\n }",
"long num = 0;",
"num",
"0",
"int b;",
"b",
"boolean minus = false;",
"minus",
"false",
"while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'));",
"(b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')",
"(b = readByte()) != -1",
"(b = readByte())",
"b",
"readByte()",
"readByte",
"-1",
"1",
"!((b >= '0' && b <= '9') || b == '-')",
"((b >= '0' && b <= '9') || b == '-')",
"(b >= '0' && b <= '9')",
"b >= '0'",
"b",
"'0'",
"b <= '9'",
"b",
"'9'",
"b == '-'",
"b",
"'-'",
"if (b == '-') {\n minus = true;\n b = readByte();\n }",
"b == '-'",
"b",
"'-'",
"{\n minus = true;\n b = readByte();\n }",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"while (true) {\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }",
"true",
"{\n if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }\n b = readByte();\n }",
"if (b >= '0' && b <= '9') {\n num = num * 10 + (b - '0');\n } else {\n return minus ? -num : num;\n }",
"b >= '0' && b <= '9'",
"b >= '0'",
"b",
"'0'",
"b <= '9'",
"b",
"'9'",
"{\n num = num * 10 + (b - '0');\n }",
"num = num * 10 + (b - '0')",
"num",
"num * 10 + (b - '0')",
"num * 10",
"num",
"10",
"(b - '0')",
"b",
"'0'",
"{\n return minus ? -num : num;\n }",
"return minus ? -num : num;",
"minus ? -num : num",
"minus",
"-num",
"num",
"num",
"b = readByte()",
"b",
"readByte()",
"readByte"
]
|
import java.util.*;
import java.io.*;
class Main {
Scanner in;
InputStream is;
PrintWriter out;
String INPUT = "";
//----------------------------------------------------------------------------------------------------//
void solve() throws IOException {
int t = 1;
// t = ni();
while (t-- > 0) {
int a=ni();
out.println(a+a*a+a*a*a);
}
}
//----------------------------------------------------------------------------------------------------//
void run() throws Exception {
is = System.in;
out = new PrintWriter(System.out);
//long s = System.currentTimeMillis();
solve();
out.flush();
//tr(System.currentTimeMillis() - s + "ms");
}
public static void main(String[] args) throws Exception {
new Main().run();
}
private byte[] inbuf = new byte[1024];
public int lenbuf = 0, ptrbuf = 0;
private int readByte() {
if (lenbuf == -1) {
throw new InputMismatchException();
}
if (ptrbuf >= lenbuf) {
ptrbuf = 0;
try {
lenbuf = is.read(inbuf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (lenbuf <= 0) {
return -1;
}
}
return inbuf[ptrbuf++];
}
private boolean isSpaceChar(int c) {
return !(c >= 33 && c <= 126);
}
private int skip() {
int b;
while ((b = readByte()) != -1 && isSpaceChar(b));
return b;
}
private double nd() {
return Double.parseDouble(ns());
}
private char nc() {
return (char) skip();
}
private String ns() {
int b = skip();
StringBuilder sb = new StringBuilder();
while (!(isSpaceChar(b))) { // when nextLine(take whole line as input wid space), (!isSpaceChar(b) || b == ' ')
//if(b!=' ') to remove spaces in Str when taking spaces in Str
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
private char[] ns(int n) {
char[] buf = new char[n];
int b = skip(), p = 0;
while (p < n && !(isSpaceChar(b))) {
buf[p++] = (char) b;
b = readByte();
}
return n == p ? buf : Arrays.copyOf(buf, p);
}
private char[][] nm(int n, int m) {
char[][] map = new char[n][];
for (int i = 0; i < n; i++) {
map[i] = ns(m);
}
return map;
}
private int[] na(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = ni();
}
return a;
}
private int ni() {
int num = 0, b;
boolean minus = false;
while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'));
if (b == '-') {
minus = true;
b = readByte();
}
while (true) {
if (b >= '0' && b <= '9') {
num = num * 10 + (b - '0');
} else {
return minus ? -num : num;
}
b = readByte();
}
}
private long nl() {
long num = 0;
int b;
boolean minus = false;
while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'));
if (b == '-') {
minus = true;
b = readByte();
}
while (true) {
if (b >= '0' && b <= '9') {
num = num * 10 + (b - '0');
} else {
return minus ? -num : num;
}
b = readByte();
}
}
/*private boolean oj = System.getProperty("ONLINE_JUDGE") != null;
private void tr(Object... o) {
if (!oj) {
System.out.println(Arrays.deepToString(o));
}
}*/
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
58,
14
],
[
58,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
21,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
35,
36
],
[
28,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
50,
54
],
[
15,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\n\n/**\n * A https://atcoder.jp/contests/abc172/tasks/abc172_a\n * \n */\npublic class Main {\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n \n try {\n int a = Integer.parseInt(reader.readLine());\n System.out.println((int) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n } catch (NumberFormatException | IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n \n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n \n try {\n int a = Integer.parseInt(reader.readLine());\n System.out.println((int) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n } catch (NumberFormatException | IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n \n }\n}",
"Main",
"public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n \n try {\n int a = Integer.parseInt(reader.readLine());\n System.out.println((int) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n } catch (NumberFormatException | IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n \n }",
"main",
"{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n \n try {\n int a = Integer.parseInt(reader.readLine());\n System.out.println((int) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n } catch (NumberFormatException | IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n \n }",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n int a = Integer.parseInt(reader.readLine());\n System.out.println((int) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n } catch (NumberFormatException | IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }",
"catch (NumberFormatException | IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }",
"NumberFormatException | IOException e",
"{\n // TODO Auto-generated catch block\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n int a = Integer.parseInt(reader.readLine());\n System.out.println((int) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n }",
"int a = Integer.parseInt(reader.readLine());",
"a",
"Integer.parseInt(reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"System.out.println((int) (a + Math.pow(a, 2) + Math.pow(a, 3)))",
"System.out.println",
"System.out",
"System",
"System.out",
"(int) (a + Math.pow(a, 2) + Math.pow(a, 3))",
"a + Math.pow(a, 2) + Math.pow(a, 3)",
"a",
"Math.pow(a, 2)",
"Math.pow",
"Math",
"a",
"2",
"Math.pow(a, 3)",
"Math.pow",
"Math",
"a",
"3",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n \n try {\n int a = Integer.parseInt(reader.readLine());\n System.out.println((int) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n } catch (NumberFormatException | IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n \n }\n}",
"public class Main {\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n \n try {\n int a = Integer.parseInt(reader.readLine());\n System.out.println((int) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n } catch (NumberFormatException | IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n \n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
/**
* A https://atcoder.jp/contests/abc172/tasks/abc172_a
*
*/
public class Main {
public static void main(String[] args) {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try {
int a = Integer.parseInt(reader.readLine());
System.out.println((int) (a + Math.pow(a, 2) + Math.pow(a, 3)));
} catch (NumberFormatException | IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
41,
13,
18,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
2,
13,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
12,
13,
30,
29,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
438,
8
],
[
438,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
11,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
24,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
38,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
44,
44
],
[
44,
45
],
[
44,
46
],
[
44,
47
],
[
29,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
11,
52
],
[
52,
53
],
[
53,
54
],
[
9,
55
],
[
55,
56
],
[
438,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
57,
65
],
[
65,
66
],
[
57,
67
],
[
67,
68
],
[
57,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
69,
77
],
[
77,
78
],
[
57,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
82,
87
],
[
87,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
97,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
93,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
81,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
57,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
124,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
124,
138
],
[
138,
139
],
[
138,
140
],
[
124,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
145,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
124,
154
],
[
154,
155
],
[
154,
156
],
[
124,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
157,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
168,
170
],
[
162,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
124,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
57,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
181,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
181,
195
],
[
195,
196
],
[
195,
197
],
[
181,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
202,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
181,
211
],
[
211,
212
],
[
211,
213
],
[
181,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
214,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
225,
227
],
[
219,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
181,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
57,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
238,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
243,
248
],
[
248,
249
],
[
248,
250
],
[
243,
251
],
[
251,
252
],
[
252,
253
],
[
243,
254
],
[
255,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
256,
260
],
[
260,
261
],
[
238,
262
],
[
262,
263
],
[
236,
264
],
[
264,
265
],
[
57,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
271,
273
],
[
270,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
276,
278
],
[
269,
279
],
[
279,
280
],
[
279,
281
],
[
269,
282
],
[
282,
283
],
[
283,
284
],
[
269,
285
],
[
286,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
290,
293
],
[
293,
294
],
[
293,
295
],
[
289,
296
],
[
286,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
299,
301
],
[
286,
302
],
[
302,
303
],
[
303,
304
],
[
303,
305
],
[
302,
306
],
[
306,
307
],
[
306,
308
],
[
286,
309
],
[
309,
310
],
[
310,
311
],
[
310,
312
],
[
309,
313
],
[
268,
314
],
[
314,
315
],
[
266,
316
],
[
316,
317
],
[
266,
318
],
[
318,
319
],
[
57,
320
],
[
320,
321
],
[
320,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
325,
326
],
[
322,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
327,
331
],
[
331,
332
],
[
332,
333
],
[
332,
334
],
[
334,
335
],
[
322,
336
],
[
336,
337
],
[
336,
338
],
[
322,
339
],
[
339,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
339,
344
],
[
344,
345
],
[
345,
346
],
[
346,
347
],
[
345,
348
],
[
344,
349
],
[
349,
350
],
[
349,
351
],
[
351,
352
],
[
322,
353
],
[
353,
354
],
[
354,
355
],
[
355,
356
],
[
57,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
362,
363
],
[
359,
364
],
[
364,
365
],
[
365,
366
],
[
365,
367
],
[
364,
368
],
[
368,
369
],
[
368,
370
],
[
370,
371
],
[
359,
372
],
[
372,
373
],
[
372,
374
],
[
359,
375
],
[
375,
376
],
[
376,
377
],
[
377,
378
],
[
377,
379
],
[
375,
380
],
[
380,
381
],
[
381,
382
],
[
382,
383
],
[
381,
384
],
[
380,
385
],
[
385,
386
],
[
385,
387
],
[
387,
388
],
[
359,
389
],
[
389,
390
],
[
390,
391
],
[
391,
392
],
[
57,
393
],
[
393,
394
],
[
393,
395
],
[
395,
396
],
[
396,
397
],
[
400,
398
],
[
410,
399
],
[
407,
400
],
[
400,
401
],
[
401,
402
],
[
401,
403
],
[
400,
404
],
[
404,
405
],
[
404,
406
],
[
407,
407
],
[
407,
408
],
[
407,
409
],
[
410,
410
],
[
410,
411
],
[
410,
412
],
[
400,
413
],
[
413,
414
],
[
413,
415
],
[
415,
416
],
[
393,
417
],
[
417,
418
],
[
57,
419
],
[
419,
420
],
[
419,
421
],
[
421,
422
],
[
422,
423
],
[
424,
424
],
[
424,
425
],
[
425,
426
],
[
425,
427
],
[
424,
428
],
[
428,
429
],
[
428,
430
],
[
424,
431
],
[
431,
432
],
[
431,
433
],
[
433,
434
],
[
419,
435
],
[
435,
436
],
[
0,
437
],
[
437,
438
],
[
437,
439
]
]
| [
"import java.io.*;\nimport java.util.*;\npublic class Main {\n\npublic static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n int n = sc.nextInt();\n long ans = n + n*n + n*n*n;\n pw.println(ans);\n\n }\n pw.close();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nstatic class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\npublic static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n int n = sc.nextInt();\n long ans = n + n*n + n*n*n;\n pw.println(ans);\n\n }\n pw.close();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nstatic class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}\n\n}",
"Main",
"public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n int n = sc.nextInt();\n long ans = n + n*n + n*n*n;\n pw.println(ans);\n\n }\n pw.close();\n\n}",
"main",
"{\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n int n = sc.nextInt();\n long ans = n + n*n + n*n*n;\n pw.println(ans);\n\n }\n pw.close();\n\n}",
"InputReader sc = new InputReader(System.in);",
"sc",
"new InputReader(System.in)",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"Random gen = new Random();",
"gen",
"new Random()",
"int test = 1;",
"test",
"1",
"while(test-->0) {\n\n int n = sc.nextInt();\n long ans = n + n*n + n*n*n;\n pw.println(ans);\n\n }",
"test-->0",
"test--",
"test",
"0",
"{\n\n int n = sc.nextInt();\n long ans = n + n*n + n*n*n;\n pw.println(ans);\n\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long ans = n + n*n + n*n*n;",
"ans",
"n + n*n + n*n*n",
"n + n*n + n*n*n",
"n",
"n*n",
"n",
"n",
"n*n*n",
"n*n*n",
"n",
"n",
"n",
"pw.println(ans)",
"pw.println",
"pw",
"ans",
"pw.close()",
"pw.close",
"pw",
"String[] args",
"args",
"static class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}",
"InputReader",
"private final InputStream stream;",
"stream",
"private final byte[] buf = new byte[8192];",
"buf",
"new byte[8192]",
"8192",
"private int curChar",
"curChar",
"snumChars;",
"snumChars",
"public InputReader(InputStream st) {\n this.stream = st;\n }",
"InputReader",
"{\n this.stream = st;\n }",
"this.stream = st",
"this.stream",
"this",
"this.stream",
"st",
"InputStream st",
"st",
"public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"read",
"{\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"if (snumChars == -1)\n throw new InputMismatchException();",
"snumChars == -1",
"snumChars",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }",
"curChar >= snumChars",
"curChar",
"snumChars",
"{\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }",
"curChar = 0",
"curChar",
"0",
"try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n snumChars = stream.read(buf);\n }",
"snumChars = stream.read(buf)",
"snumChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (snumChars <= 0)\n return -1;",
"snumChars <= 0",
"snumChars",
"0",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextInt",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"int res = 0;",
"res",
"0",
"do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res *= 10;\n res += c - '0';\n c = read();\n }",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextLong",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"long res = 0;",
"res",
"0",
"do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res *= 10;\n res += c - '0';\n c = read();\n }",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }",
"nextIntArray",
"{\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }",
"int [] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = nextInt();\n }",
"{\n a[i] = nextInt();\n }",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }",
"shuffle",
"{ for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }",
"for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }",
"int i = 0, n = a.length;",
"int i = 0",
"i",
"0",
"n = a.length;",
"n",
"a.length",
"a",
"a.length",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{ int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }",
"{ int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }",
"int ind = gen.nextInt(n-i)+i;",
"ind",
"gen.nextInt(n-i)+i",
"gen.nextInt(n-i)",
"gen.nextInt",
"gen",
"n-i",
"n",
"i",
"i",
"int d = a[i];",
"d",
"a[i]",
"a",
"i",
"a[i] = a[ind]",
"a[i]",
"a",
"i",
"a[ind]",
"a",
"ind",
"a[ind] = d",
"a[ind]",
"a",
"ind",
"d",
"return a;",
"a",
"int[] a",
"a",
"Random gen",
"gen",
"public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"readString",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res.appendCodePoint(c);\n c = read();\n }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }",
"nextLine",
"{\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));",
"!isEndOfLine(c)",
"isEndOfLine(c)",
"isEndOfLine",
"c",
"{\n res.appendCodePoint(c);\n c = read();\n }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isSpaceChar",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }",
"isEndOfLine",
"{\n return c == '\\n' || c == '\\r' || c == -1;\n }",
"return c == '\\n' || c == '\\r' || c == -1;",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public class Main {\n\npublic static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n int n = sc.nextInt();\n long ans = n + n*n + n*n*n;\n pw.println(ans);\n\n }\n pw.close();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nstatic class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}\n\n}",
"public class Main {\n\npublic static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n int n = sc.nextInt();\n long ans = n + n*n + n*n*n;\n pw.println(ans);\n\n }\n pw.close();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nstatic class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}\n\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
InputReader sc = new InputReader(System.in);
PrintWriter pw = new PrintWriter(System.out);
Random gen = new Random();
int test = 1;//sc.nextInt();
while(test-->0) {
int n = sc.nextInt();
long ans = n + n*n + n*n*n;
pw.println(ans);
}
pw.close();
}
static class InputReader {
private final InputStream stream;
private final byte[] buf = new byte[8192];
private int curChar, snumChars;
public InputReader(InputStream st) {
this.stream = st;
}
public int read() {
if (snumChars == -1)
throw new InputMismatchException();
if (curChar >= snumChars) {
curChar = 0;
try {
snumChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (snumChars <= 0)
return -1;
}
return buf[curChar++];
}
public int nextInt() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
int res = 0;
do {
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public long nextLong() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
long res = 0;
do {
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public int[] nextIntArray(int n) {
int [] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = nextInt();
}
return a;
}
public static int[] shuffle(int[] a, Random gen)
{ for(int i = 0, n = a.length;i < n;i++)
{ int ind = gen.nextInt(n-i)+i;
int d = a[i];
a[i] = a[ind];
a[ind] = d;
}
return a;
}
public String readString() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
} while (!isSpaceChar(c));
return res.toString();
}
public String nextLine() {
int c = read();
while (isSpaceChar(c))
c = read();
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
} while (!isEndOfLine(c));
return res.toString();
}
public boolean isSpaceChar(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
private boolean isEndOfLine(int c) {
return c == '\n' || c == '\r' || c == -1;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
2,
4,
13,
13,
17,
4,
13,
13,
17,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
13,
13,
0,
13,
17,
30,
0,
13,
2,
13,
13,
40,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
13,
13,
13,
0,
13,
17,
30,
0,
13,
2,
2,
13,
13,
13,
40,
13,
29,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
12,
13,
30,
4,
13,
18,
13,
13,
12,
13,
30,
0,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
12,
13,
30,
29,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
30,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
34,
37
],
[
29,
38
],
[
14,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
14,
43
],
[
43,
44
],
[
44,
45
],
[
12,
46
],
[
46,
47
],
[
10,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
65,
71
],
[
71,
72
],
[
71,
73
],
[
59,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
74,
80
],
[
80,
81
],
[
50,
82
],
[
82,
83
],
[
48,
84
],
[
84,
85
],
[
48,
86
],
[
86,
87
],
[
10,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
105,
113
],
[
113,
114
],
[
113,
115
],
[
99,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
116,
124
],
[
124,
125
],
[
90,
126
],
[
126,
127
],
[
88,
128
],
[
128,
129
],
[
88,
130
],
[
130,
131
],
[
88,
132
],
[
132,
133
],
[
10,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
134,
138
],
[
138,
139
],
[
138,
140
],
[
134,
142
],
[
142,
143
],
[
134,
144
],
[
144,
145
],
[
134,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
151,
153
],
[
134,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
154,
160
],
[
160,
161
],
[
134,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
165,
170
],
[
170,
171
],
[
164,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
180,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
189,
192
],
[
176,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
193,
197
],
[
197,
198
],
[
198,
199
],
[
164,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
134,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
207,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
207,
220
],
[
220,
221
],
[
220,
222
],
[
207,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
223,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
229,
232
],
[
228,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
207,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
134,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
243,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
248,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
243,
256
],
[
256,
257
],
[
256,
258
],
[
243,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
259,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
265,
268
],
[
264,
269
],
[
269,
270
],
[
269,
271
],
[
271,
272
],
[
243,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
134,
277
],
[
277,
278
],
[
277,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
279,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
284,
288
],
[
288,
289
],
[
288,
290
],
[
290,
291
],
[
279,
292
],
[
292,
293
],
[
292,
294
],
[
279,
295
],
[
295,
296
],
[
296,
297
],
[
296,
298
],
[
295,
299
],
[
299,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
299,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
279,
308
],
[
308,
309
],
[
308,
310
],
[
279,
311
],
[
311,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
311,
316
],
[
316,
317
],
[
317,
318
],
[
318,
319
],
[
319,
320
],
[
319,
321
],
[
318,
322
],
[
322,
323
],
[
322,
324
],
[
317,
325
],
[
325,
326
],
[
316,
327
],
[
327,
328
],
[
327,
329
],
[
316,
330
],
[
330,
331
],
[
330,
332
],
[
332,
333
],
[
332,
334
],
[
316,
335
],
[
335,
336
],
[
335,
337
],
[
337,
338
],
[
279,
339
],
[
339,
340
],
[
340,
341
],
[
340,
342
],
[
134,
343
],
[
343,
344
],
[
343,
345
],
[
345,
346
],
[
346,
347
],
[
346,
348
],
[
348,
349
],
[
345,
350
],
[
350,
351
],
[
351,
352
],
[
351,
353
],
[
350,
354
],
[
354,
355
],
[
354,
356
],
[
356,
357
],
[
345,
358
],
[
358,
359
],
[
358,
360
],
[
345,
361
],
[
361,
362
],
[
362,
363
],
[
362,
364
],
[
361,
365
],
[
365,
366
],
[
366,
367
],
[
366,
368
],
[
368,
369
],
[
365,
370
],
[
370,
371
],
[
370,
372
],
[
372,
373
],
[
345,
374
],
[
374,
375
],
[
374,
376
],
[
345,
377
],
[
377,
378
],
[
378,
379
],
[
379,
380
],
[
379,
381
],
[
377,
382
],
[
382,
383
],
[
383,
384
],
[
384,
385
],
[
385,
386
],
[
385,
387
],
[
384,
388
],
[
388,
389
],
[
388,
390
],
[
383,
391
],
[
391,
392
],
[
382,
393
],
[
393,
394
],
[
393,
395
],
[
382,
396
],
[
396,
397
],
[
396,
398
],
[
398,
399
],
[
398,
400
],
[
382,
401
],
[
401,
402
],
[
401,
403
],
[
403,
404
],
[
345,
405
],
[
405,
406
],
[
406,
407
],
[
406,
408
],
[
134,
409
],
[
409,
410
],
[
409,
411
],
[
411,
412
],
[
412,
413
],
[
413,
414
],
[
414,
415
],
[
413,
416
],
[
416,
417
],
[
134,
418
],
[
418,
419
],
[
418,
420
],
[
420,
421
],
[
421,
422
],
[
425,
423
],
[
435,
424
],
[
432,
425
],
[
425,
426
],
[
426,
427
],
[
426,
428
],
[
425,
429
],
[
429,
430
],
[
429,
431
],
[
432,
432
],
[
432,
433
],
[
432,
434
],
[
435,
435
],
[
435,
436
],
[
435,
437
],
[
425,
438
],
[
438,
439
],
[
438,
440
],
[
440,
441
],
[
418,
442
],
[
442,
443
],
[
134,
444
],
[
444,
445
],
[
444,
446
],
[
446,
447
],
[
447,
448
],
[
449,
449
],
[
449,
450
],
[
450,
451
],
[
450,
452
],
[
449,
453
],
[
453,
454
],
[
453,
455
],
[
449,
456
],
[
456,
457
],
[
456,
458
],
[
458,
459
],
[
444,
460
],
[
460,
461
],
[
134,
462
],
[
462,
463
],
[
462,
464
],
[
464,
465
],
[
465,
466
],
[
465,
467
],
[
464,
469
],
[
469,
470
],
[
470,
471
],
[
471,
472
],
[
471,
473
],
[
469,
474
],
[
474,
475
],
[
474,
476
],
[
469,
477
],
[
477,
478
],
[
478,
479
],
[
469,
480
],
[
481,
481
],
[
481,
482
],
[
482,
483
],
[
483,
484
],
[
483,
485
],
[
482,
486
],
[
486,
487
],
[
464,
488
],
[
488,
489
],
[
462,
490
],
[
490,
491
],
[
134,
492
],
[
492,
493
],
[
492,
494
],
[
494,
495
],
[
495,
496
],
[
495,
497
],
[
494,
499
],
[
499,
500
],
[
500,
501
],
[
501,
502
],
[
501,
503
],
[
499,
504
],
[
504,
505
],
[
504,
506
],
[
499,
507
],
[
507,
508
],
[
508,
509
],
[
499,
510
],
[
511,
511
],
[
511,
512
],
[
512,
513
],
[
513,
514
],
[
513,
515
],
[
512,
516
],
[
516,
517
],
[
494,
518
],
[
518,
519
],
[
492,
520
],
[
520,
521
]
]
| [
"\nimport java.util.*;\nimport java.io.*;\nimport java.math.*;\n\nclass Main {\n public static void main(String[] args) throws IOException {\n PrintWriter out = new PrintWriter(System.out);\n Reader s = new Reader();\n int n = s.i();\n int ans = power(n,2) + power(n,3)+n;\n out.println(ans);\n out.flush();\n }\n\n private static int power(int a, int n) {\n int result = 1;\n while (n > 0) {\n if (n % 2 == 0) {\n a = (a * a);\n n /= 2;\n } else {\n result = (result * a);\n n--;\n }\n }\n return result;\n }\n\n private static int power(int a, int n, int p) {\n int result = 1;\n while (n > 0) {\n if (n % 2 == 0) {\n a = (a * a) % p;\n n /= 2;\n } else {\n result = (result * a) % p;\n n--;\n }\n }\n return result;\n }\n\n static class Reader {\n private InputStream mIs;\n private byte[] buf = new byte[1024];\n private int curChar, numChars;\n\n public Reader() {\n this(System.in);\n }\n\n public Reader(InputStream is) {\n mIs = is;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = mIs.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public String s() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public long l() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int i() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public double d() throws IOException {\n return Double.parseDouble(s());\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n public int[] arr(int n) {\n int[] ret = new int[n];\n for (int i = 0; i < n; i++) {\n ret[i] = i();\n }\n return ret;\n }\n\n public long[] arrLong(int n) {\n long[] ret = new long[n];\n for (int i = 0; i < n; i++) {\n ret[i] = l();\n }\n return ret;\n }\n }\n // static class pairLong implements Comparator<pairLong> {\n// long first, second;\n//\n// pairLong() {\n// }\n//\n// pairLong(long first, long second) {\n// this.first = first;\n// this.second = second;\n// }\n//\n// @Override\n// public int compare(pairLong p1, pairLong p2) {\n// if (p1.first == p2.first) {\n// if(p1.second > p2.second) return 1;\n// else return -1;\n// }\n// if(p1.first > p2.first) return 1;\n// else return -1;\n// }\n// }\n// static class pair implements Comparator<pair> {\n// int first, second;\n//\n// pair() {\n// }\n//\n// pair(int first, int second) {\n// this.first = first;\n// this.second = second;\n// }\n//\n// @Override\n// public int compare(pair p1, pair p2) {\n// if (p1.first == p2.first) return p1.second - p2.second;\n// return p1.first - p2.first;\n// }\n// }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"class Main {\n public static void main(String[] args) throws IOException {\n PrintWriter out = new PrintWriter(System.out);\n Reader s = new Reader();\n int n = s.i();\n int ans = power(n,2) + power(n,3)+n;\n out.println(ans);\n out.flush();\n }\n\n private static int power(int a, int n) {\n int result = 1;\n while (n > 0) {\n if (n % 2 == 0) {\n a = (a * a);\n n /= 2;\n } else {\n result = (result * a);\n n--;\n }\n }\n return result;\n }\n\n private static int power(int a, int n, int p) {\n int result = 1;\n while (n > 0) {\n if (n % 2 == 0) {\n a = (a * a) % p;\n n /= 2;\n } else {\n result = (result * a) % p;\n n--;\n }\n }\n return result;\n }\n\n static class Reader {\n private InputStream mIs;\n private byte[] buf = new byte[1024];\n private int curChar, numChars;\n\n public Reader() {\n this(System.in);\n }\n\n public Reader(InputStream is) {\n mIs = is;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = mIs.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public String s() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public long l() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int i() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public double d() throws IOException {\n return Double.parseDouble(s());\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n public int[] arr(int n) {\n int[] ret = new int[n];\n for (int i = 0; i < n; i++) {\n ret[i] = i();\n }\n return ret;\n }\n\n public long[] arrLong(int n) {\n long[] ret = new long[n];\n for (int i = 0; i < n; i++) {\n ret[i] = l();\n }\n return ret;\n }\n }\n // static class pairLong implements Comparator<pairLong> {\n// long first, second;\n//\n// pairLong() {\n// }\n//\n// pairLong(long first, long second) {\n// this.first = first;\n// this.second = second;\n// }\n//\n// @Override\n// public int compare(pairLong p1, pairLong p2) {\n// if (p1.first == p2.first) {\n// if(p1.second > p2.second) return 1;\n// else return -1;\n// }\n// if(p1.first > p2.first) return 1;\n// else return -1;\n// }\n// }\n// static class pair implements Comparator<pair> {\n// int first, second;\n//\n// pair() {\n// }\n//\n// pair(int first, int second) {\n// this.first = first;\n// this.second = second;\n// }\n//\n// @Override\n// public int compare(pair p1, pair p2) {\n// if (p1.first == p2.first) return p1.second - p2.second;\n// return p1.first - p2.first;\n// }\n// }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n PrintWriter out = new PrintWriter(System.out);\n Reader s = new Reader();\n int n = s.i();\n int ans = power(n,2) + power(n,3)+n;\n out.println(ans);\n out.flush();\n }",
"main",
"{\n PrintWriter out = new PrintWriter(System.out);\n Reader s = new Reader();\n int n = s.i();\n int ans = power(n,2) + power(n,3)+n;\n out.println(ans);\n out.flush();\n }",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"Reader s = new Reader();",
"s",
"new Reader()",
"int n = s.i();",
"n",
"s.i()",
"s.i",
"s",
"int ans = power(n,2) + power(n,3)+n;",
"ans",
"power(n,2) + power(n,3)+n",
"power(n,2) + power(n,3)+n",
"power(n,2)",
"power",
"n",
"2",
"power(n,3)",
"power",
"n",
"3",
"n",
"out.println(ans)",
"out.println",
"out",
"ans",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"private static int power(int a, int n) {\n int result = 1;\n while (n > 0) {\n if (n % 2 == 0) {\n a = (a * a);\n n /= 2;\n } else {\n result = (result * a);\n n--;\n }\n }\n return result;\n }",
"power",
"{\n int result = 1;\n while (n > 0) {\n if (n % 2 == 0) {\n a = (a * a);\n n /= 2;\n } else {\n result = (result * a);\n n--;\n }\n }\n return result;\n }",
"int result = 1;",
"result",
"1",
"while (n > 0) {\n if (n % 2 == 0) {\n a = (a * a);\n n /= 2;\n } else {\n result = (result * a);\n n--;\n }\n }",
"n > 0",
"n",
"0",
"{\n if (n % 2 == 0) {\n a = (a * a);\n n /= 2;\n } else {\n result = (result * a);\n n--;\n }\n }",
"if (n % 2 == 0) {\n a = (a * a);\n n /= 2;\n } else {\n result = (result * a);\n n--;\n }",
"n % 2 == 0",
"n % 2",
"n",
"2",
"0",
"{\n a = (a * a);\n n /= 2;\n }",
"a = (a * a)",
"a",
"(a * a)",
"a",
"a",
"n /= 2",
"n",
"2",
"{\n result = (result * a);\n n--;\n }",
"result = (result * a)",
"result",
"(result * a)",
"result",
"a",
"n--",
"n",
"return result;",
"result",
"int a",
"a",
"int n",
"n",
"private static int power(int a, int n, int p) {\n int result = 1;\n while (n > 0) {\n if (n % 2 == 0) {\n a = (a * a) % p;\n n /= 2;\n } else {\n result = (result * a) % p;\n n--;\n }\n }\n return result;\n }",
"power",
"{\n int result = 1;\n while (n > 0) {\n if (n % 2 == 0) {\n a = (a * a) % p;\n n /= 2;\n } else {\n result = (result * a) % p;\n n--;\n }\n }\n return result;\n }",
"int result = 1;",
"result",
"1",
"while (n > 0) {\n if (n % 2 == 0) {\n a = (a * a) % p;\n n /= 2;\n } else {\n result = (result * a) % p;\n n--;\n }\n }",
"n > 0",
"n",
"0",
"{\n if (n % 2 == 0) {\n a = (a * a) % p;\n n /= 2;\n } else {\n result = (result * a) % p;\n n--;\n }\n }",
"if (n % 2 == 0) {\n a = (a * a) % p;\n n /= 2;\n } else {\n result = (result * a) % p;\n n--;\n }",
"n % 2 == 0",
"n % 2",
"n",
"2",
"0",
"{\n a = (a * a) % p;\n n /= 2;\n }",
"a = (a * a) % p",
"a",
"(a * a) % p",
"(a * a)",
"a",
"a",
"p",
"n /= 2",
"n",
"2",
"{\n result = (result * a) % p;\n n--;\n }",
"result = (result * a) % p",
"result",
"(result * a) % p",
"(result * a)",
"result",
"a",
"p",
"n--",
"n",
"return result;",
"result",
"int a",
"a",
"int n",
"n",
"int p",
"p",
"static class Reader {\n private InputStream mIs;\n private byte[] buf = new byte[1024];\n private int curChar, numChars;\n\n public Reader() {\n this(System.in);\n }\n\n public Reader(InputStream is) {\n mIs = is;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = mIs.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public String s() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public long l() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int i() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public double d() throws IOException {\n return Double.parseDouble(s());\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n public int[] arr(int n) {\n int[] ret = new int[n];\n for (int i = 0; i < n; i++) {\n ret[i] = i();\n }\n return ret;\n }\n\n public long[] arrLong(int n) {\n long[] ret = new long[n];\n for (int i = 0; i < n; i++) {\n ret[i] = l();\n }\n return ret;\n }\n }",
"Reader",
"private InputStream mIs;",
"mIs",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar",
"curChar",
"numChars;",
"numChars",
"public Reader() {\n this(System.in);\n }",
"Reader",
"{\n this(System.in);\n }",
"this(System.in)",
"this",
"System.in",
"System",
"System.in",
"public Reader(InputStream is) {\n mIs = is;\n }",
"Reader",
"{\n mIs = is;\n }",
"mIs = is",
"mIs",
"is",
"InputStream is",
"is",
"public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = mIs.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = mIs.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }",
"if (numChars == -1) throw new InputMismatchException();",
"numChars == -1",
"numChars",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = mIs.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = mIs.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = mIs.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n numChars = mIs.read(buf);\n }",
"numChars = mIs.read(buf)",
"numChars",
"mIs.read(buf)",
"mIs.read",
"mIs",
"buf",
"if (numChars <= 0) return -1;",
"numChars <= 0",
"numChars",
"0",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public String nextLine() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }",
"nextLine",
"{\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));",
"!isEndOfLine(c)",
"isEndOfLine(c)",
"isEndOfLine",
"c",
"{\n res.appendCodePoint(c);\n c = read();\n }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public String s() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"s",
"{\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res.appendCodePoint(c);\n c = read();\n }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public long l() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"l",
"{\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"long res = 0;",
"res",
"0",
"do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }",
"if (c < '0' || c > '9') throw new InputMismatchException();",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public int i() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"i",
"{\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"int res = 0;",
"res",
"0",
"do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }",
"if (c < '0' || c > '9') throw new InputMismatchException();",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public double d() throws IOException {\n return Double.parseDouble(s());\n }",
"d",
"{\n return Double.parseDouble(s());\n }",
"return Double.parseDouble(s());",
"Double.parseDouble(s())",
"Double.parseDouble",
"Double",
"s()",
"s",
"public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isSpaceChar",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }",
"isEndOfLine",
"{\n return c == '\\n' || c == '\\r' || c == -1;\n }",
"return c == '\\n' || c == '\\r' || c == -1;",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public int[] arr(int n) {\n int[] ret = new int[n];\n for (int i = 0; i < n; i++) {\n ret[i] = i();\n }\n return ret;\n }",
"arr",
"{\n int[] ret = new int[n];\n for (int i = 0; i < n; i++) {\n ret[i] = i();\n }\n return ret;\n }",
"int[] ret = new int[n];",
"ret",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n ret[i] = i();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n ret[i] = i();\n }",
"{\n ret[i] = i();\n }",
"ret[i] = i()",
"ret[i]",
"ret",
"i",
"i()",
"i",
"return ret;",
"ret",
"int n",
"n",
"public long[] arrLong(int n) {\n long[] ret = new long[n];\n for (int i = 0; i < n; i++) {\n ret[i] = l();\n }\n return ret;\n }",
"arrLong",
"{\n long[] ret = new long[n];\n for (int i = 0; i < n; i++) {\n ret[i] = l();\n }\n return ret;\n }",
"long[] ret = new long[n];",
"ret",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n ret[i] = l();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n ret[i] = l();\n }",
"{\n ret[i] = l();\n }",
"ret[i] = l()",
"ret[i]",
"ret",
"i",
"l()",
"l",
"return ret;",
"ret",
"int n",
"n"
]
|
import java.util.*;
import java.io.*;
import java.math.*;
class Main {
public static void main(String[] args) throws IOException {
PrintWriter out = new PrintWriter(System.out);
Reader s = new Reader();
int n = s.i();
int ans = power(n,2) + power(n,3)+n;
out.println(ans);
out.flush();
}
private static int power(int a, int n) {
int result = 1;
while (n > 0) {
if (n % 2 == 0) {
a = (a * a);
n /= 2;
} else {
result = (result * a);
n--;
}
}
return result;
}
private static int power(int a, int n, int p) {
int result = 1;
while (n > 0) {
if (n % 2 == 0) {
a = (a * a) % p;
n /= 2;
} else {
result = (result * a) % p;
n--;
}
}
return result;
}
static class Reader {
private InputStream mIs;
private byte[] buf = new byte[1024];
private int curChar, numChars;
public Reader() {
this(System.in);
}
public Reader(InputStream is) {
mIs = is;
}
public int read() {
if (numChars == -1) throw new InputMismatchException();
if (curChar >= numChars) {
curChar = 0;
try {
numChars = mIs.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0) return -1;
}
return buf[curChar++];
}
public String nextLine() {
int c = read();
while (isSpaceChar(c)) c = read();
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
} while (!isEndOfLine(c));
return res.toString();
}
public String s() {
int c = read();
while (isSpaceChar(c)) c = read();
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
} while (!isSpaceChar(c));
return res.toString();
}
public long l() {
int c = read();
while (isSpaceChar(c)) c = read();
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
long res = 0;
do {
if (c < '0' || c > '9') throw new InputMismatchException();
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public int i() {
int c = read();
while (isSpaceChar(c)) c = read();
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
int res = 0;
do {
if (c < '0' || c > '9') throw new InputMismatchException();
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public double d() throws IOException {
return Double.parseDouble(s());
}
public boolean isSpaceChar(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public boolean isEndOfLine(int c) {
return c == '\n' || c == '\r' || c == -1;
}
public int[] arr(int n) {
int[] ret = new int[n];
for (int i = 0; i < n; i++) {
ret[i] = i();
}
return ret;
}
public long[] arrLong(int n) {
long[] ret = new long[n];
for (int i = 0; i < n; i++) {
ret[i] = l();
}
return ret;
}
}
// static class pairLong implements Comparator<pairLong> {
// long first, second;
//
// pairLong() {
// }
//
// pairLong(long first, long second) {
// this.first = first;
// this.second = second;
// }
//
// @Override
// public int compare(pairLong p1, pairLong p2) {
// if (p1.first == p2.first) {
// if(p1.second > p2.second) return 1;
// else return -1;
// }
// if(p1.first > p2.first) return 1;
// else return -1;
// }
// }
// static class pair implements Comparator<pair> {
// int first, second;
//
// pair() {
// }
//
// pair(int first, int second) {
// this.first = first;
// this.second = second;
// }
//
// @Override
// public int compare(pair p1, pair p2) {
// if (p1.first == p2.first) return p1.second - p2.second;
// return p1.first - p2.first;
// }
// }
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
32,
32
],
[
32,
33
],
[
32,
34
],
[
32,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
6,
39
],
[
39,
40
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = Integer.parseInt(sc.next());\n\t\tSystem.out.println(a + a*a + a*a*a);\n\t\tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = Integer.parseInt(sc.next());\n\t\tSystem.out.println(a + a*a + a*a*a);\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = Integer.parseInt(sc.next());\n\t\tSystem.out.println(a + a*a + a*a*a);\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = Integer.parseInt(sc.next());\n\t\tSystem.out.println(a + a*a + a*a*a);\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = Integer.parseInt(sc.next());",
"a",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"System.out.println(a + a*a + a*a*a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a + a*a + a*a*a",
"a + a*a + a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = Integer.parseInt(sc.next());
System.out.println(a + a*a + a*a*a);
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
36,
5
],
[
36,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
23,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
29,
29
],
[
29,
30
],
[
29,
31
],
[
29,
32
],
[
6,
33
],
[
33,
34
],
[
0,
35
],
[
35,
36
],
[
35,
37
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int h = in.nextInt();\n System.out.println(h+h*h+h*h*h);\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 h = in.nextInt();\n System.out.println(h+h*h+h*h*h);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int h = in.nextInt();\n System.out.println(h+h*h+h*h*h);\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n int h = in.nextInt();\n System.out.println(h+h*h+h*h*h);\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int h = in.nextInt();",
"h",
"in.nextInt()",
"in.nextInt",
"in",
"System.out.println(h+h*h+h*h*h)",
"System.out.println",
"System.out",
"System",
"System.out",
"h+h*h+h*h*h",
"h+h*h+h*h*h",
"h",
"h*h",
"h",
"h",
"h*h*h",
"h*h*h",
"h",
"h",
"h",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int h = in.nextInt();\n System.out.println(h+h*h+h*h*h);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int h = in.nextInt();\n System.out.println(h+h*h+h*h*h);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int h = in.nextInt();
System.out.println(h+h*h+h*h*h);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
47,
5
],
[
47,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
20,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
26,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
6,
33
],
[
33,
34
],
[
47,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
35,
44
],
[
44,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int a=sc.nextInt();\n int ans = a + a*a + a*a*a;\n lp(ans);\n }\n public static void lp(Object o){\n System.out.println(o);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int a=sc.nextInt();\n int ans = a + a*a + a*a*a;\n lp(ans);\n }\n public static void lp(Object o){\n System.out.println(o);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int a=sc.nextInt();\n int ans = a + a*a + a*a*a;\n lp(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int a=sc.nextInt();\n int ans = a + a*a + a*a*a;\n lp(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a=sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans = a + a*a + a*a*a;",
"ans",
"a + a*a + a*a*a",
"a + a*a + a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"lp(ans)",
"lp",
"ans",
"String[] args",
"args",
"public static void lp(Object o){\n System.out.println(o);\n }",
"lp",
"{\n System.out.println(o);\n }",
"System.out.println(o)",
"System.out.println",
"System.out",
"System",
"System.out",
"o",
"Object o",
"o",
"public class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int a=sc.nextInt();\n int ans = a + a*a + a*a*a;\n lp(ans);\n }\n public static void lp(Object o){\n System.out.println(o);\n }\n}",
"public class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int a=sc.nextInt();\n int ans = a + a*a + a*a*a;\n lp(ans);\n }\n public static void lp(Object o){\n System.out.println(o);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a=sc.nextInt();
int ans = a + a*a + a*a*a;
lp(ans);
}
public static void lp(Object o){
System.out.println(o);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
17,
2,
2,
13,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
29,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
46,
5
],
[
46,
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
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
25,
29
],
[
30,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
32,
36
],
[
30,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
37,
41
],
[
8,
42
],
[
6,
43
],
[
43,
44
],
[
0,
45
],
[
45,
46
],
[
45,
47
]
]
| [
"import java.io.*;\n// import java.math.*;\n// import java.util.*;\n// import java.util.Map.*;\n// import java.util.stream.*;\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 a = Integer.parseInt (reader.readLine());\n System.out.println (\n String.format (\"%.0f\", a + Math.pow (a, 2) + Math.pow (a, 3)));\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 a = Integer.parseInt (reader.readLine());\n System.out.println (\n String.format (\"%.0f\", a + Math.pow (a, 2) + Math.pow (a, 3)));\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 a = Integer.parseInt (reader.readLine());\n System.out.println (\n String.format (\"%.0f\", a + Math.pow (a, 2) + Math.pow (a, 3)));\n return;\n }",
"main",
"{\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n int a = Integer.parseInt (reader.readLine());\n System.out.println (\n String.format (\"%.0f\", a + Math.pow (a, 2) + Math.pow (a, 3)));\n return;\n }",
"BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));",
"reader",
"new BufferedReader (new InputStreamReader (System.in))",
"int a = Integer.parseInt (reader.readLine());",
"a",
"Integer.parseInt (reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"System.out.println (\n String.format (\"%.0f\", a + Math.pow (a, 2) + Math.pow (a, 3)))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format (\"%.0f\", a + Math.pow (a, 2) + Math.pow (a, 3))",
"String.format",
"String",
"\"%.0f\"",
"a + Math.pow (a, 2) + Math.pow (a, 3)",
"a + Math.pow (a, 2) + Math.pow (a, 3)",
"a",
"Math.pow (a, 2)",
"Math.pow",
"Math",
"a",
"2",
"Math.pow (a, 3)",
"Math.pow",
"Math",
"a",
"3",
"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 a = Integer.parseInt (reader.readLine());\n System.out.println (\n String.format (\"%.0f\", a + Math.pow (a, 2) + Math.pow (a, 3)));\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 a = Integer.parseInt (reader.readLine());\n System.out.println (\n String.format (\"%.0f\", a + Math.pow (a, 2) + Math.pow (a, 3)));\n return;\n }\n}",
"Main"
]
| import java.io.*;
// import java.math.*;
// import java.util.*;
// import java.util.Map.*;
// import java.util.stream.*;
public class Main {
public static void main (String[] args) throws Exception {
BufferedReader reader =
new BufferedReader (new InputStreamReader (System.in));
int a = Integer.parseInt (reader.readLine());
System.out.println (
String.format ("%.0f", a + Math.pow (a, 2) + Math.pow (a, 3)));
return;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
228,
14
],
[
228,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
20,
22
],
[
17,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
17,
28
],
[
28,
29
],
[
28,
30
],
[
17,
31
],
[
31,
32
],
[
31,
33
],
[
17,
34
],
[
34,
35
],
[
34,
36
],
[
17,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
37,
41
],
[
37,
42
],
[
17,
43
],
[
43,
44
],
[
44,
45
],
[
15,
46
],
[
46,
47
],
[
228,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
64,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
70,
70
],
[
70,
71
],
[
70,
72
],
[
70,
73
],
[
50,
74
],
[
74,
75
],
[
50,
76
],
[
76,
77
],
[
50,
78
],
[
78,
79
],
[
228,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
80,
84
],
[
84,
85
],
[
84,
86
],
[
80,
88
],
[
88,
89
],
[
80,
90
],
[
90,
91
],
[
80,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
92,
100
],
[
100,
101
],
[
80,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
105,
110
],
[
110,
111
],
[
104,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
120,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
116,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
137,
138
],
[
138,
139
],
[
104,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
80,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
147,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
147,
160
],
[
160,
161
],
[
160,
162
],
[
147,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
147,
176
],
[
176,
177
],
[
176,
178
],
[
147,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
179,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
184,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
190,
192
],
[
184,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
147,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
80,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
204,
205
],
[
208,
206
],
[
218,
207
],
[
215,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
212,
213
],
[
212,
214
],
[
215,
215
],
[
215,
216
],
[
215,
217
],
[
218,
218
],
[
218,
219
],
[
218,
220
],
[
208,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
201,
225
],
[
225,
226
],
[
0,
227
],
[
227,
228
],
[
227,
229
]
]
| [
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Spandan Mishra\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 ACalc solver = new ACalc();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ACalc {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.readInt();\n System.out.println(n + n * n + n * n * n);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n }\n}\n",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"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 ACalc solver = new ACalc();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ACalc {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.readInt();\n System.out.println(n + n * n + n * n * n);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\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 ACalc solver = new ACalc();\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 ACalc solver = new ACalc();\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)",
"ACalc solver = new ACalc();",
"solver",
"new ACalc()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class ACalc {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.readInt();\n System.out.println(n + n * n + n * n * n);\n }\n\n }",
"ACalc",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.readInt();\n System.out.println(n + n * n + n * n * n);\n }",
"solve",
"{\n int n = in.readInt();\n System.out.println(n + n * n + n * n * n);\n }",
"int n = in.readInt();",
"n",
"in.readInt()",
"in.readInt",
"in",
"System.out.println(n + n * n + n * n * n)",
"System.out.println",
"System.out",
"System",
"System.out",
"n + n * n + n * n * n",
"n + n * n + n * n * n",
"n",
"n * n",
"n",
"n",
"n * n * n",
"n * n * n",
"n",
"n",
"n",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"PrintWriter out",
"out",
"static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n }",
"InputReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"public InputReader(InputStream stream) {\n this.stream = stream;\n }",
"InputReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"if (numChars == -1)\n throw new RuntimeException();",
"numChars == -1",
"numChars",
"-1",
"1",
"throw new RuntimeException();",
"new RuntimeException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }",
"catch (IOException e) {\n throw new RuntimeException();\n }",
"IOException e",
"{\n throw new RuntimeException();\n }",
"throw new RuntimeException();",
"new RuntimeException()",
"{\n numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0)\n return -1;",
"numChars <= 0",
"numChars",
"0",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public int readInt() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"readInt",
"{\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"int res = 0;",
"res",
"0",
"do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res *= 10;\n res += c - '0';\n c = read();\n }",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isSpaceChar",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public 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 ACalc solver = new ACalc();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ACalc {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.readInt();\n System.out.println(n + n * n + n * n * n);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\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 ACalc solver = new ACalc();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ACalc {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.readInt();\n System.out.println(n + n * n + n * n * n);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n }\n}",
"Main"
]
| import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Spandan Mishra
*/
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);
ACalc solver = new ACalc();
solver.solve(1, in, out);
out.close();
}
static class ACalc {
public void solve(int testNumber, InputReader in, PrintWriter out) {
int n = in.readInt();
System.out.println(n + n * n + n * n * n);
}
}
static class InputReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
public InputReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1)
throw new RuntimeException();
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new RuntimeException();
}
if (numChars <= 0)
return -1;
}
return buf[curChar++];
}
public int readInt() {
int c = read();
while (isSpaceChar(c))
c = read();
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
int res = 0;
do {
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public boolean isSpaceChar(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
13,
0,
13,
2,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
40,
5
],
[
40,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
27,
27
],
[
27,
28
],
[
27,
29
],
[
27,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
6,
37
],
[
37,
38
],
[
0,
39
],
[
39,
40
],
[
39,
41
]
]
| [
"import java.util.Scanner;\n\n/**\n *\n * @author HP\n */\npublic class Main {\n public static void main(String[] args) {\n Scanner s= new Scanner(System.in);\n int a = s.nextInt();\n long res = a;\n res += a*a +a*a*a;\n System.out.println(res);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner s= new Scanner(System.in);\n int a = s.nextInt();\n long res = a;\n res += a*a +a*a*a;\n System.out.println(res);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner s= new Scanner(System.in);\n int a = s.nextInt();\n long res = a;\n res += a*a +a*a*a;\n System.out.println(res);\n }",
"main",
"{\n Scanner s= new Scanner(System.in);\n int a = s.nextInt();\n long res = a;\n res += a*a +a*a*a;\n System.out.println(res);\n }",
"Scanner s= new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int a = s.nextInt();",
"a",
"s.nextInt()",
"s.nextInt",
"s",
"long res = a;",
"res",
"a",
"res += a*a +a*a*a",
"res",
"a*a +a*a*a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"System.out.println(res)",
"System.out.println",
"System.out",
"System",
"System.out",
"res",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner s= new Scanner(System.in);\n int a = s.nextInt();\n long res = a;\n res += a*a +a*a*a;\n System.out.println(res);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner s= new Scanner(System.in);\n int a = s.nextInt();\n long res = a;\n res += a*a +a*a*a;\n System.out.println(res);\n }\n}",
"Main"
]
| import java.util.Scanner;
/**
*
* @author HP
*/
public class Main {
public static void main(String[] args) {
Scanner s= new Scanner(System.in);
int a = s.nextInt();
long res = a;
res += a*a +a*a*a;
System.out.println(res);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
44,
5
],
[
44,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
31,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
37,
37
],
[
37,
38
],
[
37,
39
],
[
37,
40
],
[
6,
41
],
[
41,
42
],
[
0,
43
],
[
43,
44
],
[
43,
45
]
]
| [
"import java.util.*;\npublic class Main {\n public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\tint a = sc.nextInt();\n \n if(a>=0 && a<=10) System.out.println(a+a*a+a*a*a);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\tint a = sc.nextInt();\n \n if(a>=0 && a<=10) System.out.println(a+a*a+a*a*a);\n }\n}",
"Main",
"public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\tint a = sc.nextInt();\n \n if(a>=0 && a<=10) System.out.println(a+a*a+a*a*a);\n }",
"main",
"{\n\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\tint a = sc.nextInt();\n \n if(a>=0 && a<=10) System.out.println(a+a*a+a*a*a);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(a>=0 && a<=10) System.out.println(a+a*a+a*a*a);",
"a>=0 && a<=10",
"a>=0",
"a",
"0",
"a<=10",
"a",
"10",
"System.out.println(a+a*a+a*a*a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a+a*a+a*a*a",
"a+a*a+a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\tint a = sc.nextInt();\n \n if(a>=0 && a<=10) System.out.println(a+a*a+a*a*a);\n }\n}",
"public class Main {\n public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\tint a = sc.nextInt();\n \n if(a>=0 && a<=10) System.out.println(a+a*a+a*a*a);\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();
if(a>=0 && a<=10) System.out.println(a+a*a+a*a*a);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
18,
20,
4,
18,
18,
13,
13,
2,
13,
2,
2,
13,
2,
13,
17,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
31,
5
],
[
31,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
14,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
21,
27
],
[
6,
28
],
[
28,
29
],
[
0,
30
],
[
30,
31
],
[
30,
32
]
]
| [
"import java.util.*;\npublic class Main{\npublic static void main(String[]args){\nint a=new Scanner(System.in).nextInt();\n System.out.println(a*(a*(a+1)+1));\n}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\npublic static void main(String[]args){\nint a=new Scanner(System.in).nextInt();\n System.out.println(a*(a*(a+1)+1));\n}\n}",
"Main",
"public static void main(String[]args){\nint a=new Scanner(System.in).nextInt();\n System.out.println(a*(a*(a+1)+1));\n}",
"main",
"{\nint a=new Scanner(System.in).nextInt();\n System.out.println(a*(a*(a+1)+1));\n}",
"int a=new Scanner(System.in).nextInt();",
"a",
"new Scanner(System.in).nextInt()",
"new Scanner(System.in).nextInt",
"new Scanner(System.in)",
"System.out.println(a*(a*(a+1)+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"a*(a*(a+1)+1)",
"a",
"(a*(a+1)+1)",
"a*(a+1)",
"a",
"(a+1)",
"a",
"1",
"1",
"String[]args",
"args",
"public class Main{\npublic static void main(String[]args){\nint a=new Scanner(System.in).nextInt();\n System.out.println(a*(a*(a+1)+1));\n}\n}",
"public class Main{\npublic static void main(String[]args){\nint a=new Scanner(System.in).nextInt();\n System.out.println(a*(a*(a+1)+1));\n}\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[]args){
int a=new Scanner(System.in).nextInt();
System.out.println(a*(a*(a+1)+1));
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
2,
13,
17,
4,
18,
13,
13,
17,
0,
18,
13,
17,
17,
0,
18,
13,
17,
17,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
18,
13,
13,
30,
11,
1,
41,
13,
2,
13,
13,
2,
13,
13,
1,
0,
13,
13,
30,
30,
0,
18,
13,
13,
17,
29,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
13,
11,
1,
41,
13,
17,
2,
2,
13,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
42,
2,
2,
13,
13,
17,
30,
0,
13,
13,
0,
13,
2,
13,
13,
14,
2,
13,
17,
30,
0,
13,
2,
13,
13,
29,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
2,
13,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
29,
17,
29,
17,
23,
13,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
2,
18,
13,
13,
17,
42,
2,
13,
13,
30,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
40,
13,
40,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
13,
0,
13,
2,
13,
13,
0,
13,
2,
2,
13,
13,
13,
4,
13,
13,
12,
13,
30,
14,
2,
2,
13,
17,
17,
30,
29,
13,
14,
2,
2,
13,
17,
17,
30,
29,
17,
14,
2,
2,
13,
17,
17,
30,
29,
2,
13,
17,
29,
17,
23,
13,
12,
13,
30,
29,
2,
4,
13,
13,
4,
13,
2,
13,
17,
23,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
18,
36,
13,
18,
13,
13,
23,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
571,
26
],
[
571,
27
],
[
27,
28
],
[
27,
29
],
[
571,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
36,
37
],
[
36,
38
],
[
32,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
39,
43
],
[
32,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
32,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
32,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
32,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
78,
85
],
[
85,
86
],
[
85,
87
],
[
78,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
78,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
32,
99
],
[
99,
100
],
[
30,
101
],
[
101,
102
],
[
571,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
111,
112
],
[
105,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
114,
117
],
[
117,
118
],
[
117,
119
],
[
103,
120
],
[
120,
121
],
[
103,
122
],
[
122,
123
],
[
571,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
130,
140
],
[
140,
141
],
[
141,
142
],
[
130,
143
],
[
144,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
145,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
152,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
151,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
164,
166
],
[
126,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
174,
176
],
[
126,
177
],
[
177,
178
],
[
124,
179
],
[
179,
180
],
[
571,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
184,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
184,
194
],
[
194,
195
],
[
195,
196
],
[
184,
197
],
[
198,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
200,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
199,
211
],
[
211,
212
],
[
212,
213
],
[
183,
214
],
[
214,
215
],
[
181,
216
],
[
216,
217
],
[
571,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
218,
224
],
[
224,
225
],
[
571,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
228,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
228,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
243,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
246,
248
],
[
243,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
253,
254
],
[
253,
255
],
[
243,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
256,
260
],
[
243,
261
],
[
261,
262
],
[
243,
263
],
[
263,
264
],
[
226,
265
],
[
265,
266
],
[
571,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
269,
274
],
[
274,
275
],
[
274,
276
],
[
269,
277
],
[
277,
278
],
[
277,
279
],
[
279,
280
],
[
279,
281
],
[
269,
282
],
[
282,
283
],
[
282,
284
],
[
285,
285
],
[
285,
286
],
[
285,
287
],
[
285,
288
],
[
269,
289
],
[
289,
290
],
[
289,
291
],
[
571,
292
],
[
292,
293
],
[
292,
294
],
[
294,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
297,
299
],
[
296,
300
],
[
295,
301
],
[
301,
302
],
[
302,
303
],
[
294,
304
],
[
304,
305
],
[
305,
306
],
[
306,
307
],
[
306,
308
],
[
305,
309
],
[
304,
310
],
[
310,
311
],
[
311,
312
],
[
294,
313
],
[
313,
314
],
[
314,
315
],
[
315,
316
],
[
315,
317
],
[
314,
318
],
[
313,
319
],
[
319,
320
],
[
320,
321
],
[
321,
322
],
[
321,
323
],
[
294,
324
],
[
324,
325
],
[
292,
326
],
[
326,
327
],
[
571,
328
],
[
328,
329
],
[
328,
330
],
[
330,
331
],
[
331,
332
],
[
332,
333
],
[
333,
334
],
[
333,
335
],
[
332,
336
],
[
336,
337
],
[
336,
338
],
[
338,
339
],
[
338,
340
],
[
328,
341
],
[
341,
342
],
[
328,
343
],
[
343,
344
],
[
571,
345
],
[
345,
346
],
[
345,
347
],
[
347,
348
],
[
348,
349
],
[
349,
350
],
[
350,
351
],
[
350,
352
],
[
348,
353
],
[
345,
354
],
[
354,
355
],
[
571,
356
],
[
356,
357
],
[
356,
358
],
[
358,
359
],
[
359,
360
],
[
360,
361
],
[
361,
362
],
[
361,
363
],
[
359,
364
],
[
356,
365
],
[
365,
366
],
[
571,
367
],
[
367,
368
],
[
367,
369
],
[
369,
370
],
[
370,
371
],
[
371,
372
],
[
372,
373
],
[
372,
374
],
[
370,
375
],
[
367,
376
],
[
376,
377
],
[
571,
378
],
[
378,
379
],
[
378,
380
],
[
380,
381
],
[
381,
382
],
[
381,
383
],
[
380,
384
],
[
384,
385
],
[
384,
386
],
[
380,
387
],
[
387,
388
],
[
387,
389
],
[
378,
390
],
[
390,
391
],
[
378,
392
],
[
392,
393
],
[
571,
394
],
[
394,
395
],
[
394,
396
],
[
396,
397
],
[
397,
398
],
[
398,
399
],
[
399,
400
],
[
398,
401
],
[
398,
402
],
[
394,
403
],
[
403,
404
],
[
394,
405
],
[
405,
406
],
[
571,
407
],
[
407,
408
],
[
407,
409
],
[
409,
410
],
[
410,
411
],
[
411,
412
],
[
412,
413
],
[
411,
414
],
[
411,
415
],
[
407,
416
],
[
416,
417
],
[
407,
418
],
[
418,
419
],
[
571,
420
],
[
420,
421
],
[
420,
422
],
[
422,
423
],
[
423,
424
],
[
424,
425
],
[
425,
426
],
[
424,
427
],
[
427,
428
],
[
428,
429
],
[
571,
430
],
[
430,
431
],
[
430,
432
],
[
432,
433
],
[
433,
434
],
[
434,
435
],
[
435,
436
],
[
434,
437
],
[
437,
438
],
[
438,
439
],
[
571,
440
],
[
440,
441
],
[
440,
442
],
[
442,
443
],
[
443,
444
],
[
444,
445
],
[
445,
446
],
[
444,
447
],
[
447,
448
],
[
448,
449
],
[
571,
450
],
[
450,
451
],
[
450,
452
],
[
452,
453
],
[
453,
454
],
[
454,
455
],
[
455,
456
],
[
571,
457
],
[
457,
458
],
[
457,
459
],
[
459,
460
],
[
460,
461
],
[
461,
462
],
[
462,
463
],
[
461,
464
],
[
457,
465
],
[
465,
466
],
[
571,
467
],
[
467,
468
],
[
467,
469
],
[
469,
470
],
[
467,
471
],
[
471,
472
],
[
467,
473
],
[
473,
474
],
[
473,
475
],
[
475,
476
],
[
476,
477
],
[
476,
478
],
[
473,
479
],
[
479,
480
],
[
467,
481
],
[
481,
482
],
[
481,
483
],
[
483,
484
],
[
484,
485
],
[
485,
486
],
[
486,
487
],
[
486,
488
],
[
485,
489
],
[
489,
490
],
[
490,
491
],
[
491,
492
],
[
484,
493
],
[
493,
494
],
[
494,
495
],
[
494,
496
],
[
483,
497
],
[
497,
498
],
[
498,
499
],
[
499,
500
],
[
467,
501
],
[
501,
502
],
[
501,
503
],
[
503,
504
],
[
504,
505
],
[
505,
506
],
[
506,
507
],
[
505,
508
],
[
508,
509
],
[
467,
510
],
[
510,
511
],
[
510,
512
],
[
512,
513
],
[
513,
514
],
[
514,
515
],
[
515,
516
],
[
514,
517
],
[
517,
518
],
[
467,
519
],
[
519,
520
],
[
519,
521
],
[
521,
522
],
[
522,
523
],
[
523,
524
],
[
524,
525
],
[
467,
526
],
[
526,
527
],
[
526,
528
],
[
528,
529
],
[
529,
530
],
[
530,
531
],
[
531,
532
],
[
0,
533
],
[
533,
534
],
[
533,
535
],
[
535,
536
],
[
533,
537
],
[
537,
538
],
[
533,
539
],
[
539,
540
],
[
539,
541
],
[
541,
542
],
[
542,
543
],
[
543,
544
],
[
543,
545
],
[
542,
546
],
[
541,
547
],
[
547,
548
],
[
548,
549
],
[
548,
550
],
[
547,
551
],
[
539,
552
],
[
552,
553
],
[
539,
554
],
[
554,
555
],
[
533,
556
],
[
556,
557
],
[
556,
558
],
[
558,
559
],
[
559,
560
],
[
560,
561
],
[
561,
562
],
[
561,
563
],
[
560,
564
],
[
564,
565
],
[
564,
566
],
[
556,
567
],
[
567,
568
],
[
533,
569
],
[
0,
570
],
[
570,
571
],
[
570,
572
]
]
| [
"import java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.BufferedReader;\nimport java.util.*;\nimport java.math.*;\nimport java.io.*;\nimport java.text.*;\nimport java.math.BigInteger;\n\npublic class Main\n{ \n\n //Life's a bitch\n public static boolean[] sieve(long n)\n {\n boolean[] prime = new boolean[(int)n+1];\n Arrays.fill(prime,true);\n prime[0] = false;\n prime[1] = false;\n long m = (long)Math.sqrt(n);\n for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }\n return prime;\n } \n\n \n static long GCD(long a,long b)\n {\n if(b==0)\n {\n return a;\n }\n return GCD(b,a%b);\n }\n\n static long CountCoPrimes(long n)\n {\n long res = n;\n for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }\n if(n>1)\n {\n res-=res/n;\n }\n return res;\n }\n\n\n \n\n \n\n static boolean prime(int n)\n {\n for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }\n return true;\n }\n\n \n\n\n \n \n \n public static void main(String[] args) throws IOException\n {\n \n new Main().run();\n \n }\n\n\n \n\n static void reverse(char[] a)\n {\n // char[] a = c.toCharArray();\n int start=0;\n int end = a.length-1;\n while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }\n }\n\n \n\n\n \n \n Scanner in = new Scanner(System.in);\n void run() throws IOException\n {\n long n = nl();\n long a = n;\n n += a*a;\n n+=a*a*a;\n printL(n);\n\n }\n\n\n \n\n\n\n \n\n \n\n //xor range query\n static long xor(long n)\n {\n\n if(n%4==0)\n {\n return n;\n }\n if(n%4==1)\n {\n return 1;\n }\n if(n%4==2)\n {\n return n+1;\n }\n return 0;\n }\n\n static long xor(long a,long b)\n {\n return xor(b)^xor(a-1);\n }\n\n\n \n\n \n \n \n\n \n \n \n\n \n \n \n\n\n\n \n\n void printL(long a)\n {\n System.out.println(a);\n }\n void printS(String s)\n {\n System.out.println(s);\n }\n\n void printD(Double d)\n {\n System.out.println(d);\n }\n \n \n \n static void swap(char c,char p)\n {\n char t = c;\n c = p;\n p = t;\n }\n\n static long max(long n,long m)\n {\n return Math.max(n,m);\n }\n static long min(long n,long m)\n {\n return Math.min(n,m);\n }\n\n double nd() throws IOException\n {\n return Double.parseDouble(in.next());\n }\n int ni() throws IOException\n {\n return Integer.parseInt(in.next());\n }\n\n long nl() throws IOException\n {\n return Long.parseLong(in.next());\n }\n\n String si() throws IOException\n {\n return in.next();\n }\n\n\n \n \n static int abs(int n)\n {\n return Math.abs(n);\n }\n\n static class Scanner \n {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException \n {\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n \n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n }\n\n \n}\n\n\n\nclass Pair implements Comparable<Pair>\n{\n int x,y;\n public Pair(int x,int y)\n {\n this.x = x;\n this.y = y;\n }\n public int compareTo(Pair o)\n {\n return this.y-o.y;\n }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.text.*;",
"text.*",
"java",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main\n{ \n\n //Life's a bitch\n public static boolean[] sieve(long n)\n {\n boolean[] prime = new boolean[(int)n+1];\n Arrays.fill(prime,true);\n prime[0] = false;\n prime[1] = false;\n long m = (long)Math.sqrt(n);\n for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }\n return prime;\n } \n\n \n static long GCD(long a,long b)\n {\n if(b==0)\n {\n return a;\n }\n return GCD(b,a%b);\n }\n\n static long CountCoPrimes(long n)\n {\n long res = n;\n for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }\n if(n>1)\n {\n res-=res/n;\n }\n return res;\n }\n\n\n \n\n \n\n static boolean prime(int n)\n {\n for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }\n return true;\n }\n\n \n\n\n \n \n \n public static void main(String[] args) throws IOException\n {\n \n new Main().run();\n \n }\n\n\n \n\n static void reverse(char[] a)\n {\n // char[] a = c.toCharArray();\n int start=0;\n int end = a.length-1;\n while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }\n }\n\n \n\n\n \n \n Scanner in = new Scanner(System.in);\n void run() throws IOException\n {\n long n = nl();\n long a = n;\n n += a*a;\n n+=a*a*a;\n printL(n);\n\n }\n\n\n \n\n\n\n \n\n \n\n //xor range query\n static long xor(long n)\n {\n\n if(n%4==0)\n {\n return n;\n }\n if(n%4==1)\n {\n return 1;\n }\n if(n%4==2)\n {\n return n+1;\n }\n return 0;\n }\n\n static long xor(long a,long b)\n {\n return xor(b)^xor(a-1);\n }\n\n\n \n\n \n \n \n\n \n \n \n\n \n \n \n\n\n\n \n\n void printL(long a)\n {\n System.out.println(a);\n }\n void printS(String s)\n {\n System.out.println(s);\n }\n\n void printD(Double d)\n {\n System.out.println(d);\n }\n \n \n \n static void swap(char c,char p)\n {\n char t = c;\n c = p;\n p = t;\n }\n\n static long max(long n,long m)\n {\n return Math.max(n,m);\n }\n static long min(long n,long m)\n {\n return Math.min(n,m);\n }\n\n double nd() throws IOException\n {\n return Double.parseDouble(in.next());\n }\n int ni() throws IOException\n {\n return Integer.parseInt(in.next());\n }\n\n long nl() throws IOException\n {\n return Long.parseLong(in.next());\n }\n\n String si() throws IOException\n {\n return in.next();\n }\n\n\n \n \n static int abs(int n)\n {\n return Math.abs(n);\n }\n\n static class Scanner \n {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException \n {\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n \n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n }\n\n \n}",
"Main",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"//Life's a bitch\n public static boolean[] sieve(long n)\n {\n boolean[] prime = new boolean[(int)n+1];\n Arrays.fill(prime,true);\n prime[0] = false;\n prime[1] = false;\n long m = (long)Math.sqrt(n);\n for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }\n return prime;\n }",
"sieve",
"{\n boolean[] prime = new boolean[(int)n+1];\n Arrays.fill(prime,true);\n prime[0] = false;\n prime[1] = false;\n long m = (long)Math.sqrt(n);\n for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }\n return prime;\n }",
"boolean[] prime = new boolean[(int)n+1];",
"prime",
"new boolean[(int)n+1]",
"(int)n+1",
"(int)n",
"1",
"Arrays.fill(prime,true)",
"Arrays.fill",
"Arrays",
"prime",
"true",
"prime[0] = false",
"prime[0]",
"prime",
"0",
"false",
"prime[1] = false",
"prime[1]",
"prime",
"1",
"false",
"long m = (long)Math.sqrt(n);",
"m",
"(long)Math.sqrt(n)",
"Math.sqrt",
"Math",
"n",
"for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }",
"int i=2;",
"int i=2;",
"i",
"2",
"i<=m",
"i",
"m",
"i++",
"i++",
"i",
"{\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }",
"{\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }",
"if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }",
"prime[i]",
"prime",
"i",
"{\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }",
"for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }",
"int k=i*i;",
"int k=i*i;",
"k",
"i*i",
"i",
"i",
"k<=n",
"k",
"n",
"k+=i",
"k+=i",
"k",
"i",
"{\n prime[k] = false;\n }",
"{\n prime[k] = false;\n }",
"prime[k] = false",
"prime[k]",
"prime",
"k",
"false",
"return prime;",
"prime",
"long n",
"n",
"static long GCD(long a,long b)\n {\n if(b==0)\n {\n return a;\n }\n return GCD(b,a%b);\n }",
"GCD",
"{\n if(b==0)\n {\n return a;\n }\n return GCD(b,a%b);\n }",
"if(b==0)\n {\n return a;\n }",
"b==0",
"b",
"0",
"{\n return a;\n }",
"return a;",
"a",
"return GCD(b,a%b);",
"GCD(b,a%b)",
"GCD",
"b",
"a%b",
"a",
"b",
"long a",
"a",
"long b",
"b",
"static long CountCoPrimes(long n)\n {\n long res = n;\n for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }\n if(n>1)\n {\n res-=res/n;\n }\n return res;\n }",
"CountCoPrimes",
"{\n long res = n;\n for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }\n if(n>1)\n {\n res-=res/n;\n }\n return res;\n }",
"long res = n;",
"res",
"n",
"for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }",
"int i=2;",
"int i=2;",
"i",
"2",
"i*i<=n",
"i*i",
"i",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }",
"{\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }",
"if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }",
"n%i==0",
"n%i",
"n",
"i",
"0",
"{\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }",
"while(n%i==0)\n {\n n/=i;\n }",
"n%i==0",
"n%i",
"n",
"i",
"0",
"{\n n/=i;\n }",
"n/=i",
"n",
"i",
"res-=res/i",
"res",
"res/i",
"res",
"i",
"if(n>1)\n {\n res-=res/n;\n }",
"n>1",
"n",
"1",
"{\n res-=res/n;\n }",
"res-=res/n",
"res",
"res/n",
"res",
"n",
"return res;",
"res",
"long n",
"n",
"static boolean prime(int n)\n {\n for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }\n return true;\n }",
"prime",
"{\n for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }\n return true;\n }",
"for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }",
"int i=2;",
"int i=2;",
"i",
"2",
"i*i<=n",
"i*i",
"i",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }",
"{\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }",
"if(i%2==0 ||i%3==0)\n {\n return false;\n }",
"i%2==0 ||i%3==0",
"i%2==0",
"i%2",
"i",
"2",
"0",
"i%3==0",
"i%3",
"i",
"3",
"0",
"{\n return false;\n }",
"return false;",
"false",
"return true;",
"true",
"int n",
"n",
"public static void main(String[] args) throws IOException\n {\n \n new Main().run();\n \n }",
"main",
"{\n \n new Main().run();\n \n }",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"static void reverse(char[] a)\n {\n // char[] a = c.toCharArray();\n int start=0;\n int end = a.length-1;\n while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }\n }",
"reverse",
"{\n // char[] a = c.toCharArray();\n int start=0;\n int end = a.length-1;\n while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }\n }",
"int start=0;",
"start",
"0",
"int end = a.length-1;",
"end",
"a.length-1",
"a.length",
"a",
"a.length",
"1",
"while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }",
"start!=end",
"start",
"end",
"{\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }",
"char temp = a[start];",
"temp",
"a[start]",
"a",
"start",
"a[start] = a[end]",
"a[start]",
"a",
"start",
"a[end]",
"a",
"end",
"a[end] = temp",
"a[end]",
"a",
"end",
"temp",
"start++",
"start",
"end--",
"end",
"char[] a",
"a",
"void run() throws IOException\n {\n long n = nl();\n long a = n;\n n += a*a;\n n+=a*a*a;\n printL(n);\n\n }",
"run",
"{\n long n = nl();\n long a = n;\n n += a*a;\n n+=a*a*a;\n printL(n);\n\n }",
"long n = nl();",
"n",
"nl()",
"nl",
"long a = n;",
"a",
"n",
"n += a*a",
"n",
"a*a",
"a",
"a",
"n+=a*a*a",
"n",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"printL(n)",
"printL",
"n",
"//xor range query\n static long xor(long n)\n {\n\n if(n%4==0)\n {\n return n;\n }\n if(n%4==1)\n {\n return 1;\n }\n if(n%4==2)\n {\n return n+1;\n }\n return 0;\n }",
"xor",
"{\n\n if(n%4==0)\n {\n return n;\n }\n if(n%4==1)\n {\n return 1;\n }\n if(n%4==2)\n {\n return n+1;\n }\n return 0;\n }",
"if(n%4==0)\n {\n return n;\n }",
"n%4==0",
"n%4",
"n",
"4",
"0",
"{\n return n;\n }",
"return n;",
"n",
"if(n%4==1)\n {\n return 1;\n }",
"n%4==1",
"n%4",
"n",
"4",
"1",
"{\n return 1;\n }",
"return 1;",
"1",
"if(n%4==2)\n {\n return n+1;\n }",
"n%4==2",
"n%4",
"n",
"4",
"2",
"{\n return n+1;\n }",
"return n+1;",
"n+1",
"n",
"1",
"return 0;",
"0",
"long n",
"n",
"static long xor(long a,long b)\n {\n return xor(b)^xor(a-1);\n }",
"xor",
"{\n return xor(b)^xor(a-1);\n }",
"return xor(b)^xor(a-1);",
"xor(b)^xor(a-1)",
"xor(b)",
"xor",
"b",
"xor(a-1)",
"xor",
"a-1",
"a",
"1",
"long a",
"a",
"long b",
"b",
"void printL(long a)\n {\n System.out.println(a);\n }",
"printL",
"{\n System.out.println(a);\n }",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"long a",
"a",
"void printS(String s)\n {\n System.out.println(s);\n }",
"printS",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String s",
"s",
"void printD(Double d)\n {\n System.out.println(d);\n }",
"printD",
"{\n System.out.println(d);\n }",
"System.out.println(d)",
"System.out.println",
"System.out",
"System",
"System.out",
"d",
"Double d",
"d",
"static void swap(char c,char p)\n {\n char t = c;\n c = p;\n p = t;\n }",
"swap",
"{\n char t = c;\n c = p;\n p = t;\n }",
"char t = c;",
"t",
"c",
"c = p",
"c",
"p",
"p = t",
"p",
"t",
"char c",
"c",
"char p",
"p",
"static long max(long n,long m)\n {\n return Math.max(n,m);\n }",
"max",
"{\n return Math.max(n,m);\n }",
"return Math.max(n,m);",
"Math.max(n,m)",
"Math.max",
"Math",
"n",
"m",
"long n",
"n",
"long m",
"m",
"static long min(long n,long m)\n {\n return Math.min(n,m);\n }",
"min",
"{\n return Math.min(n,m);\n }",
"return Math.min(n,m);",
"Math.min(n,m)",
"Math.min",
"Math",
"n",
"m",
"long n",
"n",
"long m",
"m",
"double nd() throws IOException\n {\n return Double.parseDouble(in.next());\n }",
"nd",
"{\n return Double.parseDouble(in.next());\n }",
"return Double.parseDouble(in.next());",
"Double.parseDouble(in.next())",
"Double.parseDouble",
"Double",
"in.next()",
"in.next",
"in",
"int ni() throws IOException\n {\n return Integer.parseInt(in.next());\n }",
"ni",
"{\n return Integer.parseInt(in.next());\n }",
"return Integer.parseInt(in.next());",
"Integer.parseInt(in.next())",
"Integer.parseInt",
"Integer",
"in.next()",
"in.next",
"in",
"long nl() throws IOException\n {\n return Long.parseLong(in.next());\n }",
"nl",
"{\n return Long.parseLong(in.next());\n }",
"return Long.parseLong(in.next());",
"Long.parseLong(in.next())",
"Long.parseLong",
"Long",
"in.next()",
"in.next",
"in",
"String si() throws IOException\n {\n return in.next();\n }",
"si",
"{\n return in.next();\n }",
"return in.next();",
"in.next()",
"in.next",
"in",
"static int abs(int n)\n {\n return Math.abs(n);\n }",
"abs",
"{\n return Math.abs(n);\n }",
"return Math.abs(n);",
"Math.abs(n)",
"Math.abs",
"Math",
"n",
"int n",
"n",
"static class Scanner \n {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException \n {\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n \n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n }",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}",
"Scanner",
"{ br = new BufferedReader(new InputStreamReader(s));}",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"public String next() throws IOException \n {\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() throws IOException {return Integer.parseInt(next());}",
"nextInt",
"{return Integer.parseInt(next());}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() throws IOException {return Long.parseLong(next());}",
"nextLong",
"{return Long.parseLong(next());}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public String nextLine() throws IOException {return br.readLine();}",
"nextLine",
"{return br.readLine();}",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public boolean ready() throws IOException {return br.ready();}",
"ready",
"{return br.ready();}",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"class Pair implements Comparable<Pair>\n{\n int x,y;\n public Pair(int x,int y)\n {\n this.x = x;\n this.y = y;\n }\n public int compareTo(Pair o)\n {\n return this.y-o.y;\n }\n}",
"Pair",
"int x",
"x",
"y;",
"y",
"public Pair(int x,int y)\n {\n this.x = x;\n this.y = y;\n }",
"Pair",
"{\n this.x = x;\n this.y = y;\n }",
"this.x = x",
"this.x",
"this",
"this.x",
"x",
"this.y = y",
"this.y",
"this",
"this.y",
"y",
"int x",
"x",
"int y",
"y",
"public int compareTo(Pair o)\n {\n return this.y-o.y;\n }",
"compareTo",
"{\n return this.y-o.y;\n }",
"return this.y-o.y;",
"this.y-o.y",
"this.y",
"this",
"this.y",
"o.y",
"o",
"o.y",
"Pair o",
"o",
"Comparable",
"public class Main\n{ \n\n //Life's a bitch\n public static boolean[] sieve(long n)\n {\n boolean[] prime = new boolean[(int)n+1];\n Arrays.fill(prime,true);\n prime[0] = false;\n prime[1] = false;\n long m = (long)Math.sqrt(n);\n for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }\n return prime;\n } \n\n \n static long GCD(long a,long b)\n {\n if(b==0)\n {\n return a;\n }\n return GCD(b,a%b);\n }\n\n static long CountCoPrimes(long n)\n {\n long res = n;\n for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }\n if(n>1)\n {\n res-=res/n;\n }\n return res;\n }\n\n\n \n\n \n\n static boolean prime(int n)\n {\n for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }\n return true;\n }\n\n \n\n\n \n \n \n public static void main(String[] args) throws IOException\n {\n \n new Main().run();\n \n }\n\n\n \n\n static void reverse(char[] a)\n {\n // char[] a = c.toCharArray();\n int start=0;\n int end = a.length-1;\n while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }\n }\n\n \n\n\n \n \n Scanner in = new Scanner(System.in);\n void run() throws IOException\n {\n long n = nl();\n long a = n;\n n += a*a;\n n+=a*a*a;\n printL(n);\n\n }\n\n\n \n\n\n\n \n\n \n\n //xor range query\n static long xor(long n)\n {\n\n if(n%4==0)\n {\n return n;\n }\n if(n%4==1)\n {\n return 1;\n }\n if(n%4==2)\n {\n return n+1;\n }\n return 0;\n }\n\n static long xor(long a,long b)\n {\n return xor(b)^xor(a-1);\n }\n\n\n \n\n \n \n \n\n \n \n \n\n \n \n \n\n\n\n \n\n void printL(long a)\n {\n System.out.println(a);\n }\n void printS(String s)\n {\n System.out.println(s);\n }\n\n void printD(Double d)\n {\n System.out.println(d);\n }\n \n \n \n static void swap(char c,char p)\n {\n char t = c;\n c = p;\n p = t;\n }\n\n static long max(long n,long m)\n {\n return Math.max(n,m);\n }\n static long min(long n,long m)\n {\n return Math.min(n,m);\n }\n\n double nd() throws IOException\n {\n return Double.parseDouble(in.next());\n }\n int ni() throws IOException\n {\n return Integer.parseInt(in.next());\n }\n\n long nl() throws IOException\n {\n return Long.parseLong(in.next());\n }\n\n String si() throws IOException\n {\n return in.next();\n }\n\n\n \n \n static int abs(int n)\n {\n return Math.abs(n);\n }\n\n static class Scanner \n {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException \n {\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n \n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n }\n\n \n}",
"public class Main\n{ \n\n //Life's a bitch\n public static boolean[] sieve(long n)\n {\n boolean[] prime = new boolean[(int)n+1];\n Arrays.fill(prime,true);\n prime[0] = false;\n prime[1] = false;\n long m = (long)Math.sqrt(n);\n for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }\n return prime;\n } \n\n \n static long GCD(long a,long b)\n {\n if(b==0)\n {\n return a;\n }\n return GCD(b,a%b);\n }\n\n static long CountCoPrimes(long n)\n {\n long res = n;\n for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }\n if(n>1)\n {\n res-=res/n;\n }\n return res;\n }\n\n\n \n\n \n\n static boolean prime(int n)\n {\n for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }\n return true;\n }\n\n \n\n\n \n \n \n public static void main(String[] args) throws IOException\n {\n \n new Main().run();\n \n }\n\n\n \n\n static void reverse(char[] a)\n {\n // char[] a = c.toCharArray();\n int start=0;\n int end = a.length-1;\n while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }\n }\n\n \n\n\n \n \n Scanner in = new Scanner(System.in);\n void run() throws IOException\n {\n long n = nl();\n long a = n;\n n += a*a;\n n+=a*a*a;\n printL(n);\n\n }\n\n\n \n\n\n\n \n\n \n\n //xor range query\n static long xor(long n)\n {\n\n if(n%4==0)\n {\n return n;\n }\n if(n%4==1)\n {\n return 1;\n }\n if(n%4==2)\n {\n return n+1;\n }\n return 0;\n }\n\n static long xor(long a,long b)\n {\n return xor(b)^xor(a-1);\n }\n\n\n \n\n \n \n \n\n \n \n \n\n \n \n \n\n\n\n \n\n void printL(long a)\n {\n System.out.println(a);\n }\n void printS(String s)\n {\n System.out.println(s);\n }\n\n void printD(Double d)\n {\n System.out.println(d);\n }\n \n \n \n static void swap(char c,char p)\n {\n char t = c;\n c = p;\n p = t;\n }\n\n static long max(long n,long m)\n {\n return Math.max(n,m);\n }\n static long min(long n,long m)\n {\n return Math.min(n,m);\n }\n\n double nd() throws IOException\n {\n return Double.parseDouble(in.next());\n }\n int ni() throws IOException\n {\n return Integer.parseInt(in.next());\n }\n\n long nl() throws IOException\n {\n return Long.parseLong(in.next());\n }\n\n String si() throws IOException\n {\n return in.next();\n }\n\n\n \n \n static int abs(int n)\n {\n return Math.abs(n);\n }\n\n static class Scanner \n {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException \n {\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n \n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n }\n\n \n}",
"Main"
]
| import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.util.*;
import java.math.*;
import java.io.*;
import java.text.*;
import java.math.BigInteger;
public class Main
{
//Life's a bitch
public static boolean[] sieve(long n)
{
boolean[] prime = new boolean[(int)n+1];
Arrays.fill(prime,true);
prime[0] = false;
prime[1] = false;
long m = (long)Math.sqrt(n);
for(int i=2;i<=m;i++)
{
if(prime[i])
{
for(int k=i*i;k<=n;k+=i)
{
prime[k] = false;
}
}
}
return prime;
}
static long GCD(long a,long b)
{
if(b==0)
{
return a;
}
return GCD(b,a%b);
}
static long CountCoPrimes(long n)
{
long res = n;
for(int i=2;i*i<=n;i++)
{
if(n%i==0)
{
while(n%i==0)
{
n/=i;
}
res-=res/i;
}
}
if(n>1)
{
res-=res/n;
}
return res;
}
static boolean prime(int n)
{
for(int i=2;i*i<=n;i++)
{
if(i%2==0 ||i%3==0)
{
return false;
}
}
return true;
}
public static void main(String[] args) throws IOException
{
new Main().run();
}
static void reverse(char[] a)
{
// char[] a = c.toCharArray();
int start=0;
int end = a.length-1;
while(start!=end)
{
char temp = a[start];
a[start] = a[end];
a[end] = temp;
start++;
end--;
}
}
Scanner in = new Scanner(System.in);
void run() throws IOException
{
long n = nl();
long a = n;
n += a*a;
n+=a*a*a;
printL(n);
}
//xor range query
static long xor(long n)
{
if(n%4==0)
{
return n;
}
if(n%4==1)
{
return 1;
}
if(n%4==2)
{
return n+1;
}
return 0;
}
static long xor(long a,long b)
{
return xor(b)^xor(a-1);
}
void printL(long a)
{
System.out.println(a);
}
void printS(String s)
{
System.out.println(s);
}
void printD(Double d)
{
System.out.println(d);
}
static void swap(char c,char p)
{
char t = c;
c = p;
p = t;
}
static long max(long n,long m)
{
return Math.max(n,m);
}
static long min(long n,long m)
{
return Math.min(n,m);
}
double nd() throws IOException
{
return Double.parseDouble(in.next());
}
int ni() throws IOException
{
return Integer.parseInt(in.next());
}
long nl() throws IOException
{
return Long.parseLong(in.next());
}
String si() throws IOException
{
return in.next();
}
static int abs(int n)
{
return Math.abs(n);
}
static class Scanner
{
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}
public String next() throws IOException
{
while (st == null || !st.hasMoreTokens())
{
st = new StringTokenizer(br.readLine());
}
return st.nextToken();
}
public int nextInt() throws IOException {return Integer.parseInt(next());}
public long nextLong() throws IOException {return Long.parseLong(next());}
public String nextLine() throws IOException {return br.readLine();}
public boolean ready() throws IOException {return br.ready();}
}
}
class Pair implements Comparable<Pair>
{
int x,y;
public Pair(int x,int y)
{
this.x = x;
this.y = y;
}
public int compareTo(Pair o)
{
return this.y-o.y;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
39,
5
],
[
39,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
6,
36
],
[
36,
37
],
[
0,
38
],
[
38,
39
],
[
38,
40
]
]
| [
"import java.io.*;\npublic class Main\n{\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t int n=Integer.parseInt(br.readLine());\n\t \n\t\tSystem.out.println(n+(n*n)+(n*n*n));\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main\n{\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t int n=Integer.parseInt(br.readLine());\n\t \n\t\tSystem.out.println(n+(n*n)+(n*n*n));\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException\n\t{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t int n=Integer.parseInt(br.readLine());\n\t \n\t\tSystem.out.println(n+(n*n)+(n*n*n));\n\t}",
"main",
"{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t int n=Integer.parseInt(br.readLine());\n\t \n\t\tSystem.out.println(n+(n*n)+(n*n*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",
"System.out.println(n+(n*n)+(n*n*n))",
"System.out.println",
"System.out",
"System",
"System.out",
"n+(n*n)+(n*n*n)",
"n+(n*n)+(n*n*n)",
"n",
"(n*n)",
"n",
"n",
"(n*n*n)",
"n*n*n",
"n",
"n",
"n",
"String[] args",
"args",
"public class Main\n{\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t int n=Integer.parseInt(br.readLine());\n\t \n\t\tSystem.out.println(n+(n*n)+(n*n*n));\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t int n=Integer.parseInt(br.readLine());\n\t \n\t\tSystem.out.println(n+(n*n)+(n*n*n));\n\t}\n}",
"Main"
]
| import java.io.*;
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());
System.out.println(n+(n*n)+(n*n*n));
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
40,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
41,
13,
20,
12,
13,
30,
41,
13,
4,
13,
4,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
0,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
0,
13,
20,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
0,
13,
20,
0,
13,
20,
23,
13,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
14,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
201,
11
],
[
201,
12
],
[
12,
13
],
[
201,
14
],
[
14,
15
],
[
201,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
201,
20
],
[
20,
21
],
[
20,
22
],
[
201,
23
],
[
23,
24
],
[
23,
25
],
[
201,
26
],
[
26,
27
],
[
26,
28
],
[
201,
29
],
[
29,
30
],
[
29,
31
],
[
201,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
42,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
48,
48
],
[
48,
49
],
[
48,
50
],
[
48,
51
],
[
201,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
55,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
69,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
201,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
86,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
83,
103
],
[
103,
104
],
[
201,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
105,
111
],
[
111,
112
],
[
201,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
116,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
122,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
115,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
201,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
147,
148
],
[
201,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
156,
157
],
[
201,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
162,
165
],
[
165,
166
],
[
201,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
170,
175
],
[
167,
176
],
[
176,
177
],
[
201,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
178,
187
],
[
187,
188
],
[
201,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
192,
197
],
[
189,
198
],
[
198,
199
],
[
0,
200
],
[
200,
201
],
[
200,
202
]
]
| [
"\n// Java program For handling Input/Output \nimport java.io.*;\nimport java.util.*;\nimport java.math.*;\n//import java.awt.*;\n\npublic class Main {\n BufferedReader br;\n StringTokenizer st;\n\n int max = -1;\n final long P = 998244353;\n final long P2 = 1000000007;\n\n HashSet<String> set = new HashSet<>();\n HashMap<Character, List<Integer>> map = new HashMap<>();\n\n // actual logic\n void solve() throws IOException {\n // int t = ni();\n // while (--t >= 0) {\n long a = nl();\n pl(a + a * a + a * a * a);\n // }\n\n }\n\n // constructor\n Main() {\n try {\n br = new BufferedReader(new InputStreamReader(System.in));\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n\n Main(String s) {\n try {\n br = new BufferedReader(new FileReader(s));\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n\n // main metohd\n public static void main(String[] args) throws IOException {\n new Main().solve();\n }\n\n // Utility methods\n\n String ns() {\n if (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n return st.nextToken();\n\n }\n\n int ni() {\n return Integer.parseInt(ns());\n }\n\n long nl() {\n return Long.parseLong(ns());\n }\n\n double nd() {\n return Double.parseDouble(ns());\n }\n\n void pl(String s) {\n System.out.println(s);\n }\n\n void pl(long s) {\n System.out.println(s);\n }\n\n void pl(double s) {\n System.out.println(s);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main {\n BufferedReader br;\n StringTokenizer st;\n\n int max = -1;\n final long P = 998244353;\n final long P2 = 1000000007;\n\n HashSet<String> set = new HashSet<>();\n HashMap<Character, List<Integer>> map = new HashMap<>();\n\n // actual logic\n void solve() throws IOException {\n // int t = ni();\n // while (--t >= 0) {\n long a = nl();\n pl(a + a * a + a * a * a);\n // }\n\n }\n\n // constructor\n Main() {\n try {\n br = new BufferedReader(new InputStreamReader(System.in));\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n\n Main(String s) {\n try {\n br = new BufferedReader(new FileReader(s));\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n\n // main metohd\n public static void main(String[] args) throws IOException {\n new Main().solve();\n }\n\n // Utility methods\n\n String ns() {\n if (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n return st.nextToken();\n\n }\n\n int ni() {\n return Integer.parseInt(ns());\n }\n\n long nl() {\n return Long.parseLong(ns());\n }\n\n double nd() {\n return Double.parseDouble(ns());\n }\n\n void pl(String s) {\n System.out.println(s);\n }\n\n void pl(long s) {\n System.out.println(s);\n }\n\n void pl(double s) {\n System.out.println(s);\n }\n}",
"Main",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"int max = -1;",
"max",
"-1",
"1",
"final long P = 998244353;",
"P",
"998244353",
"final long P2 = 1000000007;",
"P2",
"1000000007",
"HashSet<String> set = new HashSet<>();",
"set",
"new HashSet<>()",
"HashMap<Character, List<Integer>> map = new HashMap<>();",
"map",
"new HashMap<>()",
"// actual logic\n void solve() throws IOException {\n // int t = ni();\n // while (--t >= 0) {\n long a = nl();\n pl(a + a * a + a * a * a);\n // }\n\n }",
"solve",
"{\n // int t = ni();\n // while (--t >= 0) {\n long a = nl();\n pl(a + a * a + a * a * a);\n // }\n\n }",
"long a = nl();",
"a",
"nl()",
"nl",
"pl(a + a * a + a * a * a)",
"pl",
"a + a * a + a * a * a",
"a + a * a + a * a * a",
"a",
"a * a",
"a",
"a",
"a * a * a",
"a * a * a",
"a",
"a",
"a",
"// constructor\n Main() {\n try {\n br = new BufferedReader(new InputStreamReader(System.in));\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n } catch (Exception e) {\n System.out.println(e);\n }\n }",
"Main",
"{\n try {\n br = new BufferedReader(new InputStreamReader(System.in));\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n } catch (Exception e) {\n System.out.println(e);\n }\n }",
"try {\n br = new BufferedReader(new InputStreamReader(System.in));\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n } catch (Exception e) {\n System.out.println(e);\n }",
"catch (Exception e) {\n System.out.println(e);\n }",
"Exception e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }",
"catch (Exception e) {\n System.out.println(e);\n }",
"Exception e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"Main(String s) {\n try {\n br = new BufferedReader(new FileReader(s));\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n }",
"Main",
"{\n try {\n br = new BufferedReader(new FileReader(s));\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n }",
"try {\n br = new BufferedReader(new FileReader(s));\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }",
"catch (Exception e) {\n System.out.println(e);\n }",
"Exception e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n br = new BufferedReader(new FileReader(s));\n st = new StringTokenizer(br.readLine());\n }",
"br = new BufferedReader(new FileReader(s))",
"br",
"new BufferedReader(new FileReader(s))",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"String s",
"s",
"// main metohd\n public static void main(String[] args) throws IOException {\n new Main().solve();\n }",
"main",
"{\n new Main().solve();\n }",
"new Main().solve()",
"new Main().solve",
"new Main()",
"String[] args",
"args",
"String ns() {\n if (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n return st.nextToken();\n\n }",
"ns",
"{\n if (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n return st.nextToken();\n\n }",
"if (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n }",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }",
"catch (Exception e) {\n System.out.println(e);\n }",
"Exception e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int ni() {\n return Integer.parseInt(ns());\n }",
"ni",
"{\n return Integer.parseInt(ns());\n }",
"return Integer.parseInt(ns());",
"Integer.parseInt(ns())",
"Integer.parseInt",
"Integer",
"ns()",
"ns",
"long nl() {\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() {\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",
"void pl(String s) {\n System.out.println(s);\n }",
"pl",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String s",
"s",
"void pl(long s) {\n System.out.println(s);\n }",
"pl",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"long s",
"s",
"void pl(double s) {\n System.out.println(s);\n }",
"pl",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"double s",
"s",
"public class Main {\n BufferedReader br;\n StringTokenizer st;\n\n int max = -1;\n final long P = 998244353;\n final long P2 = 1000000007;\n\n HashSet<String> set = new HashSet<>();\n HashMap<Character, List<Integer>> map = new HashMap<>();\n\n // actual logic\n void solve() throws IOException {\n // int t = ni();\n // while (--t >= 0) {\n long a = nl();\n pl(a + a * a + a * a * a);\n // }\n\n }\n\n // constructor\n Main() {\n try {\n br = new BufferedReader(new InputStreamReader(System.in));\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n\n Main(String s) {\n try {\n br = new BufferedReader(new FileReader(s));\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n\n // main metohd\n public static void main(String[] args) throws IOException {\n new Main().solve();\n }\n\n // Utility methods\n\n String ns() {\n if (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n return st.nextToken();\n\n }\n\n int ni() {\n return Integer.parseInt(ns());\n }\n\n long nl() {\n return Long.parseLong(ns());\n }\n\n double nd() {\n return Double.parseDouble(ns());\n }\n\n void pl(String s) {\n System.out.println(s);\n }\n\n void pl(long s) {\n System.out.println(s);\n }\n\n void pl(double s) {\n System.out.println(s);\n }\n}",
"public class Main {\n BufferedReader br;\n StringTokenizer st;\n\n int max = -1;\n final long P = 998244353;\n final long P2 = 1000000007;\n\n HashSet<String> set = new HashSet<>();\n HashMap<Character, List<Integer>> map = new HashMap<>();\n\n // actual logic\n void solve() throws IOException {\n // int t = ni();\n // while (--t >= 0) {\n long a = nl();\n pl(a + a * a + a * a * a);\n // }\n\n }\n\n // constructor\n Main() {\n try {\n br = new BufferedReader(new InputStreamReader(System.in));\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n\n Main(String s) {\n try {\n br = new BufferedReader(new FileReader(s));\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n\n // main metohd\n public static void main(String[] args) throws IOException {\n new Main().solve();\n }\n\n // Utility methods\n\n String ns() {\n if (!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n return st.nextToken();\n\n }\n\n int ni() {\n return Integer.parseInt(ns());\n }\n\n long nl() {\n return Long.parseLong(ns());\n }\n\n double nd() {\n return Double.parseDouble(ns());\n }\n\n void pl(String s) {\n System.out.println(s);\n }\n\n void pl(long s) {\n System.out.println(s);\n }\n\n void pl(double s) {\n System.out.println(s);\n }\n}",
"Main"
]
|
// Java program For handling Input/Output
import java.io.*;
import java.util.*;
import java.math.*;
//import java.awt.*;
public class Main {
BufferedReader br;
StringTokenizer st;
int max = -1;
final long P = 998244353;
final long P2 = 1000000007;
HashSet<String> set = new HashSet<>();
HashMap<Character, List<Integer>> map = new HashMap<>();
// actual logic
void solve() throws IOException {
// int t = ni();
// while (--t >= 0) {
long a = nl();
pl(a + a * a + a * a * a);
// }
}
// constructor
Main() {
try {
br = new BufferedReader(new InputStreamReader(System.in));
try {
st = new StringTokenizer(br.readLine());
} catch (Exception e) {
System.out.println(e);
}
} catch (Exception e) {
System.out.println(e);
}
}
Main(String s) {
try {
br = new BufferedReader(new FileReader(s));
st = new StringTokenizer(br.readLine());
} catch (Exception e) {
System.out.println(e);
}
}
// main metohd
public static void main(String[] args) throws IOException {
new Main().solve();
}
// Utility methods
String ns() {
if (!st.hasMoreTokens()) {
try {
st = new StringTokenizer(br.readLine());
} catch (Exception e) {
System.out.println(e);
}
}
return st.nextToken();
}
int ni() {
return Integer.parseInt(ns());
}
long nl() {
return Long.parseLong(ns());
}
double nd() {
return Double.parseDouble(ns());
}
void pl(String s) {
System.out.println(s);
}
void pl(long s) {
System.out.println(s);
}
void pl(double s) {
System.out.println(s);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
39,
5
],
[
39,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
23,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
29,
29
],
[
29,
30
],
[
29,
31
],
[
29,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
6,
36
],
[
36,
37
],
[
0,
38
],
[
38,
39
],
[
38,
40
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint firstInt = sc.nextInt();\n\n\t\tSystem.out.println(firstInt + firstInt * firstInt + firstInt * firstInt * firstInt);\n\n\t\tsc.close();\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint firstInt = sc.nextInt();\n\n\t\tSystem.out.println(firstInt + firstInt * firstInt + firstInt * firstInt * firstInt);\n\n\t\tsc.close();\n\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint firstInt = sc.nextInt();\n\n\t\tSystem.out.println(firstInt + firstInt * firstInt + firstInt * firstInt * firstInt);\n\n\t\tsc.close();\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint firstInt = sc.nextInt();\n\n\t\tSystem.out.println(firstInt + firstInt * firstInt + firstInt * firstInt * firstInt);\n\n\t\tsc.close();\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int firstInt = sc.nextInt();",
"firstInt",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(firstInt + firstInt * firstInt + firstInt * firstInt * firstInt)",
"System.out.println",
"System.out",
"System",
"System.out",
"firstInt + firstInt * firstInt + firstInt * firstInt * firstInt",
"firstInt + firstInt * firstInt + firstInt * firstInt * firstInt",
"firstInt",
"firstInt * firstInt",
"firstInt",
"firstInt",
"firstInt * firstInt * firstInt",
"firstInt * firstInt * firstInt",
"firstInt",
"firstInt",
"firstInt",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint firstInt = sc.nextInt();\n\n\t\tSystem.out.println(firstInt + firstInt * firstInt + firstInt * firstInt * firstInt);\n\n\t\tsc.close();\n\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint firstInt = sc.nextInt();\n\n\t\tSystem.out.println(firstInt + firstInt * firstInt + firstInt * firstInt * firstInt);\n\n\t\tsc.close();\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 firstInt = sc.nextInt();
System.out.println(firstInt + firstInt * firstInt + firstInt * firstInt * firstInt);
sc.close();
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.