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,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
20,
17,
0,
18,
13,
17,
2,
13,
13,
0,
18,
13,
17,
2,
13,
13,
0,
18,
13,
17,
2,
13,
13,
0,
18,
13,
17,
2,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
18,
13,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
187,
11
],
[
187,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
14,
22
],
[
22,
23
],
[
14,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
14,
30
],
[
30,
31
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
14,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
14,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
14,
52
],
[
52,
53
],
[
52,
54
],
[
14,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
14,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
14,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
14,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
14,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
14,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
12,
96
],
[
96,
97
],
[
187,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
98,
102
],
[
102,
103
],
[
98,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
98,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
113,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
123,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
112,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
98,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
145,
146
],
[
98,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
151,
154
],
[
154,
155
],
[
98,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
160,
163
],
[
163,
164
],
[
98,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
171,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
167,
184
],
[
184,
185
],
[
0,
186
],
[
186,
187
],
[
186,
188
]
]
| [
"/* package codechef; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\npublic class Main {\n public static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n public static void main(String[] args) throws java.lang.Exception {\n // your code goes here\n FastReader scn = new FastReader();\n long i, j, t, a,b,c,d;\n a=scn.nextInt();\n b=scn.nextInt();\n c=scn.nextInt();\n d=scn.nextInt();\n long ans[]=new long[4];\n ans[0]=a*c;\n ans[1]=a*d;\n ans[2]=b*c;\n ans[3]=b*d;\n Arrays.sort(ans);\n System.out.println(ans[3]);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n public static void main(String[] args) throws java.lang.Exception {\n // your code goes here\n FastReader scn = new FastReader();\n long i, j, t, a,b,c,d;\n a=scn.nextInt();\n b=scn.nextInt();\n c=scn.nextInt();\n d=scn.nextInt();\n long ans[]=new long[4];\n ans[0]=a*c;\n ans[1]=a*d;\n ans[2]=b*c;\n ans[3]=b*d;\n Arrays.sort(ans);\n System.out.println(ans[3]);\n }\n}",
"Main",
"public static void main(String[] args) throws java.lang.Exception {\n // your code goes here\n FastReader scn = new FastReader();\n long i, j, t, a,b,c,d;\n a=scn.nextInt();\n b=scn.nextInt();\n c=scn.nextInt();\n d=scn.nextInt();\n long ans[]=new long[4];\n ans[0]=a*c;\n ans[1]=a*d;\n ans[2]=b*c;\n ans[3]=b*d;\n Arrays.sort(ans);\n System.out.println(ans[3]);\n }",
"main",
"{\n // your code goes here\n FastReader scn = new FastReader();\n long i, j, t, a,b,c,d;\n a=scn.nextInt();\n b=scn.nextInt();\n c=scn.nextInt();\n d=scn.nextInt();\n long ans[]=new long[4];\n ans[0]=a*c;\n ans[1]=a*d;\n ans[2]=b*c;\n ans[3]=b*d;\n Arrays.sort(ans);\n System.out.println(ans[3]);\n }",
"FastReader scn = new FastReader();",
"scn",
"new FastReader()",
"long i",
"i",
"j",
"j",
"t",
"t",
"a",
"a",
"b",
"b",
"c",
"c",
"d;",
"d",
"a=scn.nextInt()",
"a",
"scn.nextInt()",
"scn.nextInt",
"scn",
"b=scn.nextInt()",
"b",
"scn.nextInt()",
"scn.nextInt",
"scn",
"c=scn.nextInt()",
"c",
"scn.nextInt()",
"scn.nextInt",
"scn",
"d=scn.nextInt()",
"d",
"scn.nextInt()",
"scn.nextInt",
"scn",
"long ans[]=new long[4];",
"ans",
"new long[4]",
"4",
"ans[0]=a*c",
"ans[0]",
"ans",
"0",
"a*c",
"a",
"c",
"ans[1]=a*d",
"ans[1]",
"ans",
"1",
"a*d",
"a",
"d",
"ans[2]=b*c",
"ans[2]",
"ans",
"2",
"b*c",
"b",
"c",
"ans[3]=b*d",
"ans[3]",
"ans",
"3",
"b*d",
"b",
"d",
"Arrays.sort(ans)",
"Arrays.sort",
"Arrays",
"ans",
"System.out.println(ans[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"ans[3]",
"ans",
"3",
"String[] args",
"args",
"public static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n public static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n public static void main(String[] args) throws java.lang.Exception {\n // your code goes here\n FastReader scn = new FastReader();\n long i, j, t, a,b,c,d;\n a=scn.nextInt();\n b=scn.nextInt();\n c=scn.nextInt();\n d=scn.nextInt();\n long ans[]=new long[4];\n ans[0]=a*c;\n ans[1]=a*d;\n ans[2]=b*c;\n ans[3]=b*d;\n Arrays.sort(ans);\n System.out.println(ans[3]);\n }\n}",
"public class Main {\n public static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n public static void main(String[] args) throws java.lang.Exception {\n // your code goes here\n FastReader scn = new FastReader();\n long i, j, t, a,b,c,d;\n a=scn.nextInt();\n b=scn.nextInt();\n c=scn.nextInt();\n d=scn.nextInt();\n long ans[]=new long[4];\n ans[0]=a*c;\n ans[1]=a*d;\n ans[2]=b*c;\n ans[3]=b*d;\n Arrays.sort(ans);\n System.out.println(ans[3]);\n }\n}",
"Main"
]
| /* package codechef; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
public class Main {
public static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
public static void main(String[] args) throws java.lang.Exception {
// your code goes here
FastReader scn = new FastReader();
long i, j, t, a,b,c,d;
a=scn.nextInt();
b=scn.nextInt();
c=scn.nextInt();
d=scn.nextInt();
long ans[]=new long[4];
ans[0]=a*c;
ans[1]=a*d;
ans[2]=b*c;
ans[3]=b*d;
Arrays.sort(ans);
System.out.println(ans[3]);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
13,
4,
18,
13,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
4,
18,
13,
13,
17,
0,
18,
13,
17,
17,
14,
2,
13,
17,
0,
18,
13,
17,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
18,
13,
13,
18,
13,
13,
13,
30,
0,
18,
13,
2,
13,
17,
17,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
30,
0,
18,
13,
2,
13,
17,
17,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
13,
29,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
6,
13,
41,
13,
17,
41,
13,
17,
6,
13,
12,
13,
30,
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,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
23,
13,
12,
13,
30,
41,
13,
42,
2,
2,
0,
13,
4,
13,
40,
17,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
41,
13,
20,
42,
2,
13,
40,
17,
30,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
3,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
42,
2,
2,
0,
13,
4,
13,
40,
17,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
41,
13,
20,
42,
2,
13,
40,
17,
30,
14,
2,
2,
13,
17,
2,
13,
17,
3,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
2,
4,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
2,
4,
13,
13,
29,
13,
23,
13,
23,
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,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
2,
13,
17,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
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,
38,
5,
13,
30,
37,
20,
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
],
[
718,
8
],
[
718,
9
],
[
9,
10
],
[
9,
11
],
[
718,
12
],
[
12,
13
],
[
12,
14
],
[
718,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
17,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
17,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
17,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
17,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
17,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
17,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
17,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
64,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
69,
73
],
[
17,
74
],
[
74,
75
],
[
75,
76
],
[
17,
77
],
[
77,
78
],
[
78,
79
],
[
15,
80
],
[
80,
81
],
[
718,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
89,
93
],
[
84,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
84,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
84,
108
],
[
108,
109
],
[
108,
110
],
[
84,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
111,
122
],
[
123,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
124,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
138,
140
],
[
135,
141
],
[
134,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
146,
147
],
[
146,
148
],
[
134,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
124,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
158,
160
],
[
155,
161
],
[
82,
162
],
[
162,
163
],
[
718,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
172,
173
],
[
166,
174
],
[
174,
175
],
[
174,
176
],
[
166,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
182,
183
],
[
182,
184
],
[
177,
185
],
[
185,
186
],
[
186,
187
],
[
177,
188
],
[
189,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
192,
194
],
[
166,
195
],
[
195,
196
],
[
164,
197
],
[
197,
198
],
[
718,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
202,
206
],
[
206,
207
],
[
201,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
209,
212
],
[
212,
213
],
[
212,
214
],
[
199,
215
],
[
215,
216
],
[
199,
217
],
[
217,
218
],
[
718,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
224,
225
],
[
224,
226
],
[
718,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
229,
231
],
[
718,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
236,
238
],
[
232,
239
],
[
239,
240
],
[
232,
241
],
[
241,
242
],
[
232,
243
],
[
243,
244
],
[
232,
245
],
[
245,
246
],
[
232,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
253,
254
],
[
253,
255
],
[
249,
257
],
[
257,
258
],
[
257,
259
],
[
259,
260
],
[
259,
261
],
[
232,
262
],
[
262,
263
],
[
262,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
269,
270
],
[
265,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
264,
275
],
[
275,
276
],
[
275,
277
],
[
264,
279
],
[
279,
280
],
[
279,
281
],
[
281,
282
],
[
281,
283
],
[
262,
284
],
[
284,
285
],
[
232,
286
],
[
286,
287
],
[
286,
288
],
[
288,
289
],
[
289,
290
],
[
288,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
294,
295
],
[
294,
296
],
[
296,
297
],
[
293,
298
],
[
298,
299
],
[
292,
300
],
[
300,
301
],
[
301,
302
],
[
302,
303
],
[
302,
304
],
[
301,
305
],
[
305,
306
],
[
305,
307
],
[
300,
308
],
[
308,
309
],
[
308,
310
],
[
288,
311
],
[
311,
312
],
[
311,
313
],
[
288,
314
],
[
314,
315
],
[
315,
316
],
[
315,
317
],
[
317,
318
],
[
314,
319
],
[
319,
320
],
[
320,
321
],
[
322,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
322,
326
],
[
326,
327
],
[
326,
328
],
[
322,
329
],
[
329,
330
],
[
329,
331
],
[
320,
332
],
[
319,
333
],
[
333,
334
],
[
334,
335
],
[
333,
336
],
[
319,
337
],
[
337,
338
],
[
337,
339
],
[
339,
340
],
[
288,
341
],
[
341,
342
],
[
342,
343
],
[
343,
344
],
[
232,
345
],
[
345,
346
],
[
345,
347
],
[
347,
348
],
[
348,
349
],
[
347,
350
],
[
350,
351
],
[
351,
352
],
[
352,
353
],
[
353,
354
],
[
353,
355
],
[
355,
356
],
[
352,
357
],
[
357,
358
],
[
351,
359
],
[
359,
360
],
[
360,
361
],
[
361,
362
],
[
361,
363
],
[
360,
364
],
[
364,
365
],
[
364,
366
],
[
359,
367
],
[
367,
368
],
[
367,
369
],
[
347,
370
],
[
370,
371
],
[
370,
372
],
[
347,
373
],
[
373,
374
],
[
374,
375
],
[
374,
376
],
[
376,
377
],
[
373,
378
],
[
378,
379
],
[
379,
380
],
[
380,
381
],
[
381,
382
],
[
381,
383
],
[
380,
384
],
[
384,
385
],
[
384,
386
],
[
379,
387
],
[
378,
388
],
[
388,
389
],
[
389,
390
],
[
388,
391
],
[
378,
392
],
[
392,
393
],
[
392,
394
],
[
394,
395
],
[
347,
396
],
[
396,
397
],
[
397,
398
],
[
398,
399
],
[
232,
400
],
[
400,
401
],
[
400,
402
],
[
402,
403
],
[
403,
404
],
[
403,
405
],
[
402,
406
],
[
406,
407
],
[
406,
408
],
[
408,
409
],
[
402,
410
],
[
410,
411
],
[
411,
412
],
[
411,
413
],
[
410,
414
],
[
414,
415
],
[
414,
416
],
[
416,
417
],
[
402,
418
],
[
418,
419
],
[
418,
420
],
[
420,
421
],
[
420,
422
],
[
402,
423
],
[
423,
424
],
[
423,
425
],
[
425,
426
],
[
425,
427
],
[
427,
428
],
[
402,
429
],
[
429,
430
],
[
430,
431
],
[
431,
432
],
[
432,
433
],
[
432,
434
],
[
434,
435
],
[
431,
436
],
[
430,
437
],
[
437,
438
],
[
437,
439
],
[
429,
440
],
[
440,
441
],
[
440,
442
],
[
442,
443
],
[
443,
444
],
[
444,
445
],
[
444,
446
],
[
443,
447
],
[
442,
448
],
[
402,
449
],
[
449,
450
],
[
449,
451
],
[
451,
452
],
[
452,
453
],
[
402,
454
],
[
454,
455
],
[
232,
456
],
[
456,
457
],
[
456,
458
],
[
458,
459
],
[
459,
460
],
[
459,
461
],
[
458,
463
],
[
463,
464
],
[
464,
465
],
[
465,
466
],
[
465,
467
],
[
463,
468
],
[
468,
469
],
[
468,
470
],
[
463,
471
],
[
471,
472
],
[
472,
473
],
[
463,
474
],
[
474,
475
],
[
475,
476
],
[
476,
477
],
[
476,
478
],
[
475,
479
],
[
479,
480
],
[
480,
481
],
[
479,
482
],
[
458,
483
],
[
483,
484
],
[
456,
485
],
[
485,
486
],
[
456,
487
],
[
487,
488
],
[
232,
489
],
[
489,
490
],
[
489,
491
],
[
491,
492
],
[
492,
493
],
[
492,
494
],
[
491,
495
],
[
495,
496
],
[
495,
497
],
[
497,
498
],
[
491,
499
],
[
499,
500
],
[
500,
501
],
[
500,
502
],
[
499,
503
],
[
503,
504
],
[
503,
505
],
[
505,
506
],
[
491,
507
],
[
507,
508
],
[
507,
509
],
[
509,
510
],
[
509,
511
],
[
491,
512
],
[
512,
513
],
[
512,
514
],
[
514,
515
],
[
514,
516
],
[
516,
517
],
[
491,
518
],
[
518,
519
],
[
519,
520
],
[
520,
521
],
[
521,
522
],
[
521,
523
],
[
523,
524
],
[
520,
525
],
[
519,
526
],
[
526,
527
],
[
526,
528
],
[
518,
529
],
[
529,
530
],
[
529,
531
],
[
531,
532
],
[
532,
533
],
[
533,
534
],
[
533,
535
],
[
532,
536
],
[
531,
537
],
[
491,
538
],
[
538,
539
],
[
538,
540
],
[
540,
541
],
[
541,
542
],
[
491,
543
],
[
543,
544
],
[
232,
545
],
[
545,
546
],
[
545,
547
],
[
547,
548
],
[
548,
549
],
[
548,
550
],
[
547,
552
],
[
552,
553
],
[
553,
554
],
[
554,
555
],
[
554,
556
],
[
552,
557
],
[
557,
558
],
[
557,
559
],
[
552,
560
],
[
560,
561
],
[
561,
562
],
[
552,
563
],
[
563,
564
],
[
564,
565
],
[
565,
566
],
[
565,
567
],
[
564,
568
],
[
568,
569
],
[
569,
570
],
[
568,
571
],
[
547,
572
],
[
572,
573
],
[
545,
574
],
[
574,
575
],
[
545,
576
],
[
576,
577
],
[
232,
578
],
[
578,
579
],
[
578,
580
],
[
580,
581
],
[
581,
582
],
[
581,
583
],
[
580,
584
],
[
584,
585
],
[
584,
586
],
[
580,
587
],
[
587,
588
],
[
587,
589
],
[
589,
590
],
[
580,
591
],
[
591,
592
],
[
592,
593
],
[
592,
594
],
[
591,
595
],
[
595,
596
],
[
595,
597
],
[
597,
598
],
[
580,
599
],
[
599,
600
],
[
599,
601
],
[
601,
602
],
[
601,
603
],
[
580,
604
],
[
604,
605
],
[
604,
606
],
[
606,
607
],
[
606,
608
],
[
608,
609
],
[
580,
610
],
[
610,
611
],
[
611,
612
],
[
612,
613
],
[
613,
614
],
[
613,
615
],
[
615,
616
],
[
612,
617
],
[
611,
618
],
[
618,
619
],
[
618,
620
],
[
610,
621
],
[
621,
622
],
[
621,
623
],
[
623,
624
],
[
624,
625
],
[
625,
626
],
[
625,
627
],
[
624,
628
],
[
623,
629
],
[
580,
630
],
[
630,
631
],
[
631,
632
],
[
631,
633
],
[
630,
634
],
[
634,
635
],
[
635,
636
],
[
636,
637
],
[
637,
638
],
[
637,
639
],
[
639,
640
],
[
636,
641
],
[
635,
642
],
[
642,
643
],
[
642,
644
],
[
634,
645
],
[
645,
646
],
[
645,
647
],
[
647,
648
],
[
648,
649
],
[
648,
650
],
[
647,
651
],
[
651,
652
],
[
651,
653
],
[
580,
654
],
[
654,
655
],
[
654,
656
],
[
656,
657
],
[
657,
658
],
[
580,
659
],
[
659,
660
],
[
232,
661
],
[
661,
662
],
[
661,
663
],
[
663,
664
],
[
664,
665
],
[
664,
666
],
[
666,
667
],
[
667,
668
],
[
666,
669
],
[
666,
670
],
[
670,
671
],
[
670,
672
],
[
666,
673
],
[
663,
674
],
[
674,
675
],
[
675,
676
],
[
675,
677
],
[
677,
678
],
[
674,
679
],
[
679,
680
],
[
680,
681
],
[
680,
682
],
[
679,
683
],
[
683,
684
],
[
232,
685
],
[
685,
686
],
[
685,
687
],
[
687,
688
],
[
688,
689
],
[
689,
690
],
[
689,
691
],
[
691,
692
],
[
692,
693
],
[
688,
694
],
[
694,
695
],
[
695,
696
],
[
696,
697
],
[
696,
698
],
[
695,
699
],
[
699,
700
],
[
694,
701
],
[
701,
702
],
[
702,
703
],
[
702,
704
],
[
704,
705
],
[
232,
706
],
[
706,
707
],
[
706,
708
],
[
708,
709
],
[
709,
710
],
[
710,
711
],
[
710,
712
],
[
709,
713
],
[
708,
714
],
[
714,
715
],
[
715,
716
],
[
0,
717
],
[
717,
718
],
[
717,
719
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\tstatic final StdIn in = new StdIn();\n\tstatic final PrintWriter out = new PrintWriter(System.out);\n\n\tpublic static void main(String[] args) {\n\t\tlong a = in.nextLong();\n\t\tlong b = in.nextLong();\n\n\t\tlong c = in.nextLong();\n\t\tlong d = in.nextLong();\n\n\t\tlong a1 = a*c;\n\t\tlong a2 = a*d;\n\t\tlong a3 = b*c;\n\t\tlong a4 = b*d;\n\n\t\tout.println(Math.max(Math.max(a1, a2), Math.max(a3, a4)));\n\n\t\t\n\t\t\n \n\n out.println();\n\n\t\tout.close();\n }\n\n \n\n static class Pair {\n int first = 1;\n int second = 2;\n }\n\n public void fibonacci(int N) {\n boolean arr[] = new boolean[N];\n Arrays.fill(arr, false);\n arr[0] = true;\n if(N>1)\n arr[1] = true;\n\n Pair p = new Pair();\n for (int i = 3; i <= N; i++) {\n \n if(p.first + p.second == i) {\n arr[i-1] = true;\n p.first = p.second;\n p.second = i;\n } else {\n arr[i-1] = false;\n }\n }\n }\n\n public class Solver {\n\t\tSolver() {\n\t\t\t\n }\n \n }\n\n static long factorial(long x) {\n if(x <= 1) {\n return 1;\n }\n long res = 2;\n for (int i = 3; i <= x; i++) {\n res = res * i;\n }\n return res;\n }\n \n static long gcdOfFactorial(long a, long b) { \n if (b == 0) \n return a; \n return gcdOfFactorial(b, a % b);\n } \n\t\n\tstatic class StdIn {\n\t\tfinal private int BUFFER_SIZE = 1 << 16;\n\t\tprivate DataInputStream din;\n\t\tprivate byte[] buffer;\n\t\tprivate int bufferPointer, bytesRead;\n\t\tpublic StdIn() {\n\t\t\tdin = new DataInputStream(System.in);\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}\n\t\tpublic StdIn(InputStream in) {\n\t\t\ttry{\n\t\t\t\tdin = new DataInputStream(in);\n\t\t\t} catch(Exception e) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}\n\t\tpublic String next() {\n\t\t\tint c;\n\t\t\twhile((c=read())!=-1&&(c==' '||c=='\\n'||c=='\\r'));\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\twhile (c != -1)\n\t\t\t{\n\t\t\t\tif (c == ' ' || c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;\n\t\t\t\ts.append((char)c);\n\t\t\t\tc=read();\n\t\t\t}\n\t\t\treturn s.toString();\n\t\t}\n\t\tpublic String nextLine() {\n\t\t\tint c;\n\t\t\twhile((c=read())!=-1&&(c==' '||c=='\\n'||c=='\\r'));\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\twhile (c != -1)\n\t\t\t{\n\t\t\t\tif (c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;\n\t\t\t\ts.append((char)c);\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn s.toString();\n\t\t}\n\t\tpublic int nextInt() {\n\t\t\tint ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\t\tpublic int[] readIntArray(int n, int os) {\n\t\t\tint[] ar = new int[n];\n\t\t\tfor(int i=0; i<n; ++i)\n\t\t\t\tar[i]=nextInt()+os;\n\t\t\treturn ar;\n\t\t}\n\t\tpublic long nextLong() {\n\t\t\tlong ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\t\tpublic long[] readLongArray(int n, long os) {\n\t\t\tlong[] ar = new long[n];\n\t\t\tfor(int i=0; i<n; ++i)\n\t\t\t\tar[i]=nextLong()+os;\n\t\t\treturn ar;\n\t\t}\n\t\tpublic double nextDouble() {\n\t\t\tdouble ret = 0, div = 1;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\t\t\tif (c == '.')\n\t\t\t\twhile ((c = read()) >= '0' && c <= '9')\n\t\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\t\tprivate void fillBuffer() throws IOException {\n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n\t\t\tif (bytesRead == -1)\n\t\t\t\tbuffer[0] = -1;\n\t\t}\n\t\tprivate byte read() {\n\t\t\ttry{\n\t\t\t\tif (bufferPointer == bytesRead)\n\t\t\t\t\tfillBuffer();\n\t\t\t\treturn buffer[bufferPointer++];\n\t\t\t} catch(IOException e) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}\n\t\t}\n\t\tpublic void close() throws IOException {\n\t\t\tif (din == null)\n\t\t\t\treturn;\n\t\t\tdin.close();\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tstatic final StdIn in = new StdIn();\n\tstatic final PrintWriter out = new PrintWriter(System.out);\n\n\tpublic static void main(String[] args) {\n\t\tlong a = in.nextLong();\n\t\tlong b = in.nextLong();\n\n\t\tlong c = in.nextLong();\n\t\tlong d = in.nextLong();\n\n\t\tlong a1 = a*c;\n\t\tlong a2 = a*d;\n\t\tlong a3 = b*c;\n\t\tlong a4 = b*d;\n\n\t\tout.println(Math.max(Math.max(a1, a2), Math.max(a3, a4)));\n\n\t\t\n\t\t\n \n\n out.println();\n\n\t\tout.close();\n }\n\n \n\n static class Pair {\n int first = 1;\n int second = 2;\n }\n\n public void fibonacci(int N) {\n boolean arr[] = new boolean[N];\n Arrays.fill(arr, false);\n arr[0] = true;\n if(N>1)\n arr[1] = true;\n\n Pair p = new Pair();\n for (int i = 3; i <= N; i++) {\n \n if(p.first + p.second == i) {\n arr[i-1] = true;\n p.first = p.second;\n p.second = i;\n } else {\n arr[i-1] = false;\n }\n }\n }\n\n public class Solver {\n\t\tSolver() {\n\t\t\t\n }\n \n }\n\n static long factorial(long x) {\n if(x <= 1) {\n return 1;\n }\n long res = 2;\n for (int i = 3; i <= x; i++) {\n res = res * i;\n }\n return res;\n }\n \n static long gcdOfFactorial(long a, long b) { \n if (b == 0) \n return a; \n return gcdOfFactorial(b, a % b);\n } \n\t\n\tstatic class StdIn {\n\t\tfinal private int BUFFER_SIZE = 1 << 16;\n\t\tprivate DataInputStream din;\n\t\tprivate byte[] buffer;\n\t\tprivate int bufferPointer, bytesRead;\n\t\tpublic StdIn() {\n\t\t\tdin = new DataInputStream(System.in);\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}\n\t\tpublic StdIn(InputStream in) {\n\t\t\ttry{\n\t\t\t\tdin = new DataInputStream(in);\n\t\t\t} catch(Exception e) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}\n\t\tpublic String next() {\n\t\t\tint c;\n\t\t\twhile((c=read())!=-1&&(c==' '||c=='\\n'||c=='\\r'));\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\twhile (c != -1)\n\t\t\t{\n\t\t\t\tif (c == ' ' || c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;\n\t\t\t\ts.append((char)c);\n\t\t\t\tc=read();\n\t\t\t}\n\t\t\treturn s.toString();\n\t\t}\n\t\tpublic String nextLine() {\n\t\t\tint c;\n\t\t\twhile((c=read())!=-1&&(c==' '||c=='\\n'||c=='\\r'));\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\twhile (c != -1)\n\t\t\t{\n\t\t\t\tif (c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;\n\t\t\t\ts.append((char)c);\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn s.toString();\n\t\t}\n\t\tpublic int nextInt() {\n\t\t\tint ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\t\tpublic int[] readIntArray(int n, int os) {\n\t\t\tint[] ar = new int[n];\n\t\t\tfor(int i=0; i<n; ++i)\n\t\t\t\tar[i]=nextInt()+os;\n\t\t\treturn ar;\n\t\t}\n\t\tpublic long nextLong() {\n\t\t\tlong ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\t\tpublic long[] readLongArray(int n, long os) {\n\t\t\tlong[] ar = new long[n];\n\t\t\tfor(int i=0; i<n; ++i)\n\t\t\t\tar[i]=nextLong()+os;\n\t\t\treturn ar;\n\t\t}\n\t\tpublic double nextDouble() {\n\t\t\tdouble ret = 0, div = 1;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\t\t\tif (c == '.')\n\t\t\t\twhile ((c = read()) >= '0' && c <= '9')\n\t\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\t\tprivate void fillBuffer() throws IOException {\n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n\t\t\tif (bytesRead == -1)\n\t\t\t\tbuffer[0] = -1;\n\t\t}\n\t\tprivate byte read() {\n\t\t\ttry{\n\t\t\t\tif (bufferPointer == bytesRead)\n\t\t\t\t\tfillBuffer();\n\t\t\t\treturn buffer[bufferPointer++];\n\t\t\t} catch(IOException e) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}\n\t\t}\n\t\tpublic void close() throws IOException {\n\t\t\tif (din == null)\n\t\t\t\treturn;\n\t\t\tdin.close();\n\t\t}\n\t}\n}",
"Main",
"static final StdIn in = new StdIn();",
"in",
"new StdIn()",
"static final PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"public static void main(String[] args) {\n\t\tlong a = in.nextLong();\n\t\tlong b = in.nextLong();\n\n\t\tlong c = in.nextLong();\n\t\tlong d = in.nextLong();\n\n\t\tlong a1 = a*c;\n\t\tlong a2 = a*d;\n\t\tlong a3 = b*c;\n\t\tlong a4 = b*d;\n\n\t\tout.println(Math.max(Math.max(a1, a2), Math.max(a3, a4)));\n\n\t\t\n\t\t\n \n\n out.println();\n\n\t\tout.close();\n }",
"main",
"{\n\t\tlong a = in.nextLong();\n\t\tlong b = in.nextLong();\n\n\t\tlong c = in.nextLong();\n\t\tlong d = in.nextLong();\n\n\t\tlong a1 = a*c;\n\t\tlong a2 = a*d;\n\t\tlong a3 = b*c;\n\t\tlong a4 = b*d;\n\n\t\tout.println(Math.max(Math.max(a1, a2), Math.max(a3, a4)));\n\n\t\t\n\t\t\n \n\n out.println();\n\n\t\tout.close();\n }",
"long a = in.nextLong();",
"a",
"in.nextLong()",
"in.nextLong",
"in",
"long b = in.nextLong();",
"b",
"in.nextLong()",
"in.nextLong",
"in",
"long c = in.nextLong();",
"c",
"in.nextLong()",
"in.nextLong",
"in",
"long d = in.nextLong();",
"d",
"in.nextLong()",
"in.nextLong",
"in",
"long a1 = a*c;",
"a1",
"a*c",
"a",
"c",
"long a2 = a*d;",
"a2",
"a*d",
"a",
"d",
"long a3 = b*c;",
"a3",
"b*c",
"b",
"c",
"long a4 = b*d;",
"a4",
"b*d",
"b",
"d",
"out.println(Math.max(Math.max(a1, a2), Math.max(a3, a4)))",
"out.println",
"out",
"Math.max(Math.max(a1, a2), Math.max(a3, a4))",
"Math.max",
"Math",
"Math.max(a1, a2)",
"Math.max",
"Math",
"a1",
"a2",
"Math.max(a3, a4)",
"Math.max",
"Math",
"a3",
"a4",
"out.println()",
"out.println",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"public void fibonacci(int N) {\n boolean arr[] = new boolean[N];\n Arrays.fill(arr, false);\n arr[0] = true;\n if(N>1)\n arr[1] = true;\n\n Pair p = new Pair();\n for (int i = 3; i <= N; i++) {\n \n if(p.first + p.second == i) {\n arr[i-1] = true;\n p.first = p.second;\n p.second = i;\n } else {\n arr[i-1] = false;\n }\n }\n }",
"fibonacci",
"{\n boolean arr[] = new boolean[N];\n Arrays.fill(arr, false);\n arr[0] = true;\n if(N>1)\n arr[1] = true;\n\n Pair p = new Pair();\n for (int i = 3; i <= N; i++) {\n \n if(p.first + p.second == i) {\n arr[i-1] = true;\n p.first = p.second;\n p.second = i;\n } else {\n arr[i-1] = false;\n }\n }\n }",
"boolean arr[] = new boolean[N];",
"arr",
"new boolean[N]",
"N",
"Arrays.fill(arr, false)",
"Arrays.fill",
"Arrays",
"arr",
"false",
"arr[0] = true",
"arr[0]",
"arr",
"0",
"true",
"if(N>1)\n arr[1] = true;",
"N>1",
"N",
"1",
"arr[1] = true",
"arr[1]",
"arr",
"1",
"true",
"Pair p = new Pair();",
"p",
"new Pair()",
"for (int i = 3; i <= N; i++) {\n \n if(p.first + p.second == i) {\n arr[i-1] = true;\n p.first = p.second;\n p.second = i;\n } else {\n arr[i-1] = false;\n }\n }",
"int i = 3;",
"int i = 3;",
"i",
"3",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n \n if(p.first + p.second == i) {\n arr[i-1] = true;\n p.first = p.second;\n p.second = i;\n } else {\n arr[i-1] = false;\n }\n }",
"{\n \n if(p.first + p.second == i) {\n arr[i-1] = true;\n p.first = p.second;\n p.second = i;\n } else {\n arr[i-1] = false;\n }\n }",
"if(p.first + p.second == i) {\n arr[i-1] = true;\n p.first = p.second;\n p.second = i;\n } else {\n arr[i-1] = false;\n }",
"p.first + p.second == i",
"p.first + p.second",
"p.first",
"p",
"p.first",
"p.second",
"p",
"p.second",
"i",
"{\n arr[i-1] = true;\n p.first = p.second;\n p.second = i;\n }",
"arr[i-1] = true",
"arr[i-1]",
"arr",
"i-1",
"i",
"1",
"true",
"p.first = p.second",
"p.first",
"p",
"p.first",
"p.second",
"p",
"p.second",
"p.second = i",
"p.second",
"p",
"p.second",
"i",
"{\n arr[i-1] = false;\n }",
"arr[i-1] = false",
"arr[i-1]",
"arr",
"i-1",
"i",
"1",
"false",
"int N",
"N",
"static long factorial(long x) {\n if(x <= 1) {\n return 1;\n }\n long res = 2;\n for (int i = 3; i <= x; i++) {\n res = res * i;\n }\n return res;\n }",
"factorial",
"{\n if(x <= 1) {\n return 1;\n }\n long res = 2;\n for (int i = 3; i <= x; i++) {\n res = res * i;\n }\n return res;\n }",
"if(x <= 1) {\n return 1;\n }",
"x <= 1",
"x",
"1",
"{\n return 1;\n }",
"return 1;",
"1",
"long res = 2;",
"res",
"2",
"for (int i = 3; i <= x; i++) {\n res = res * i;\n }",
"int i = 3;",
"int i = 3;",
"i",
"3",
"i <= x",
"i",
"x",
"i++",
"i++",
"i",
"{\n res = res * i;\n }",
"{\n res = res * i;\n }",
"res = res * i",
"res",
"res * i",
"res",
"i",
"return res;",
"res",
"long x",
"x",
"static long gcdOfFactorial(long a, long b) { \n if (b == 0) \n return a; \n return gcdOfFactorial(b, a % b);\n }",
"gcdOfFactorial",
"{ \n if (b == 0) \n return a; \n return gcdOfFactorial(b, a % b);\n }",
"if (b == 0) \n return a;",
"b == 0",
"b",
"0",
"return a;",
"a",
"return gcdOfFactorial(b, a % b);",
"gcdOfFactorial(b, a % b)",
"gcdOfFactorial",
"b",
"a % b",
"a",
"b",
"long a",
"a",
"long b",
"b",
"static class Pair {\n int first = 1;\n int second = 2;\n }",
"Pair",
"int first = 1;",
"first",
"1",
"int second = 2;",
"second",
"2",
"public class Solver {\n\t\tSolver() {\n\t\t\t\n }\n \n }",
"Solver",
"Solver() {\n\t\t\t\n }",
"Solver",
"{\n\t\t\t\n }",
"static class StdIn {\n\t\tfinal private int BUFFER_SIZE = 1 << 16;\n\t\tprivate DataInputStream din;\n\t\tprivate byte[] buffer;\n\t\tprivate int bufferPointer, bytesRead;\n\t\tpublic StdIn() {\n\t\t\tdin = new DataInputStream(System.in);\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}\n\t\tpublic StdIn(InputStream in) {\n\t\t\ttry{\n\t\t\t\tdin = new DataInputStream(in);\n\t\t\t} catch(Exception e) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}\n\t\tpublic String next() {\n\t\t\tint c;\n\t\t\twhile((c=read())!=-1&&(c==' '||c=='\\n'||c=='\\r'));\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\twhile (c != -1)\n\t\t\t{\n\t\t\t\tif (c == ' ' || c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;\n\t\t\t\ts.append((char)c);\n\t\t\t\tc=read();\n\t\t\t}\n\t\t\treturn s.toString();\n\t\t}\n\t\tpublic String nextLine() {\n\t\t\tint c;\n\t\t\twhile((c=read())!=-1&&(c==' '||c=='\\n'||c=='\\r'));\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\twhile (c != -1)\n\t\t\t{\n\t\t\t\tif (c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;\n\t\t\t\ts.append((char)c);\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn s.toString();\n\t\t}\n\t\tpublic int nextInt() {\n\t\t\tint ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\t\tpublic int[] readIntArray(int n, int os) {\n\t\t\tint[] ar = new int[n];\n\t\t\tfor(int i=0; i<n; ++i)\n\t\t\t\tar[i]=nextInt()+os;\n\t\t\treturn ar;\n\t\t}\n\t\tpublic long nextLong() {\n\t\t\tlong ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\t\tpublic long[] readLongArray(int n, long os) {\n\t\t\tlong[] ar = new long[n];\n\t\t\tfor(int i=0; i<n; ++i)\n\t\t\t\tar[i]=nextLong()+os;\n\t\t\treturn ar;\n\t\t}\n\t\tpublic double nextDouble() {\n\t\t\tdouble ret = 0, div = 1;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\t\t\tif (c == '.')\n\t\t\t\twhile ((c = read()) >= '0' && c <= '9')\n\t\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\t\tprivate void fillBuffer() throws IOException {\n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n\t\t\tif (bytesRead == -1)\n\t\t\t\tbuffer[0] = -1;\n\t\t}\n\t\tprivate byte read() {\n\t\t\ttry{\n\t\t\t\tif (bufferPointer == bytesRead)\n\t\t\t\t\tfillBuffer();\n\t\t\t\treturn buffer[bufferPointer++];\n\t\t\t} catch(IOException e) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}\n\t\t}\n\t\tpublic void close() throws IOException {\n\t\t\tif (din == null)\n\t\t\t\treturn;\n\t\t\tdin.close();\n\t\t}\n\t}",
"StdIn",
"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 StdIn() {\n\t\t\tdin = new DataInputStream(System.in);\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}",
"StdIn",
"{\n\t\t\tdin = new DataInputStream(System.in);\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}",
"din = new DataInputStream(System.in)",
"din",
"new DataInputStream(System.in)",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"public StdIn(InputStream in) {\n\t\t\ttry{\n\t\t\t\tdin = new DataInputStream(in);\n\t\t\t} catch(Exception e) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}",
"StdIn",
"{\n\t\t\ttry{\n\t\t\t\tdin = new DataInputStream(in);\n\t\t\t} catch(Exception e) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}",
"try{\n\t\t\t\tdin = new DataInputStream(in);\n\t\t\t} catch(Exception e) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}",
"catch(Exception e) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}",
"Exception e",
"{\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}",
"throw new RuntimeException();",
"new RuntimeException()",
"{\n\t\t\t\tdin = new DataInputStream(in);\n\t\t\t}",
"din = new DataInputStream(in)",
"din",
"new DataInputStream(in)",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"InputStream in",
"in",
"public String next() {\n\t\t\tint c;\n\t\t\twhile((c=read())!=-1&&(c==' '||c=='\\n'||c=='\\r'));\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\twhile (c != -1)\n\t\t\t{\n\t\t\t\tif (c == ' ' || c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;\n\t\t\t\ts.append((char)c);\n\t\t\t\tc=read();\n\t\t\t}\n\t\t\treturn s.toString();\n\t\t}",
"next",
"{\n\t\t\tint c;\n\t\t\twhile((c=read())!=-1&&(c==' '||c=='\\n'||c=='\\r'));\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\twhile (c != -1)\n\t\t\t{\n\t\t\t\tif (c == ' ' || c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;\n\t\t\t\ts.append((char)c);\n\t\t\t\tc=read();\n\t\t\t}\n\t\t\treturn s.toString();\n\t\t}",
"int c;",
"c",
"while((c=read())!=-1&&(c==' '||c=='\\n'||c=='\\r'));",
"(c=read())!=-1&&(c==' '||c=='\\n'||c=='\\r')",
"(c=read())!=-1",
"(c=read())",
"c",
"read()",
"read",
"-1",
"1",
"(c==' '||c=='\\n'||c=='\\r')",
"c==' '||c=='\\n'||c=='\\r'",
"c==' '",
"c",
"' '",
"c=='\\n'",
"c",
"'\\n'",
"c=='\\r'",
"c",
"'\\r'",
"StringBuilder s = new StringBuilder();",
"s",
"new StringBuilder()",
"while (c != -1)\n\t\t\t{\n\t\t\t\tif (c == ' ' || c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;\n\t\t\t\ts.append((char)c);\n\t\t\t\tc=read();\n\t\t\t}",
"c != -1",
"c",
"-1",
"1",
"{\n\t\t\t\tif (c == ' ' || c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;\n\t\t\t\ts.append((char)c);\n\t\t\t\tc=read();\n\t\t\t}",
"if (c == ' ' || c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;",
"c == ' ' || c == '\\n'||c=='\\r'",
"c == ' ' || c == '\\n'||c=='\\r'",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c=='\\r'",
"c",
"'\\r'",
"break;",
"s.append((char)c)",
"s.append",
"s",
"(char)c",
"c=read()",
"c",
"read()",
"read",
"return s.toString();",
"s.toString()",
"s.toString",
"s",
"public String nextLine() {\n\t\t\tint c;\n\t\t\twhile((c=read())!=-1&&(c==' '||c=='\\n'||c=='\\r'));\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\twhile (c != -1)\n\t\t\t{\n\t\t\t\tif (c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;\n\t\t\t\ts.append((char)c);\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn s.toString();\n\t\t}",
"nextLine",
"{\n\t\t\tint c;\n\t\t\twhile((c=read())!=-1&&(c==' '||c=='\\n'||c=='\\r'));\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\twhile (c != -1)\n\t\t\t{\n\t\t\t\tif (c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;\n\t\t\t\ts.append((char)c);\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn s.toString();\n\t\t}",
"int c;",
"c",
"while((c=read())!=-1&&(c==' '||c=='\\n'||c=='\\r'));",
"(c=read())!=-1&&(c==' '||c=='\\n'||c=='\\r')",
"(c=read())!=-1",
"(c=read())",
"c",
"read()",
"read",
"-1",
"1",
"(c==' '||c=='\\n'||c=='\\r')",
"c==' '||c=='\\n'||c=='\\r'",
"c==' '",
"c",
"' '",
"c=='\\n'",
"c",
"'\\n'",
"c=='\\r'",
"c",
"'\\r'",
"StringBuilder s = new StringBuilder();",
"s",
"new StringBuilder()",
"while (c != -1)\n\t\t\t{\n\t\t\t\tif (c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;\n\t\t\t\ts.append((char)c);\n\t\t\t\tc = read();\n\t\t\t}",
"c != -1",
"c",
"-1",
"1",
"{\n\t\t\t\tif (c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;\n\t\t\t\ts.append((char)c);\n\t\t\t\tc = read();\n\t\t\t}",
"if (c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;",
"c == '\\n'||c=='\\r'",
"c == '\\n'",
"c",
"'\\n'",
"c=='\\r'",
"c",
"'\\r'",
"break;",
"s.append((char)c)",
"s.append",
"s",
"(char)c",
"c = read()",
"c",
"read()",
"read",
"return s.toString();",
"s.toString()",
"s.toString",
"s",
"public int nextInt() {\n\t\t\tint ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}",
"nextInt",
"{\n\t\t\tint ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}",
"int ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ')\n\t\t\t\tc = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg)\n\t\t\t\tc = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg)\n\t\t\t\treturn -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public int[] readIntArray(int n, int os) {\n\t\t\tint[] ar = new int[n];\n\t\t\tfor(int i=0; i<n; ++i)\n\t\t\t\tar[i]=nextInt()+os;\n\t\t\treturn ar;\n\t\t}",
"readIntArray",
"{\n\t\t\tint[] ar = new int[n];\n\t\t\tfor(int i=0; i<n; ++i)\n\t\t\t\tar[i]=nextInt()+os;\n\t\t\treturn ar;\n\t\t}",
"int[] ar = new int[n];",
"ar",
"new int[n]",
"n",
"for(int i=0; i<n; ++i)\n\t\t\t\tar[i]=nextInt()+os;",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"++i",
"++i",
"i",
"ar[i]=nextInt()+os;",
"ar[i]=nextInt()+os",
"ar[i]",
"ar",
"i",
"nextInt()+os",
"nextInt()",
"nextInt",
"os",
"return ar;",
"ar",
"int n",
"n",
"int os",
"os",
"public long nextLong() {\n\t\t\tlong ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}",
"nextLong",
"{\n\t\t\tlong ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}",
"long ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ')\n\t\t\t\tc = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg)\n\t\t\t\tc = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg)\n\t\t\t\treturn -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public long[] readLongArray(int n, long os) {\n\t\t\tlong[] ar = new long[n];\n\t\t\tfor(int i=0; i<n; ++i)\n\t\t\t\tar[i]=nextLong()+os;\n\t\t\treturn ar;\n\t\t}",
"readLongArray",
"{\n\t\t\tlong[] ar = new long[n];\n\t\t\tfor(int i=0; i<n; ++i)\n\t\t\t\tar[i]=nextLong()+os;\n\t\t\treturn ar;\n\t\t}",
"long[] ar = new long[n];",
"ar",
"new long[n]",
"n",
"for(int i=0; i<n; ++i)\n\t\t\t\tar[i]=nextLong()+os;",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"++i",
"++i",
"i",
"ar[i]=nextLong()+os;",
"ar[i]=nextLong()+os",
"ar[i]",
"ar",
"i",
"nextLong()+os",
"nextLong()",
"nextLong",
"os",
"return ar;",
"ar",
"int n",
"n",
"long os",
"os",
"public double nextDouble() {\n\t\t\tdouble ret = 0, div = 1;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\t\t\tif (c == '.')\n\t\t\t\twhile ((c = read()) >= '0' && c <= '9')\n\t\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}",
"nextDouble",
"{\n\t\t\tdouble ret = 0, div = 1;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\t\t\tif (c == '.')\n\t\t\t\twhile ((c = read()) >= '0' && c <= '9')\n\t\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}",
"double ret = 0",
"ret",
"0",
"div = 1;",
"div",
"1",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ')\n\t\t\t\tc = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg)\n\t\t\t\tc = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (c == '.')\n\t\t\t\twhile ((c = read()) >= '0' && c <= '9')\n\t\t\t\t\tret += (c - '0') / (div *= 10);",
"c == '.'",
"c",
"'.'",
"while ((c = read()) >= '0' && c <= '9')\n\t\t\t\t\tret += (c - '0') / (div *= 10);",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"ret += (c - '0') / (div *= 10)",
"ret",
"(c - '0') / (div *= 10)",
"(c - '0')",
"c",
"'0'",
"(div *= 10)",
"div",
"10",
"if (neg)\n\t\t\t\treturn -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"private void fillBuffer() throws IOException {\n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n\t\t\tif (bytesRead == -1)\n\t\t\t\tbuffer[0] = -1;\n\t\t}",
"fillBuffer",
"{\n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n\t\t\tif (bytesRead == -1)\n\t\t\t\tbuffer[0] = -1;\n\t\t}",
"bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"bytesRead",
"din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"din.read",
"din",
"buffer",
"bufferPointer = 0",
"bufferPointer",
"0",
"BUFFER_SIZE",
"if (bytesRead == -1)\n\t\t\t\tbuffer[0] = -1;",
"bytesRead == -1",
"bytesRead",
"-1",
"1",
"buffer[0] = -1",
"buffer[0]",
"buffer",
"0",
"-1",
"1",
"private byte read() {\n\t\t\ttry{\n\t\t\t\tif (bufferPointer == bytesRead)\n\t\t\t\t\tfillBuffer();\n\t\t\t\treturn buffer[bufferPointer++];\n\t\t\t} catch(IOException e) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}\n\t\t}",
"read",
"{\n\t\t\ttry{\n\t\t\t\tif (bufferPointer == bytesRead)\n\t\t\t\t\tfillBuffer();\n\t\t\t\treturn buffer[bufferPointer++];\n\t\t\t} catch(IOException e) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}\n\t\t}",
"try{\n\t\t\t\tif (bufferPointer == bytesRead)\n\t\t\t\t\tfillBuffer();\n\t\t\t\treturn buffer[bufferPointer++];\n\t\t\t} catch(IOException e) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}",
"catch(IOException e) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}",
"throw new RuntimeException();",
"new RuntimeException()",
"{\n\t\t\t\tif (bufferPointer == bytesRead)\n\t\t\t\t\tfillBuffer();\n\t\t\t\treturn buffer[bufferPointer++];\n\t\t\t}",
"if (bufferPointer == bytesRead)\n\t\t\t\t\tfillBuffer();",
"bufferPointer == bytesRead",
"bufferPointer",
"bytesRead",
"fillBuffer()",
"fillBuffer",
"return buffer[bufferPointer++];",
"buffer[bufferPointer++]",
"buffer",
"bufferPointer++",
"bufferPointer",
"public void close() throws IOException {\n\t\t\tif (din == null)\n\t\t\t\treturn;\n\t\t\tdin.close();\n\t\t}",
"close",
"{\n\t\t\tif (din == null)\n\t\t\t\treturn;\n\t\t\tdin.close();\n\t\t}",
"if (din == null)\n\t\t\t\treturn;",
"din == null",
"din",
"null",
"return;",
"din.close()",
"din.close",
"din",
"public class Main {\n\tstatic final StdIn in = new StdIn();\n\tstatic final PrintWriter out = new PrintWriter(System.out);\n\n\tpublic static void main(String[] args) {\n\t\tlong a = in.nextLong();\n\t\tlong b = in.nextLong();\n\n\t\tlong c = in.nextLong();\n\t\tlong d = in.nextLong();\n\n\t\tlong a1 = a*c;\n\t\tlong a2 = a*d;\n\t\tlong a3 = b*c;\n\t\tlong a4 = b*d;\n\n\t\tout.println(Math.max(Math.max(a1, a2), Math.max(a3, a4)));\n\n\t\t\n\t\t\n \n\n out.println();\n\n\t\tout.close();\n }\n\n \n\n static class Pair {\n int first = 1;\n int second = 2;\n }\n\n public void fibonacci(int N) {\n boolean arr[] = new boolean[N];\n Arrays.fill(arr, false);\n arr[0] = true;\n if(N>1)\n arr[1] = true;\n\n Pair p = new Pair();\n for (int i = 3; i <= N; i++) {\n \n if(p.first + p.second == i) {\n arr[i-1] = true;\n p.first = p.second;\n p.second = i;\n } else {\n arr[i-1] = false;\n }\n }\n }\n\n public class Solver {\n\t\tSolver() {\n\t\t\t\n }\n \n }\n\n static long factorial(long x) {\n if(x <= 1) {\n return 1;\n }\n long res = 2;\n for (int i = 3; i <= x; i++) {\n res = res * i;\n }\n return res;\n }\n \n static long gcdOfFactorial(long a, long b) { \n if (b == 0) \n return a; \n return gcdOfFactorial(b, a % b);\n } \n\t\n\tstatic class StdIn {\n\t\tfinal private int BUFFER_SIZE = 1 << 16;\n\t\tprivate DataInputStream din;\n\t\tprivate byte[] buffer;\n\t\tprivate int bufferPointer, bytesRead;\n\t\tpublic StdIn() {\n\t\t\tdin = new DataInputStream(System.in);\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}\n\t\tpublic StdIn(InputStream in) {\n\t\t\ttry{\n\t\t\t\tdin = new DataInputStream(in);\n\t\t\t} catch(Exception e) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}\n\t\tpublic String next() {\n\t\t\tint c;\n\t\t\twhile((c=read())!=-1&&(c==' '||c=='\\n'||c=='\\r'));\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\twhile (c != -1)\n\t\t\t{\n\t\t\t\tif (c == ' ' || c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;\n\t\t\t\ts.append((char)c);\n\t\t\t\tc=read();\n\t\t\t}\n\t\t\treturn s.toString();\n\t\t}\n\t\tpublic String nextLine() {\n\t\t\tint c;\n\t\t\twhile((c=read())!=-1&&(c==' '||c=='\\n'||c=='\\r'));\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\twhile (c != -1)\n\t\t\t{\n\t\t\t\tif (c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;\n\t\t\t\ts.append((char)c);\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn s.toString();\n\t\t}\n\t\tpublic int nextInt() {\n\t\t\tint ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\t\tpublic int[] readIntArray(int n, int os) {\n\t\t\tint[] ar = new int[n];\n\t\t\tfor(int i=0; i<n; ++i)\n\t\t\t\tar[i]=nextInt()+os;\n\t\t\treturn ar;\n\t\t}\n\t\tpublic long nextLong() {\n\t\t\tlong ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\t\tpublic long[] readLongArray(int n, long os) {\n\t\t\tlong[] ar = new long[n];\n\t\t\tfor(int i=0; i<n; ++i)\n\t\t\t\tar[i]=nextLong()+os;\n\t\t\treturn ar;\n\t\t}\n\t\tpublic double nextDouble() {\n\t\t\tdouble ret = 0, div = 1;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\t\t\tif (c == '.')\n\t\t\t\twhile ((c = read()) >= '0' && c <= '9')\n\t\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\t\tprivate void fillBuffer() throws IOException {\n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n\t\t\tif (bytesRead == -1)\n\t\t\t\tbuffer[0] = -1;\n\t\t}\n\t\tprivate byte read() {\n\t\t\ttry{\n\t\t\t\tif (bufferPointer == bytesRead)\n\t\t\t\t\tfillBuffer();\n\t\t\t\treturn buffer[bufferPointer++];\n\t\t\t} catch(IOException e) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}\n\t\t}\n\t\tpublic void close() throws IOException {\n\t\t\tif (din == null)\n\t\t\t\treturn;\n\t\t\tdin.close();\n\t\t}\n\t}\n}",
"public class Main {\n\tstatic final StdIn in = new StdIn();\n\tstatic final PrintWriter out = new PrintWriter(System.out);\n\n\tpublic static void main(String[] args) {\n\t\tlong a = in.nextLong();\n\t\tlong b = in.nextLong();\n\n\t\tlong c = in.nextLong();\n\t\tlong d = in.nextLong();\n\n\t\tlong a1 = a*c;\n\t\tlong a2 = a*d;\n\t\tlong a3 = b*c;\n\t\tlong a4 = b*d;\n\n\t\tout.println(Math.max(Math.max(a1, a2), Math.max(a3, a4)));\n\n\t\t\n\t\t\n \n\n out.println();\n\n\t\tout.close();\n }\n\n \n\n static class Pair {\n int first = 1;\n int second = 2;\n }\n\n public void fibonacci(int N) {\n boolean arr[] = new boolean[N];\n Arrays.fill(arr, false);\n arr[0] = true;\n if(N>1)\n arr[1] = true;\n\n Pair p = new Pair();\n for (int i = 3; i <= N; i++) {\n \n if(p.first + p.second == i) {\n arr[i-1] = true;\n p.first = p.second;\n p.second = i;\n } else {\n arr[i-1] = false;\n }\n }\n }\n\n public class Solver {\n\t\tSolver() {\n\t\t\t\n }\n \n }\n\n static long factorial(long x) {\n if(x <= 1) {\n return 1;\n }\n long res = 2;\n for (int i = 3; i <= x; i++) {\n res = res * i;\n }\n return res;\n }\n \n static long gcdOfFactorial(long a, long b) { \n if (b == 0) \n return a; \n return gcdOfFactorial(b, a % b);\n } \n\t\n\tstatic class StdIn {\n\t\tfinal private int BUFFER_SIZE = 1 << 16;\n\t\tprivate DataInputStream din;\n\t\tprivate byte[] buffer;\n\t\tprivate int bufferPointer, bytesRead;\n\t\tpublic StdIn() {\n\t\t\tdin = new DataInputStream(System.in);\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}\n\t\tpublic StdIn(InputStream in) {\n\t\t\ttry{\n\t\t\t\tdin = new DataInputStream(in);\n\t\t\t} catch(Exception e) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}\n\t\t\tbuffer = new byte[BUFFER_SIZE];\n\t\t\tbufferPointer = bytesRead = 0;\n\t\t}\n\t\tpublic String next() {\n\t\t\tint c;\n\t\t\twhile((c=read())!=-1&&(c==' '||c=='\\n'||c=='\\r'));\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\twhile (c != -1)\n\t\t\t{\n\t\t\t\tif (c == ' ' || c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;\n\t\t\t\ts.append((char)c);\n\t\t\t\tc=read();\n\t\t\t}\n\t\t\treturn s.toString();\n\t\t}\n\t\tpublic String nextLine() {\n\t\t\tint c;\n\t\t\twhile((c=read())!=-1&&(c==' '||c=='\\n'||c=='\\r'));\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\twhile (c != -1)\n\t\t\t{\n\t\t\t\tif (c == '\\n'||c=='\\r')\n\t\t\t\t\tbreak;\n\t\t\t\ts.append((char)c);\n\t\t\t\tc = read();\n\t\t\t}\n\t\t\treturn s.toString();\n\t\t}\n\t\tpublic int nextInt() {\n\t\t\tint ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\t\tpublic int[] readIntArray(int n, int os) {\n\t\t\tint[] ar = new int[n];\n\t\t\tfor(int i=0; i<n; ++i)\n\t\t\t\tar[i]=nextInt()+os;\n\t\t\treturn ar;\n\t\t}\n\t\tpublic long nextLong() {\n\t\t\tlong ret = 0;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\t\tpublic long[] readLongArray(int n, long os) {\n\t\t\tlong[] ar = new long[n];\n\t\t\tfor(int i=0; i<n; ++i)\n\t\t\t\tar[i]=nextLong()+os;\n\t\t\treturn ar;\n\t\t}\n\t\tpublic double nextDouble() {\n\t\t\tdouble ret = 0, div = 1;\n\t\t\tbyte c = read();\n\t\t\twhile (c <= ' ')\n\t\t\t\tc = read();\n\t\t\tboolean neg = (c == '-');\n\t\t\tif (neg)\n\t\t\t\tc = read();\n\t\t\tdo\n\t\t\t\tret = ret * 10 + c - '0';\n\t\t\twhile ((c = read()) >= '0' && c <= '9');\n\t\t\tif (c == '.')\n\t\t\t\twhile ((c = read()) >= '0' && c <= '9')\n\t\t\t\t\tret += (c - '0') / (div *= 10);\n\t\t\tif (neg)\n\t\t\t\treturn -ret;\n\t\t\treturn ret;\n\t\t}\n\t\tprivate void fillBuffer() throws IOException {\n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n\t\t\tif (bytesRead == -1)\n\t\t\t\tbuffer[0] = -1;\n\t\t}\n\t\tprivate byte read() {\n\t\t\ttry{\n\t\t\t\tif (bufferPointer == bytesRead)\n\t\t\t\t\tfillBuffer();\n\t\t\t\treturn buffer[bufferPointer++];\n\t\t\t} catch(IOException e) {\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}\n\t\t}\n\t\tpublic void close() throws IOException {\n\t\t\tif (din == null)\n\t\t\t\treturn;\n\t\t\tdin.close();\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
static final StdIn in = new StdIn();
static final PrintWriter out = new PrintWriter(System.out);
public static void main(String[] args) {
long a = in.nextLong();
long b = in.nextLong();
long c = in.nextLong();
long d = in.nextLong();
long a1 = a*c;
long a2 = a*d;
long a3 = b*c;
long a4 = b*d;
out.println(Math.max(Math.max(a1, a2), Math.max(a3, a4)));
out.println();
out.close();
}
static class Pair {
int first = 1;
int second = 2;
}
public void fibonacci(int N) {
boolean arr[] = new boolean[N];
Arrays.fill(arr, false);
arr[0] = true;
if(N>1)
arr[1] = true;
Pair p = new Pair();
for (int i = 3; i <= N; i++) {
if(p.first + p.second == i) {
arr[i-1] = true;
p.first = p.second;
p.second = i;
} else {
arr[i-1] = false;
}
}
}
public class Solver {
Solver() {
}
}
static long factorial(long x) {
if(x <= 1) {
return 1;
}
long res = 2;
for (int i = 3; i <= x; i++) {
res = res * i;
}
return res;
}
static long gcdOfFactorial(long a, long b) {
if (b == 0)
return a;
return gcdOfFactorial(b, a % b);
}
static class StdIn {
final private int BUFFER_SIZE = 1 << 16;
private DataInputStream din;
private byte[] buffer;
private int bufferPointer, bytesRead;
public StdIn() {
din = new DataInputStream(System.in);
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public StdIn(InputStream in) {
try{
din = new DataInputStream(in);
} catch(Exception e) {
throw new RuntimeException();
}
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public String next() {
int c;
while((c=read())!=-1&&(c==' '||c=='\n'||c=='\r'));
StringBuilder s = new StringBuilder();
while (c != -1)
{
if (c == ' ' || c == '\n'||c=='\r')
break;
s.append((char)c);
c=read();
}
return s.toString();
}
public String nextLine() {
int c;
while((c=read())!=-1&&(c==' '||c=='\n'||c=='\r'));
StringBuilder s = new StringBuilder();
while (c != -1)
{
if (c == '\n'||c=='\r')
break;
s.append((char)c);
c = read();
}
return s.toString();
}
public int nextInt() {
int ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do
ret = ret * 10 + c - '0';
while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public int[] readIntArray(int n, int os) {
int[] ar = new int[n];
for(int i=0; i<n; ++i)
ar[i]=nextInt()+os;
return ar;
}
public long nextLong() {
long ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do
ret = ret * 10 + c - '0';
while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public long[] readLongArray(int n, long os) {
long[] ar = new long[n];
for(int i=0; i<n; ++i)
ar[i]=nextLong()+os;
return ar;
}
public double nextDouble() {
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() {
try{
if (bufferPointer == bytesRead)
fillBuffer();
return buffer[bufferPointer++];
} catch(IOException e) {
throw new RuntimeException();
}
}
public void close() throws IOException {
if (din == null)
return;
din.close();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
117,
5
],
[
117,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
14,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
8,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
8,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
8,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
97,
99
],
[
84,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
103,
107
],
[
8,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
6,
114
],
[
114,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString[] t = sc.nextLine().split(\" \");\n\t\tlong a = Long.parseLong(t[0]);\n\t\tlong b = Long.parseLong(t[1]);\n\t\tlong c = Long.parseLong(t[2]);\n\t\tlong d = Long.parseLong(t[3]);\n\n\t\tlong ans = a * c;\n\t\tans = Math.max(ans, a * d);\n\t\tans = Math.max(ans, b * d);\n\t\tans = Math.max(ans, b * c);\n\n\t\tif((a <= 0 && b >= 0 )|| (c <= 0 && d >= 0)) {\n\t\t\tans = Math.max(ans, 0);\n\t\t}\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 sc = new Scanner(System.in);\n\n\t\tString[] t = sc.nextLine().split(\" \");\n\t\tlong a = Long.parseLong(t[0]);\n\t\tlong b = Long.parseLong(t[1]);\n\t\tlong c = Long.parseLong(t[2]);\n\t\tlong d = Long.parseLong(t[3]);\n\n\t\tlong ans = a * c;\n\t\tans = Math.max(ans, a * d);\n\t\tans = Math.max(ans, b * d);\n\t\tans = Math.max(ans, b * c);\n\n\t\tif((a <= 0 && b >= 0 )|| (c <= 0 && d >= 0)) {\n\t\t\tans = Math.max(ans, 0);\n\t\t}\n\n\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString[] t = sc.nextLine().split(\" \");\n\t\tlong a = Long.parseLong(t[0]);\n\t\tlong b = Long.parseLong(t[1]);\n\t\tlong c = Long.parseLong(t[2]);\n\t\tlong d = Long.parseLong(t[3]);\n\n\t\tlong ans = a * c;\n\t\tans = Math.max(ans, a * d);\n\t\tans = Math.max(ans, b * d);\n\t\tans = Math.max(ans, b * c);\n\n\t\tif((a <= 0 && b >= 0 )|| (c <= 0 && d >= 0)) {\n\t\t\tans = Math.max(ans, 0);\n\t\t}\n\n\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString[] t = sc.nextLine().split(\" \");\n\t\tlong a = Long.parseLong(t[0]);\n\t\tlong b = Long.parseLong(t[1]);\n\t\tlong c = Long.parseLong(t[2]);\n\t\tlong d = Long.parseLong(t[3]);\n\n\t\tlong ans = a * c;\n\t\tans = Math.max(ans, a * d);\n\t\tans = Math.max(ans, b * d);\n\t\tans = Math.max(ans, b * c);\n\n\t\tif((a <= 0 && b >= 0 )|| (c <= 0 && d >= 0)) {\n\t\t\tans = Math.max(ans, 0);\n\t\t}\n\n\n\t\tSystem.out.println(ans);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String[] t = sc.nextLine().split(\" \");",
"t",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"long a = Long.parseLong(t[0]);",
"a",
"Long.parseLong(t[0])",
"Long.parseLong",
"Long",
"t[0]",
"t",
"0",
"long b = Long.parseLong(t[1]);",
"b",
"Long.parseLong(t[1])",
"Long.parseLong",
"Long",
"t[1]",
"t",
"1",
"long c = Long.parseLong(t[2]);",
"c",
"Long.parseLong(t[2])",
"Long.parseLong",
"Long",
"t[2]",
"t",
"2",
"long d = Long.parseLong(t[3]);",
"d",
"Long.parseLong(t[3])",
"Long.parseLong",
"Long",
"t[3]",
"t",
"3",
"long ans = a * c;",
"ans",
"a * c",
"a",
"c",
"ans = Math.max(ans, a * d)",
"ans",
"Math.max(ans, a * d)",
"Math.max",
"Math",
"ans",
"a * d",
"a",
"d",
"ans = Math.max(ans, b * d)",
"ans",
"Math.max(ans, b * d)",
"Math.max",
"Math",
"ans",
"b * d",
"b",
"d",
"ans = Math.max(ans, b * c)",
"ans",
"Math.max(ans, b * c)",
"Math.max",
"Math",
"ans",
"b * c",
"b",
"c",
"if((a <= 0 && b >= 0 )|| (c <= 0 && d >= 0)) {\n\t\t\tans = Math.max(ans, 0);\n\t\t}",
"(a <= 0 && b >= 0 )|| (c <= 0 && d >= 0)",
"(a <= 0 && b >= 0 )",
"a <= 0",
"a",
"0",
"b >= 0",
"b",
"0",
"(c <= 0 && d >= 0)",
"c <= 0",
"c",
"0",
"d >= 0",
"d",
"0",
"{\n\t\t\tans = Math.max(ans, 0);\n\t\t}",
"ans = Math.max(ans, 0)",
"ans",
"Math.max(ans, 0)",
"Math.max",
"Math",
"ans",
"0",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString[] t = sc.nextLine().split(\" \");\n\t\tlong a = Long.parseLong(t[0]);\n\t\tlong b = Long.parseLong(t[1]);\n\t\tlong c = Long.parseLong(t[2]);\n\t\tlong d = Long.parseLong(t[3]);\n\n\t\tlong ans = a * c;\n\t\tans = Math.max(ans, a * d);\n\t\tans = Math.max(ans, b * d);\n\t\tans = Math.max(ans, b * c);\n\n\t\tif((a <= 0 && b >= 0 )|| (c <= 0 && d >= 0)) {\n\t\t\tans = Math.max(ans, 0);\n\t\t}\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 sc = new Scanner(System.in);\n\n\t\tString[] t = sc.nextLine().split(\" \");\n\t\tlong a = Long.parseLong(t[0]);\n\t\tlong b = Long.parseLong(t[1]);\n\t\tlong c = Long.parseLong(t[2]);\n\t\tlong d = Long.parseLong(t[3]);\n\n\t\tlong ans = a * c;\n\t\tans = Math.max(ans, a * d);\n\t\tans = Math.max(ans, b * d);\n\t\tans = Math.max(ans, b * c);\n\n\t\tif((a <= 0 && b >= 0 )|| (c <= 0 && d >= 0)) {\n\t\t\tans = Math.max(ans, 0);\n\t\t}\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 sc = new Scanner(System.in);
String[] t = sc.nextLine().split(" ");
long a = Long.parseLong(t[0]);
long b = Long.parseLong(t[1]);
long c = Long.parseLong(t[2]);
long d = Long.parseLong(t[3]);
long ans = a * c;
ans = Math.max(ans, a * d);
ans = Math.max(ans, b * d);
ans = Math.max(ans, b * c);
if((a <= 0 && b >= 0 )|| (c <= 0 && d >= 0)) {
ans = Math.max(ans, 0);
}
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
13,
4,
18,
13,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
18,
36,
13,
20,
23,
13,
12,
13,
30,
4,
18,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
30,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
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
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
362,
35
],
[
362,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
38,
49
],
[
49,
50
],
[
49,
51
],
[
38,
52
],
[
52,
53
],
[
52,
54
],
[
38,
55
],
[
55,
56
],
[
55,
57
],
[
38,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
58,
62
],
[
58,
63
],
[
38,
64
],
[
64,
65
],
[
65,
66
],
[
36,
67
],
[
67,
68
],
[
362,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
73,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
73,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
73,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
96,
98
],
[
73,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
73,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
106,
108
],
[
73,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
111,
113
],
[
73,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
120,
124
],
[
117,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
125,
129
],
[
71,
130
],
[
130,
131
],
[
71,
132
],
[
132,
133
],
[
71,
134
],
[
134,
135
],
[
362,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
136,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
140,
146
],
[
146,
147
],
[
136,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
148,
156
],
[
156,
157
],
[
136,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
136,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
167,
170
],
[
164,
171
],
[
171,
172
],
[
362,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
173,
177
],
[
177,
178
],
[
177,
179
],
[
173,
181
],
[
181,
182
],
[
173,
183
],
[
183,
184
],
[
173,
185
],
[
185,
186
],
[
173,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
187,
195
],
[
195,
196
],
[
173,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
200,
205
],
[
205,
206
],
[
206,
207
],
[
199,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
220,
221
],
[
216,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
226,
227
],
[
225,
228
],
[
212,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
199,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
173,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
244,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
256,
257
],
[
244,
258
],
[
258,
259
],
[
258,
260
],
[
244,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
261,
265
],
[
265,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
265,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
244,
274
],
[
274,
275
],
[
274,
276
],
[
244,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
279,
281
],
[
277,
282
],
[
282,
283
],
[
283,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
284,
288
],
[
288,
289
],
[
288,
290
],
[
283,
291
],
[
291,
292
],
[
292,
293
],
[
282,
294
],
[
294,
295
],
[
294,
296
],
[
282,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
299,
301
],
[
282,
302
],
[
302,
303
],
[
302,
304
],
[
304,
305
],
[
244,
306
],
[
306,
307
],
[
307,
308
],
[
307,
309
],
[
173,
310
],
[
310,
311
],
[
310,
312
],
[
312,
313
],
[
313,
314
],
[
314,
315
],
[
314,
316
],
[
313,
317
],
[
317,
318
],
[
318,
319
],
[
319,
320
],
[
320,
321
],
[
319,
322
],
[
312,
323
],
[
323,
324
],
[
324,
325
],
[
324,
326
],
[
310,
327
],
[
327,
328
],
[
173,
329
],
[
329,
330
],
[
329,
331
],
[
331,
332
],
[
332,
333
],
[
336,
334
],
[
346,
335
],
[
343,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
336,
340
],
[
340,
341
],
[
340,
342
],
[
343,
343
],
[
343,
344
],
[
343,
345
],
[
346,
346
],
[
346,
347
],
[
346,
348
],
[
336,
349
],
[
349,
350
],
[
349,
351
],
[
351,
352
],
[
329,
353
],
[
353,
354
],
[
173,
355
],
[
355,
356
],
[
355,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
0,
361
],
[
361,
362
],
[
361,
363
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.io.BufferedWriter;\nimport java.io.Writer;\nimport java.io.OutputStreamWriter;\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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long l1 = a * c;\n long l2 = a * d;\n long l3 = b * c;\n long l4 = b * d;\n out.print(Math.max(Math.max(l1, l2), Math.max(l3, l4)));\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void print(long i) {\n writer.print(i);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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.OutputStream;",
"OutputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.io.BufferedWriter;",
"BufferedWriter",
"java.io",
"import java.io.Writer;",
"Writer",
"java.io",
"import java.io.OutputStreamWriter;",
"OutputStreamWriter",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long l1 = a * c;\n long l2 = a * d;\n long l3 = b * c;\n long l4 = b * d;\n out.print(Math.max(Math.max(l1, l2), Math.max(l3, l4)));\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void print(long i) {\n writer.print(i);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"OutputWriter out = new OutputWriter(outputStream);",
"out",
"new OutputWriter(outputStream)",
"TaskB solver = new TaskB();",
"solver",
"new TaskB()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class TaskB {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long l1 = a * c;\n long l2 = a * d;\n long l3 = b * c;\n long l4 = b * d;\n out.print(Math.max(Math.max(l1, l2), Math.max(l3, l4)));\n }\n\n }",
"TaskB",
"public void solve(int testNumber, InputReader in, OutputWriter out) {\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long l1 = a * c;\n long l2 = a * d;\n long l3 = b * c;\n long l4 = b * d;\n out.print(Math.max(Math.max(l1, l2), Math.max(l3, l4)));\n }",
"solve",
"{\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long l1 = a * c;\n long l2 = a * d;\n long l3 = b * c;\n long l4 = b * d;\n out.print(Math.max(Math.max(l1, l2), Math.max(l3, l4)));\n }",
"long a = in.nextLong();",
"a",
"in.nextLong()",
"in.nextLong",
"in",
"long b = in.nextLong();",
"b",
"in.nextLong()",
"in.nextLong",
"in",
"long c = in.nextLong();",
"c",
"in.nextLong()",
"in.nextLong",
"in",
"long d = in.nextLong();",
"d",
"in.nextLong()",
"in.nextLong",
"in",
"long l1 = a * c;",
"l1",
"a * c",
"a",
"c",
"long l2 = a * d;",
"l2",
"a * d",
"a",
"d",
"long l3 = b * c;",
"l3",
"b * c",
"b",
"c",
"long l4 = b * d;",
"l4",
"b * d",
"b",
"d",
"out.print(Math.max(Math.max(l1, l2), Math.max(l3, l4)))",
"out.print",
"out",
"Math.max(Math.max(l1, l2), Math.max(l3, l4))",
"Math.max",
"Math",
"Math.max(l1, l2)",
"Math.max",
"Math",
"l1",
"l2",
"Math.max(l3, l4)",
"Math.max",
"Math",
"l3",
"l4",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"OutputWriter out",
"out",
"static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void print(long i) {\n writer.print(i);\n }\n\n }",
"OutputWriter",
"private final PrintWriter writer;",
"writer",
"public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }",
"OutputWriter",
"{\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }",
"writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))",
"writer",
"new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))",
"OutputStream outputStream",
"outputStream",
"public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }",
"OutputWriter",
"{\n this.writer = new PrintWriter(writer);\n }",
"this.writer = new PrintWriter(writer)",
"this.writer",
"this",
"this.writer",
"new PrintWriter(writer)",
"Writer writer",
"writer",
"public void close() {\n writer.close();\n }",
"close",
"{\n writer.close();\n }",
"writer.close()",
"writer.close",
"writer",
"public void print(long i) {\n writer.print(i);\n }",
"print",
"{\n writer.print(i);\n }",
"writer.print(i)",
"writer.print",
"writer",
"i",
"long i",
"i",
"static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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 }",
"InputReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"private InputReader.SpaceCharFilter filter;",
"filter",
"public InputReader(InputStream stream) {\n this.stream = stream;\n }",
"InputReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"if (numChars == -1) {\n throw new InputMismatchException();\n }",
"numChars == -1",
"numChars",
"-1",
"1",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0) {\n return -1;\n }",
"numChars <= 0",
"numChars",
"0",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public 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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long l1 = a * c;\n long l2 = a * d;\n long l3 = b * c;\n long l4 = b * d;\n out.print(Math.max(Math.max(l1, l2), Math.max(l3, l4)));\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void print(long i) {\n writer.print(i);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long l1 = a * c;\n long l2 = a * d;\n long l3 = b * c;\n long l4 = b * d;\n out.print(Math.max(Math.max(l1, l2), Math.max(l3, l4)));\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void print(long i) {\n writer.print(i);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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.OutputStream;
import java.io.PrintWriter;
import java.io.BufferedWriter;
import java.io.Writer;
import java.io.OutputStreamWriter;
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;
InputReader in = new InputReader(inputStream);
OutputWriter out = new OutputWriter(outputStream);
TaskB solver = new TaskB();
solver.solve(1, in, out);
out.close();
}
static class TaskB {
public void solve(int testNumber, InputReader in, OutputWriter out) {
long a = in.nextLong();
long b = in.nextLong();
long c = in.nextLong();
long d = in.nextLong();
long l1 = a * c;
long l2 = a * d;
long l3 = b * c;
long l4 = b * d;
out.print(Math.max(Math.max(l1, l2), Math.max(l3, l4)));
}
}
static class OutputWriter {
private final PrintWriter writer;
public OutputWriter(OutputStream outputStream) {
writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
}
public OutputWriter(Writer writer) {
this.writer = new PrintWriter(writer);
}
public void close() {
writer.close();
}
public void print(long i) {
writer.print(i);
}
}
static class InputReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private InputReader.SpaceCharFilter filter;
public InputReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1) {
throw new InputMismatchException();
}
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0) {
return -1;
}
}
return buf[curChar++];
}
public 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,
6,
13,
12,
13,
30,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
67,
5
],
[
67,
6
],
[
6,
7
],
[
6,
8
],
[
67,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
11,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
43,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
37,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
52,
53
],
[
52,
54
],
[
49,
55
],
[
55,
56
],
[
55,
57
],
[
11,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
9,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public Main() {\n }\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n long a = scan.nextLong();\n long b = scan.nextLong();\n long c = scan.nextLong();\n long d = scan.nextLong();\n\n long p=Math.max(Math.max(a*c,b*d),Math.max(a*d,c*b));\n System.out.println(p);\n\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public Main() {\n }\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n long a = scan.nextLong();\n long b = scan.nextLong();\n long c = scan.nextLong();\n long d = scan.nextLong();\n\n long p=Math.max(Math.max(a*c,b*d),Math.max(a*d,c*b));\n System.out.println(p);\n\n\n }\n}",
"Main",
"public Main() {\n }",
"Main",
"{\n }",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n long a = scan.nextLong();\n long b = scan.nextLong();\n long c = scan.nextLong();\n long d = scan.nextLong();\n\n long p=Math.max(Math.max(a*c,b*d),Math.max(a*d,c*b));\n System.out.println(p);\n\n\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n long a = scan.nextLong();\n long b = scan.nextLong();\n long c = scan.nextLong();\n long d = scan.nextLong();\n\n long p=Math.max(Math.max(a*c,b*d),Math.max(a*d,c*b));\n System.out.println(p);\n\n\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"long a = scan.nextLong();",
"a",
"scan.nextLong()",
"scan.nextLong",
"scan",
"long b = scan.nextLong();",
"b",
"scan.nextLong()",
"scan.nextLong",
"scan",
"long c = scan.nextLong();",
"c",
"scan.nextLong()",
"scan.nextLong",
"scan",
"long d = scan.nextLong();",
"d",
"scan.nextLong()",
"scan.nextLong",
"scan",
"long p=Math.max(Math.max(a*c,b*d),Math.max(a*d,c*b));",
"p",
"Math.max(Math.max(a*c,b*d),Math.max(a*d,c*b))",
"Math.max",
"Math",
"Math.max(a*c,b*d)",
"Math.max",
"Math",
"a*c",
"a",
"c",
"b*d",
"b",
"d",
"Math.max(a*d,c*b)",
"Math.max",
"Math",
"a*d",
"a",
"d",
"c*b",
"c",
"b",
"System.out.println(p)",
"System.out.println",
"System.out",
"System",
"System.out",
"p",
"String[] args",
"args",
"public class Main {\n\n public Main() {\n }\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n long a = scan.nextLong();\n long b = scan.nextLong();\n long c = scan.nextLong();\n long d = scan.nextLong();\n\n long p=Math.max(Math.max(a*c,b*d),Math.max(a*d,c*b));\n System.out.println(p);\n\n\n }\n}",
"public class Main {\n\n public Main() {\n }\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n long a = scan.nextLong();\n long b = scan.nextLong();\n long c = scan.nextLong();\n long d = scan.nextLong();\n\n long p=Math.max(Math.max(a*c,b*d),Math.max(a*d,c*b));\n System.out.println(p);\n\n\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public Main() {
}
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
long a = scan.nextLong();
long b = scan.nextLong();
long c = scan.nextLong();
long d = scan.nextLong();
long p=Math.max(Math.max(a*c,b*d),Math.max(a*d,c*b));
System.out.println(p);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
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,
29,
2,
2,
13,
13,
17,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
14,
4,
13,
13,
13,
30,
14,
2,
13,
17,
30,
14,
4,
13,
13,
13,
30,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
13,
13,
30,
0,
13,
4,
18,
13,
13,
13,
30,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
14,
2,
13,
17,
30,
14,
4,
13,
13,
13,
30,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
13,
13,
30,
0,
13,
4,
18,
13,
13,
13,
30,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
30,
14,
4,
13,
13,
13,
30,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
30,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
30,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
4,
18,
13,
2,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
18,
36,
13,
20,
23,
13,
12,
13,
30,
4,
18,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
30,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
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
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
557,
35
],
[
557,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
38,
49
],
[
49,
50
],
[
49,
51
],
[
38,
52
],
[
52,
53
],
[
52,
54
],
[
38,
55
],
[
55,
56
],
[
55,
57
],
[
38,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
58,
62
],
[
58,
63
],
[
38,
64
],
[
64,
65
],
[
65,
66
],
[
36,
67
],
[
67,
68
],
[
557,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
71,
80
],
[
80,
81
],
[
71,
82
],
[
82,
83
],
[
69,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
86,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
86,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
86,
107
],
[
107,
108
],
[
107,
109
],
[
86,
110
],
[
110,
111
],
[
110,
112
],
[
86,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
114,
117
],
[
113,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
125,
128
],
[
124,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
137,
140
],
[
137,
141
],
[
130,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
145,
149
],
[
124,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
153,
157
],
[
123,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
160,
163
],
[
160,
164
],
[
119,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
171,
174
],
[
170,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
183,
187
],
[
176,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
191,
194
],
[
191,
195
],
[
170,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
199,
202
],
[
199,
203
],
[
169,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
206,
209
],
[
206,
210
],
[
113,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
213,
216
],
[
212,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
226,
227
],
[
225,
228
],
[
225,
229
],
[
222,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
233,
234
],
[
232,
235
],
[
232,
236
],
[
218,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
241,
242
],
[
240,
243
],
[
240,
244
],
[
237,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
248,
249
],
[
247,
250
],
[
247,
251
],
[
212,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
256,
257
],
[
255,
258
],
[
255,
259
],
[
252,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
263,
264
],
[
262,
265
],
[
262,
266
],
[
252,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
270,
271
],
[
269,
272
],
[
269,
273
],
[
252,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
277,
278
],
[
276,
279
],
[
276,
280
],
[
252,
281
],
[
281,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
282,
286
],
[
286,
287
],
[
286,
288
],
[
281,
289
],
[
289,
290
],
[
290,
291
],
[
290,
292
],
[
292,
293
],
[
293,
294
],
[
292,
295
],
[
292,
296
],
[
289,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
300,
301
],
[
299,
302
],
[
299,
303
],
[
281,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
307,
308
],
[
308,
309
],
[
307,
310
],
[
307,
311
],
[
304,
312
],
[
312,
313
],
[
312,
314
],
[
314,
315
],
[
315,
316
],
[
314,
317
],
[
314,
318
],
[
86,
319
],
[
319,
320
],
[
320,
321
],
[
319,
322
],
[
322,
323
],
[
322,
324
],
[
84,
325
],
[
325,
326
],
[
84,
327
],
[
327,
328
],
[
84,
329
],
[
329,
330
],
[
557,
331
],
[
331,
332
],
[
331,
333
],
[
333,
334
],
[
331,
335
],
[
335,
336
],
[
335,
337
],
[
337,
338
],
[
338,
339
],
[
338,
340
],
[
335,
341
],
[
341,
342
],
[
331,
343
],
[
343,
344
],
[
343,
345
],
[
345,
346
],
[
346,
347
],
[
347,
348
],
[
347,
349
],
[
346,
350
],
[
343,
351
],
[
351,
352
],
[
331,
353
],
[
353,
354
],
[
353,
355
],
[
355,
356
],
[
356,
357
],
[
357,
358
],
[
331,
359
],
[
359,
360
],
[
359,
361
],
[
361,
362
],
[
362,
363
],
[
363,
364
],
[
362,
365
],
[
359,
366
],
[
366,
367
],
[
557,
368
],
[
368,
369
],
[
368,
370
],
[
370,
371
],
[
368,
372
],
[
372,
373
],
[
372,
374
],
[
368,
376
],
[
376,
377
],
[
368,
378
],
[
378,
379
],
[
368,
380
],
[
380,
381
],
[
368,
382
],
[
382,
383
],
[
382,
384
],
[
384,
385
],
[
385,
386
],
[
386,
387
],
[
386,
388
],
[
385,
389
],
[
382,
390
],
[
390,
391
],
[
368,
392
],
[
392,
393
],
[
392,
394
],
[
394,
395
],
[
395,
396
],
[
396,
397
],
[
396,
398
],
[
398,
399
],
[
395,
400
],
[
400,
401
],
[
401,
402
],
[
394,
403
],
[
403,
404
],
[
404,
405
],
[
404,
406
],
[
403,
407
],
[
407,
408
],
[
408,
409
],
[
408,
410
],
[
407,
411
],
[
411,
412
],
[
412,
413
],
[
412,
414
],
[
414,
415
],
[
415,
416
],
[
411,
417
],
[
417,
418
],
[
418,
419
],
[
418,
420
],
[
420,
421
],
[
421,
422
],
[
420,
423
],
[
407,
424
],
[
424,
425
],
[
425,
426
],
[
425,
427
],
[
424,
428
],
[
428,
429
],
[
429,
430
],
[
430,
431
],
[
394,
432
],
[
432,
433
],
[
433,
434
],
[
433,
435
],
[
435,
436
],
[
368,
437
],
[
437,
438
],
[
437,
439
],
[
439,
440
],
[
440,
441
],
[
440,
442
],
[
442,
443
],
[
439,
444
],
[
444,
445
],
[
445,
446
],
[
445,
447
],
[
444,
448
],
[
448,
449
],
[
449,
450
],
[
449,
451
],
[
451,
452
],
[
439,
453
],
[
453,
454
],
[
453,
455
],
[
439,
456
],
[
456,
457
],
[
457,
458
],
[
457,
459
],
[
456,
460
],
[
460,
461
],
[
461,
462
],
[
461,
463
],
[
463,
464
],
[
460,
465
],
[
465,
466
],
[
465,
467
],
[
467,
468
],
[
439,
469
],
[
469,
470
],
[
469,
471
],
[
439,
472
],
[
472,
473
],
[
473,
474
],
[
474,
475
],
[
474,
476
],
[
472,
477
],
[
477,
478
],
[
478,
479
],
[
479,
480
],
[
480,
481
],
[
480,
482
],
[
479,
483
],
[
483,
484
],
[
483,
485
],
[
478,
486
],
[
486,
487
],
[
487,
488
],
[
477,
489
],
[
489,
490
],
[
489,
491
],
[
477,
492
],
[
492,
493
],
[
492,
494
],
[
494,
495
],
[
494,
496
],
[
477,
497
],
[
497,
498
],
[
497,
499
],
[
499,
500
],
[
439,
501
],
[
501,
502
],
[
502,
503
],
[
502,
504
],
[
368,
505
],
[
505,
506
],
[
505,
507
],
[
507,
508
],
[
508,
509
],
[
509,
510
],
[
509,
511
],
[
508,
512
],
[
512,
513
],
[
513,
514
],
[
514,
515
],
[
515,
516
],
[
514,
517
],
[
507,
518
],
[
518,
519
],
[
519,
520
],
[
519,
521
],
[
505,
522
],
[
522,
523
],
[
368,
524
],
[
524,
525
],
[
524,
526
],
[
526,
527
],
[
527,
528
],
[
531,
529
],
[
541,
530
],
[
538,
531
],
[
531,
532
],
[
532,
533
],
[
532,
534
],
[
531,
535
],
[
535,
536
],
[
535,
537
],
[
538,
538
],
[
538,
539
],
[
538,
540
],
[
541,
541
],
[
541,
542
],
[
541,
543
],
[
531,
544
],
[
544,
545
],
[
544,
546
],
[
546,
547
],
[
524,
548
],
[
548,
549
],
[
368,
550
],
[
550,
551
],
[
550,
552
],
[
552,
553
],
[
552,
554
],
[
554,
555
],
[
0,
556
],
[
556,
557
],
[
556,
558
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.io.BufferedWriter;\nimport java.io.Writer;\nimport java.io.OutputStreamWriter;\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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n private boolean check(long a, long b) {\n return (a ^ b) >= 0;\n }\n\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long left = 0, right = 0;\n //++\n //--\n if (check(a, b)) {\n //++\n if (a >= 0) {\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.max(a, b);\n }\n right = Math.max(c, d);\n } else if (a < 0) {\n //--\n if (check(c, d)) {\n if (c >= 0) {\n //--++\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.min(a, b);\n }\n right = Math.min(c, d);\n }\n } else {\n //+-\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n // +- --\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n } else {\n long max_ab = Math.max(a, b);\n long min_ab = Math.min(a, b);\n long max_cd = Math.max(c, d);\n long min_cd = Math.min(c, d);\n if (max_ab * max_cd > min_cd * min_ab) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n }\n }\n out.print(left * right);\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void print(long i) {\n writer.print(i);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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.OutputStream;",
"OutputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.io.BufferedWriter;",
"BufferedWriter",
"java.io",
"import java.io.Writer;",
"Writer",
"java.io",
"import java.io.OutputStreamWriter;",
"OutputStreamWriter",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n private boolean check(long a, long b) {\n return (a ^ b) >= 0;\n }\n\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long left = 0, right = 0;\n //++\n //--\n if (check(a, b)) {\n //++\n if (a >= 0) {\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.max(a, b);\n }\n right = Math.max(c, d);\n } else if (a < 0) {\n //--\n if (check(c, d)) {\n if (c >= 0) {\n //--++\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.min(a, b);\n }\n right = Math.min(c, d);\n }\n } else {\n //+-\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n // +- --\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n } else {\n long max_ab = Math.max(a, b);\n long min_ab = Math.min(a, b);\n long max_cd = Math.max(c, d);\n long min_cd = Math.min(c, d);\n if (max_ab * max_cd > min_cd * min_ab) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n }\n }\n out.print(left * right);\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void print(long i) {\n writer.print(i);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"OutputWriter out = new OutputWriter(outputStream);",
"out",
"new OutputWriter(outputStream)",
"TaskB solver = new TaskB();",
"solver",
"new TaskB()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class TaskB {\n private boolean check(long a, long b) {\n return (a ^ b) >= 0;\n }\n\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long left = 0, right = 0;\n //++\n //--\n if (check(a, b)) {\n //++\n if (a >= 0) {\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.max(a, b);\n }\n right = Math.max(c, d);\n } else if (a < 0) {\n //--\n if (check(c, d)) {\n if (c >= 0) {\n //--++\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.min(a, b);\n }\n right = Math.min(c, d);\n }\n } else {\n //+-\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n // +- --\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n } else {\n long max_ab = Math.max(a, b);\n long min_ab = Math.min(a, b);\n long max_cd = Math.max(c, d);\n long min_cd = Math.min(c, d);\n if (max_ab * max_cd > min_cd * min_ab) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n }\n }\n out.print(left * right);\n }\n\n }",
"TaskB",
"private boolean check(long a, long b) {\n return (a ^ b) >= 0;\n }",
"check",
"{\n return (a ^ b) >= 0;\n }",
"return (a ^ b) >= 0;",
"(a ^ b) >= 0",
"(a ^ b)",
"a",
"b",
"0",
"long a",
"a",
"long b",
"b",
"public void solve(int testNumber, InputReader in, OutputWriter out) {\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long left = 0, right = 0;\n //++\n //--\n if (check(a, b)) {\n //++\n if (a >= 0) {\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.max(a, b);\n }\n right = Math.max(c, d);\n } else if (a < 0) {\n //--\n if (check(c, d)) {\n if (c >= 0) {\n //--++\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.min(a, b);\n }\n right = Math.min(c, d);\n }\n } else {\n //+-\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n // +- --\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n } else {\n long max_ab = Math.max(a, b);\n long min_ab = Math.min(a, b);\n long max_cd = Math.max(c, d);\n long min_cd = Math.min(c, d);\n if (max_ab * max_cd > min_cd * min_ab) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n }\n }\n out.print(left * right);\n }",
"solve",
"{\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long left = 0, right = 0;\n //++\n //--\n if (check(a, b)) {\n //++\n if (a >= 0) {\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.max(a, b);\n }\n right = Math.max(c, d);\n } else if (a < 0) {\n //--\n if (check(c, d)) {\n if (c >= 0) {\n //--++\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.min(a, b);\n }\n right = Math.min(c, d);\n }\n } else {\n //+-\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n // +- --\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n } else {\n long max_ab = Math.max(a, b);\n long min_ab = Math.min(a, b);\n long max_cd = Math.max(c, d);\n long min_cd = Math.min(c, d);\n if (max_ab * max_cd > min_cd * min_ab) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n }\n }\n out.print(left * right);\n }",
"long a = in.nextLong();",
"a",
"in.nextLong()",
"in.nextLong",
"in",
"long b = in.nextLong();",
"b",
"in.nextLong()",
"in.nextLong",
"in",
"long c = in.nextLong();",
"c",
"in.nextLong()",
"in.nextLong",
"in",
"long d = in.nextLong();",
"d",
"in.nextLong()",
"in.nextLong",
"in",
"long left = 0",
"left",
"0",
"right = 0;",
"right",
"0",
"if (check(a, b)) {\n //++\n if (a >= 0) {\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.max(a, b);\n }\n right = Math.max(c, d);\n } else if (a < 0) {\n //--\n if (check(c, d)) {\n if (c >= 0) {\n //--++\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.min(a, b);\n }\n right = Math.min(c, d);\n }\n } else {\n //+-\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n // +- --\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n } else {\n long max_ab = Math.max(a, b);\n long min_ab = Math.min(a, b);\n long max_cd = Math.max(c, d);\n long min_cd = Math.min(c, d);\n if (max_ab * max_cd > min_cd * min_ab) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n }\n }",
"check(a, b)",
"check",
"a",
"b",
"{\n //++\n if (a >= 0) {\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.max(a, b);\n }\n right = Math.max(c, d);\n } else if (a < 0) {\n //--\n if (check(c, d)) {\n if (c >= 0) {\n //--++\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.min(a, b);\n }\n right = Math.min(c, d);\n }\n }",
"if (a >= 0) {\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.max(a, b);\n }\n right = Math.max(c, d);\n } else if (a < 0) {\n //--\n if (check(c, d)) {\n if (c >= 0) {\n //--++\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.min(a, b);\n }\n right = Math.min(c, d);\n }",
"a >= 0",
"a",
"0",
"{\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.max(a, b);\n }\n right = Math.max(c, d);\n }",
"if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.max(a, b);\n }",
"check(c, d)",
"check",
"c",
"d",
"{\n if (c >= 0) {\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n }",
"if (c >= 0) {\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }",
"c >= 0",
"c",
"0",
"{\n left = Math.max(a, b);\n }",
"left = Math.max(a, b)",
"left",
"Math.max(a, b)",
"Math.max",
"Math",
"a",
"b",
"{\n left = Math.min(a, b);\n }",
"left = Math.min(a, b)",
"left",
"Math.min(a, b)",
"Math.min",
"Math",
"a",
"b",
"{\n left = Math.max(a, b);\n }",
"left = Math.max(a, b)",
"left",
"Math.max(a, b)",
"Math.max",
"Math",
"a",
"b",
"right = Math.max(c, d)",
"right",
"Math.max(c, d)",
"Math.max",
"Math",
"c",
"d",
"if (a < 0) {\n //--\n if (check(c, d)) {\n if (c >= 0) {\n //--++\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.min(a, b);\n }\n right = Math.min(c, d);\n }",
"a < 0",
"a",
"0",
"{\n //--\n if (check(c, d)) {\n if (c >= 0) {\n //--++\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.min(a, b);\n }\n right = Math.min(c, d);\n }",
"if (check(c, d)) {\n if (c >= 0) {\n //--++\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.min(a, b);\n }",
"check(c, d)",
"check",
"c",
"d",
"{\n if (c >= 0) {\n //--++\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n }",
"if (c >= 0) {\n //--++\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }",
"c >= 0",
"c",
"0",
"{\n //--++\n left = Math.max(a, b);\n }",
"left = Math.max(a, b)",
"left",
"Math.max(a, b)",
"Math.max",
"Math",
"a",
"b",
"{\n left = Math.min(a, b);\n }",
"left = Math.min(a, b)",
"left",
"Math.min(a, b)",
"Math.min",
"Math",
"a",
"b",
"{\n left = Math.min(a, b);\n }",
"left = Math.min(a, b)",
"left",
"Math.min(a, b)",
"Math.min",
"Math",
"a",
"b",
"right = Math.min(c, d)",
"right",
"Math.min(c, d)",
"Math.min",
"Math",
"c",
"d",
"{\n //+-\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n // +- --\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n } else {\n long max_ab = Math.max(a, b);\n long min_ab = Math.min(a, b);\n long max_cd = Math.max(c, d);\n long min_cd = Math.min(c, d);\n if (max_ab * max_cd > min_cd * min_ab) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n }\n }",
"if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n // +- --\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n } else {\n long max_ab = Math.max(a, b);\n long min_ab = Math.min(a, b);\n long max_cd = Math.max(c, d);\n long min_cd = Math.min(c, d);\n if (max_ab * max_cd > min_cd * min_ab) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n }",
"check(c, d)",
"check",
"c",
"d",
"{\n if (c >= 0) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n // +- --\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n }",
"if (c >= 0) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n // +- --\n left = Math.min(a, b);\n right = Math.min(c, d);\n }",
"c >= 0",
"c",
"0",
"{\n left = Math.max(a, b);\n right = Math.max(c, d);\n }",
"left = Math.max(a, b)",
"left",
"Math.max(a, b)",
"Math.max",
"Math",
"a",
"b",
"right = Math.max(c, d)",
"right",
"Math.max(c, d)",
"Math.max",
"Math",
"c",
"d",
"{\n // +- --\n left = Math.min(a, b);\n right = Math.min(c, d);\n }",
"left = Math.min(a, b)",
"left",
"Math.min(a, b)",
"Math.min",
"Math",
"a",
"b",
"right = Math.min(c, d)",
"right",
"Math.min(c, d)",
"Math.min",
"Math",
"c",
"d",
"{\n long max_ab = Math.max(a, b);\n long min_ab = Math.min(a, b);\n long max_cd = Math.max(c, d);\n long min_cd = Math.min(c, d);\n if (max_ab * max_cd > min_cd * min_ab) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n }",
"long max_ab = Math.max(a, b);",
"max_ab",
"Math.max(a, b)",
"Math.max",
"Math",
"a",
"b",
"long min_ab = Math.min(a, b);",
"min_ab",
"Math.min(a, b)",
"Math.min",
"Math",
"a",
"b",
"long max_cd = Math.max(c, d);",
"max_cd",
"Math.max(c, d)",
"Math.max",
"Math",
"c",
"d",
"long min_cd = Math.min(c, d);",
"min_cd",
"Math.min(c, d)",
"Math.min",
"Math",
"c",
"d",
"if (max_ab * max_cd > min_cd * min_ab) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n left = Math.min(a, b);\n right = Math.min(c, d);\n }",
"max_ab * max_cd > min_cd * min_ab",
"max_ab * max_cd",
"max_ab",
"max_cd",
"min_cd * min_ab",
"min_cd",
"min_ab",
"{\n left = Math.max(a, b);\n right = Math.max(c, d);\n }",
"left = Math.max(a, b)",
"left",
"Math.max(a, b)",
"Math.max",
"Math",
"a",
"b",
"right = Math.max(c, d)",
"right",
"Math.max(c, d)",
"Math.max",
"Math",
"c",
"d",
"{\n left = Math.min(a, b);\n right = Math.min(c, d);\n }",
"left = Math.min(a, b)",
"left",
"Math.min(a, b)",
"Math.min",
"Math",
"a",
"b",
"right = Math.min(c, d)",
"right",
"Math.min(c, d)",
"Math.min",
"Math",
"c",
"d",
"out.print(left * right)",
"out.print",
"out",
"left * right",
"left",
"right",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"OutputWriter out",
"out",
"static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void print(long i) {\n writer.print(i);\n }\n\n }",
"OutputWriter",
"private final PrintWriter writer;",
"writer",
"public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }",
"OutputWriter",
"{\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }",
"writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))",
"writer",
"new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))",
"OutputStream outputStream",
"outputStream",
"public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }",
"OutputWriter",
"{\n this.writer = new PrintWriter(writer);\n }",
"this.writer = new PrintWriter(writer)",
"this.writer",
"this",
"this.writer",
"new PrintWriter(writer)",
"Writer writer",
"writer",
"public void close() {\n writer.close();\n }",
"close",
"{\n writer.close();\n }",
"writer.close()",
"writer.close",
"writer",
"public void print(long i) {\n writer.print(i);\n }",
"print",
"{\n writer.print(i);\n }",
"writer.print(i)",
"writer.print",
"writer",
"i",
"long i",
"i",
"static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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 }",
"InputReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"private InputReader.SpaceCharFilter filter;",
"filter",
"public InputReader(InputStream stream) {\n this.stream = stream;\n }",
"InputReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"if (numChars == -1) {\n throw new InputMismatchException();\n }",
"numChars == -1",
"numChars",
"-1",
"1",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0) {\n return -1;\n }",
"numChars <= 0",
"numChars",
"0",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public 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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n private boolean check(long a, long b) {\n return (a ^ b) >= 0;\n }\n\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long left = 0, right = 0;\n //++\n //--\n if (check(a, b)) {\n //++\n if (a >= 0) {\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.max(a, b);\n }\n right = Math.max(c, d);\n } else if (a < 0) {\n //--\n if (check(c, d)) {\n if (c >= 0) {\n //--++\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.min(a, b);\n }\n right = Math.min(c, d);\n }\n } else {\n //+-\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n // +- --\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n } else {\n long max_ab = Math.max(a, b);\n long min_ab = Math.min(a, b);\n long max_cd = Math.max(c, d);\n long min_cd = Math.min(c, d);\n if (max_ab * max_cd > min_cd * min_ab) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n }\n }\n out.print(left * right);\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void print(long i) {\n writer.print(i);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n private boolean check(long a, long b) {\n return (a ^ b) >= 0;\n }\n\n public void solve(int testNumber, InputReader in, OutputWriter out) {\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long left = 0, right = 0;\n //++\n //--\n if (check(a, b)) {\n //++\n if (a >= 0) {\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.max(a, b);\n }\n right = Math.max(c, d);\n } else if (a < 0) {\n //--\n if (check(c, d)) {\n if (c >= 0) {\n //--++\n left = Math.max(a, b);\n } else {\n left = Math.min(a, b);\n }\n } else {\n left = Math.min(a, b);\n }\n right = Math.min(c, d);\n }\n } else {\n //+-\n if (check(c, d)) {\n if (c >= 0) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n // +- --\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n } else {\n long max_ab = Math.max(a, b);\n long min_ab = Math.min(a, b);\n long max_cd = Math.max(c, d);\n long min_cd = Math.min(c, d);\n if (max_ab * max_cd > min_cd * min_ab) {\n left = Math.max(a, b);\n right = Math.max(c, d);\n } else {\n left = Math.min(a, b);\n right = Math.min(c, d);\n }\n }\n }\n out.print(left * right);\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void close() {\n writer.close();\n }\n\n public void print(long i) {\n writer.print(i);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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.OutputStream;
import java.io.PrintWriter;
import java.io.BufferedWriter;
import java.io.Writer;
import java.io.OutputStreamWriter;
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;
InputReader in = new InputReader(inputStream);
OutputWriter out = new OutputWriter(outputStream);
TaskB solver = new TaskB();
solver.solve(1, in, out);
out.close();
}
static class TaskB {
private boolean check(long a, long b) {
return (a ^ b) >= 0;
}
public void solve(int testNumber, InputReader in, OutputWriter out) {
long a = in.nextLong();
long b = in.nextLong();
long c = in.nextLong();
long d = in.nextLong();
long left = 0, right = 0;
//++
//--
if (check(a, b)) {
//++
if (a >= 0) {
if (check(c, d)) {
if (c >= 0) {
left = Math.max(a, b);
} else {
left = Math.min(a, b);
}
} else {
left = Math.max(a, b);
}
right = Math.max(c, d);
} else if (a < 0) {
//--
if (check(c, d)) {
if (c >= 0) {
//--++
left = Math.max(a, b);
} else {
left = Math.min(a, b);
}
} else {
left = Math.min(a, b);
}
right = Math.min(c, d);
}
} else {
//+-
if (check(c, d)) {
if (c >= 0) {
left = Math.max(a, b);
right = Math.max(c, d);
} else {
// +- --
left = Math.min(a, b);
right = Math.min(c, d);
}
} else {
long max_ab = Math.max(a, b);
long min_ab = Math.min(a, b);
long max_cd = Math.max(c, d);
long min_cd = Math.min(c, d);
if (max_ab * max_cd > min_cd * min_ab) {
left = Math.max(a, b);
right = Math.max(c, d);
} else {
left = Math.min(a, b);
right = Math.min(c, d);
}
}
}
out.print(left * right);
}
}
static class OutputWriter {
private final PrintWriter writer;
public OutputWriter(OutputStream outputStream) {
writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
}
public OutputWriter(Writer writer) {
this.writer = new PrintWriter(writer);
}
public void close() {
writer.close();
}
public void print(long i) {
writer.print(i);
}
}
static class InputReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private InputReader.SpaceCharFilter filter;
public InputReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1) {
throw new InputMismatchException();
}
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0) {
return -1;
}
}
return buf[curChar++];
}
public 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,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
0,
13,
0,
13,
0,
13,
17,
14,
4,
18,
13,
0,
13,
4,
18,
13,
14,
4,
18,
13,
0,
13,
4,
18,
13,
14,
4,
18,
13,
0,
13,
4,
18,
13,
14,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
41,
13,
41,
13,
14,
2,
13,
17,
0,
13,
13,
0,
13,
13,
14,
2,
13,
17,
0,
13,
13,
0,
13,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
11,
19
],
[
19,
20
],
[
11,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
11,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
32,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
11,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
41,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
11,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
11,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
11,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
11,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
11,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
11,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
11,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
11,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
11,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
11,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
11,
128
],
[
128,
129
],
[
11,
130
],
[
130,
131
],
[
11,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
136,
138
],
[
132,
139
],
[
139,
140
],
[
139,
141
],
[
11,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
146,
147
],
[
146,
148
],
[
142,
149
],
[
149,
150
],
[
149,
151
],
[
11,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
11,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
158,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
9,
174
],
[
174,
175
]
]
| [
"\nimport java.util.Scanner;\nimport java.math.BigInteger;\n\n\nclass Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner input = new Scanner(System.in);\n\n\t\tint a,b,c,d;\n\t\ta = b = c = d = 0;\n\n\t\tif(input.hasNextInt())a = input.nextInt();\n\t\tif(input.hasNextInt())b = input.nextInt();\t\n\t\tif(input.hasNextInt())c = input.nextInt();\n\t\tif(input.hasNextInt())d = input.nextInt();\n\n\n\t\tBigInteger A = BigInteger.valueOf(a);\n\t\tBigInteger B = BigInteger.valueOf(b);\n\t\tBigInteger max1 = A.multiply(BigInteger.valueOf(c));\n\t\tBigInteger max2 = A.multiply(BigInteger.valueOf(d));\n\t\tBigInteger max3 = B.multiply(BigInteger.valueOf(c));\n\t\tBigInteger max4 = B.multiply(BigInteger.valueOf(d));\n\n\t\tint ca = max1.compareTo(max2);\n\t\tint cb = max3.compareTo(max4);\n\n\t\tBigInteger f1,f2;\n\t\tif(ca>0)f1 = max1;\n\t\telse f1 = max2;\n\t\tif(cb>0)f2 = max3;\n\t\telse f2 = max4;\n\n\t\tint cf = f1.compareTo(f2);\n\t\tif(cf>0)System.out.println(f1);\n\t\telse System.out.println(f2);\n\n\n\t\t\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"class Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner input = new Scanner(System.in);\n\n\t\tint a,b,c,d;\n\t\ta = b = c = d = 0;\n\n\t\tif(input.hasNextInt())a = input.nextInt();\n\t\tif(input.hasNextInt())b = input.nextInt();\t\n\t\tif(input.hasNextInt())c = input.nextInt();\n\t\tif(input.hasNextInt())d = input.nextInt();\n\n\n\t\tBigInteger A = BigInteger.valueOf(a);\n\t\tBigInteger B = BigInteger.valueOf(b);\n\t\tBigInteger max1 = A.multiply(BigInteger.valueOf(c));\n\t\tBigInteger max2 = A.multiply(BigInteger.valueOf(d));\n\t\tBigInteger max3 = B.multiply(BigInteger.valueOf(c));\n\t\tBigInteger max4 = B.multiply(BigInteger.valueOf(d));\n\n\t\tint ca = max1.compareTo(max2);\n\t\tint cb = max3.compareTo(max4);\n\n\t\tBigInteger f1,f2;\n\t\tif(ca>0)f1 = max1;\n\t\telse f1 = max2;\n\t\tif(cb>0)f2 = max3;\n\t\telse f2 = max4;\n\n\t\tint cf = f1.compareTo(f2);\n\t\tif(cf>0)System.out.println(f1);\n\t\telse System.out.println(f2);\n\n\n\t\t\n\t}\n}",
"Main",
"public static void main(String args[]){\n\t\t\n\t\tScanner input = new Scanner(System.in);\n\n\t\tint a,b,c,d;\n\t\ta = b = c = d = 0;\n\n\t\tif(input.hasNextInt())a = input.nextInt();\n\t\tif(input.hasNextInt())b = input.nextInt();\t\n\t\tif(input.hasNextInt())c = input.nextInt();\n\t\tif(input.hasNextInt())d = input.nextInt();\n\n\n\t\tBigInteger A = BigInteger.valueOf(a);\n\t\tBigInteger B = BigInteger.valueOf(b);\n\t\tBigInteger max1 = A.multiply(BigInteger.valueOf(c));\n\t\tBigInteger max2 = A.multiply(BigInteger.valueOf(d));\n\t\tBigInteger max3 = B.multiply(BigInteger.valueOf(c));\n\t\tBigInteger max4 = B.multiply(BigInteger.valueOf(d));\n\n\t\tint ca = max1.compareTo(max2);\n\t\tint cb = max3.compareTo(max4);\n\n\t\tBigInteger f1,f2;\n\t\tif(ca>0)f1 = max1;\n\t\telse f1 = max2;\n\t\tif(cb>0)f2 = max3;\n\t\telse f2 = max4;\n\n\t\tint cf = f1.compareTo(f2);\n\t\tif(cf>0)System.out.println(f1);\n\t\telse System.out.println(f2);\n\n\n\t\t\n\t}",
"main",
"{\n\t\t\n\t\tScanner input = new Scanner(System.in);\n\n\t\tint a,b,c,d;\n\t\ta = b = c = d = 0;\n\n\t\tif(input.hasNextInt())a = input.nextInt();\n\t\tif(input.hasNextInt())b = input.nextInt();\t\n\t\tif(input.hasNextInt())c = input.nextInt();\n\t\tif(input.hasNextInt())d = input.nextInt();\n\n\n\t\tBigInteger A = BigInteger.valueOf(a);\n\t\tBigInteger B = BigInteger.valueOf(b);\n\t\tBigInteger max1 = A.multiply(BigInteger.valueOf(c));\n\t\tBigInteger max2 = A.multiply(BigInteger.valueOf(d));\n\t\tBigInteger max3 = B.multiply(BigInteger.valueOf(c));\n\t\tBigInteger max4 = B.multiply(BigInteger.valueOf(d));\n\n\t\tint ca = max1.compareTo(max2);\n\t\tint cb = max3.compareTo(max4);\n\n\t\tBigInteger f1,f2;\n\t\tif(ca>0)f1 = max1;\n\t\telse f1 = max2;\n\t\tif(cb>0)f2 = max3;\n\t\telse f2 = max4;\n\n\t\tint cf = f1.compareTo(f2);\n\t\tif(cf>0)System.out.println(f1);\n\t\telse System.out.println(f2);\n\n\n\t\t\n\t}",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"int a",
"a",
"b",
"b",
"c",
"c",
"d;",
"d",
"a = b = c = d = 0",
"a",
"b = c = d = 0",
"b",
"c = d = 0",
"c",
"d = 0",
"d",
"0",
"if(input.hasNextInt())a = input.nextInt();",
"input.hasNextInt()",
"input.hasNextInt",
"input",
"a = input.nextInt()",
"a",
"input.nextInt()",
"input.nextInt",
"input",
"if(input.hasNextInt())b = input.nextInt();",
"input.hasNextInt()",
"input.hasNextInt",
"input",
"b = input.nextInt()",
"b",
"input.nextInt()",
"input.nextInt",
"input",
"if(input.hasNextInt())c = input.nextInt();",
"input.hasNextInt()",
"input.hasNextInt",
"input",
"c = input.nextInt()",
"c",
"input.nextInt()",
"input.nextInt",
"input",
"if(input.hasNextInt())d = input.nextInt();",
"input.hasNextInt()",
"input.hasNextInt",
"input",
"d = input.nextInt()",
"d",
"input.nextInt()",
"input.nextInt",
"input",
"BigInteger A = BigInteger.valueOf(a);",
"A",
"BigInteger.valueOf(a)",
"BigInteger.valueOf",
"BigInteger",
"a",
"BigInteger B = BigInteger.valueOf(b);",
"B",
"BigInteger.valueOf(b)",
"BigInteger.valueOf",
"BigInteger",
"b",
"BigInteger max1 = A.multiply(BigInteger.valueOf(c));",
"max1",
"A.multiply(BigInteger.valueOf(c))",
"A.multiply",
"A",
"BigInteger.valueOf(c)",
"BigInteger.valueOf",
"BigInteger",
"c",
"BigInteger max2 = A.multiply(BigInteger.valueOf(d));",
"max2",
"A.multiply(BigInteger.valueOf(d))",
"A.multiply",
"A",
"BigInteger.valueOf(d)",
"BigInteger.valueOf",
"BigInteger",
"d",
"BigInteger max3 = B.multiply(BigInteger.valueOf(c));",
"max3",
"B.multiply(BigInteger.valueOf(c))",
"B.multiply",
"B",
"BigInteger.valueOf(c)",
"BigInteger.valueOf",
"BigInteger",
"c",
"BigInteger max4 = B.multiply(BigInteger.valueOf(d));",
"max4",
"B.multiply(BigInteger.valueOf(d))",
"B.multiply",
"B",
"BigInteger.valueOf(d)",
"BigInteger.valueOf",
"BigInteger",
"d",
"int ca = max1.compareTo(max2);",
"ca",
"max1.compareTo(max2)",
"max1.compareTo",
"max1",
"max2",
"int cb = max3.compareTo(max4);",
"cb",
"max3.compareTo(max4)",
"max3.compareTo",
"max3",
"max4",
"BigInteger f1",
"f1",
"f2;",
"f2",
"if(ca>0)f1 = max1;\n\t\telse f1 = max2;",
"ca>0",
"ca",
"0",
"f1 = max1",
"f1",
"max1",
"f1 = max2",
"f1",
"max2",
"if(cb>0)f2 = max3;\n\t\telse f2 = max4;",
"cb>0",
"cb",
"0",
"f2 = max3",
"f2",
"max3",
"f2 = max4",
"f2",
"max4",
"int cf = f1.compareTo(f2);",
"cf",
"f1.compareTo(f2)",
"f1.compareTo",
"f1",
"f2",
"if(cf>0)System.out.println(f1);\n\t\telse System.out.println(f2);",
"cf>0",
"cf",
"0",
"System.out.println(f1)",
"System.out.println",
"System.out",
"System",
"System.out",
"f1",
"System.out.println(f2)",
"System.out.println",
"System.out",
"System",
"System.out",
"f2",
"String args[]",
"args"
]
|
import java.util.Scanner;
import java.math.BigInteger;
class Main{
public static void main(String args[]){
Scanner input = new Scanner(System.in);
int a,b,c,d;
a = b = c = d = 0;
if(input.hasNextInt())a = input.nextInt();
if(input.hasNextInt())b = input.nextInt();
if(input.hasNextInt())c = input.nextInt();
if(input.hasNextInt())d = input.nextInt();
BigInteger A = BigInteger.valueOf(a);
BigInteger B = BigInteger.valueOf(b);
BigInteger max1 = A.multiply(BigInteger.valueOf(c));
BigInteger max2 = A.multiply(BigInteger.valueOf(d));
BigInteger max3 = B.multiply(BigInteger.valueOf(c));
BigInteger max4 = B.multiply(BigInteger.valueOf(d));
int ca = max1.compareTo(max2);
int cb = max3.compareTo(max4);
BigInteger f1,f2;
if(ca>0)f1 = max1;
else f1 = max2;
if(cb>0)f2 = max3;
else f2 = max4;
int cf = f1.compareTo(f2);
if(cf>0)System.out.println(f1);
else System.out.println(f2);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
14,
2,
13,
13,
0,
13,
13,
0,
13,
2,
13,
13,
14,
2,
13,
13,
0,
13,
13,
0,
13,
2,
13,
13,
14,
2,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
8,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
6,
82
],
[
82,
83
]
]
| [
"import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tlong max = a * c;\n\t\tlong tmp = a * d;\n\t\tif (max < tmp)\n\t\t\tmax = tmp;\n\t\ttmp = b * c;\n\t\tif (max < tmp)\n\t\t\tmax = tmp;\n\t\ttmp = b * d;\n\t\tif (max < tmp)\n\t\t\tmax = tmp;\n\t\tSystem.out.println(max);\n\t\tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tlong max = a * c;\n\t\tlong tmp = a * d;\n\t\tif (max < tmp)\n\t\t\tmax = tmp;\n\t\ttmp = b * c;\n\t\tif (max < tmp)\n\t\t\tmax = tmp;\n\t\ttmp = b * d;\n\t\tif (max < tmp)\n\t\t\tmax = tmp;\n\t\tSystem.out.println(max);\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tlong max = a * c;\n\t\tlong tmp = a * d;\n\t\tif (max < tmp)\n\t\t\tmax = tmp;\n\t\ttmp = b * c;\n\t\tif (max < tmp)\n\t\t\tmax = tmp;\n\t\ttmp = b * d;\n\t\tif (max < tmp)\n\t\t\tmax = tmp;\n\t\tSystem.out.println(max);\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tlong max = a * c;\n\t\tlong tmp = a * d;\n\t\tif (max < tmp)\n\t\t\tmax = tmp;\n\t\ttmp = b * c;\n\t\tif (max < tmp)\n\t\t\tmax = tmp;\n\t\ttmp = b * d;\n\t\tif (max < tmp)\n\t\t\tmax = tmp;\n\t\tSystem.out.println(max);\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long max = a * c;",
"max",
"a * c",
"a",
"c",
"long tmp = a * d;",
"tmp",
"a * d",
"a",
"d",
"if (max < tmp)\n\t\t\tmax = tmp;",
"max < tmp",
"max",
"tmp",
"max = tmp",
"max",
"tmp",
"tmp = b * c",
"tmp",
"b * c",
"b",
"c",
"if (max < tmp)\n\t\t\tmax = tmp;",
"max < tmp",
"max",
"tmp",
"max = tmp",
"max",
"tmp",
"tmp = b * d",
"tmp",
"b * d",
"b",
"d",
"if (max < tmp)\n\t\t\tmax = tmp;",
"max < tmp",
"max",
"tmp",
"max = tmp",
"max",
"tmp",
"System.out.println(max)",
"System.out.println",
"System.out",
"System",
"System.out",
"max",
"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);
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
long max = a * c;
long tmp = a * d;
if (max < tmp)
max = tmp;
tmp = b * c;
if (max < tmp)
max = tmp;
tmp = b * d;
if (max < tmp)
max = tmp;
System.out.println(max);
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
4,
18,
13,
13,
13,
4,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
76,
5
],
[
76,
6
],
[
6,
7
],
[
6,
8
],
[
76,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
11,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
11,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
11,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
11,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
11,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
62,
66
],
[
11,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
9,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) {\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long w = d * b;\n long x = c * b;\n long y = a * c;\n long z = a * d;\n \n long ans = Math.max(Math.max(w, x), Math.max(y, z));\n System.out.println(ans);\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) {\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long w = d * b;\n long x = c * b;\n long y = a * c;\n long z = a * d;\n \n long ans = Math.max(Math.max(w, x), Math.max(y, z));\n System.out.println(ans);\n\n }\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long w = d * b;\n long x = c * b;\n long y = a * c;\n long z = a * d;\n \n long ans = Math.max(Math.max(w, x), Math.max(y, z));\n System.out.println(ans);\n\n }",
"main",
"{\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long w = d * b;\n long x = c * b;\n long y = a * c;\n long z = a * d;\n \n long ans = Math.max(Math.max(w, x), Math.max(y, z));\n System.out.println(ans);\n\n }",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long w = d * b;",
"w",
"d * b",
"d",
"b",
"long x = c * b;",
"x",
"c * b",
"c",
"b",
"long y = a * c;",
"y",
"a * c",
"a",
"c",
"long z = a * d;",
"z",
"a * d",
"a",
"d",
"long ans = Math.max(Math.max(w, x), Math.max(y, z));",
"ans",
"Math.max(Math.max(w, x), Math.max(y, z))",
"Math.max",
"Math",
"Math.max(w, x)",
"Math.max",
"Math",
"w",
"x",
"Math.max(y, z)",
"Math.max",
"Math",
"y",
"z",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) {\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long w = d * b;\n long x = c * b;\n long y = a * c;\n long z = a * d;\n \n long ans = Math.max(Math.max(w, x), Math.max(y, z));\n System.out.println(ans);\n\n }\n}",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) {\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long w = d * b;\n long x = c * b;\n long y = a * c;\n long z = a * d;\n \n long ans = Math.max(Math.max(w, x), Math.max(y, z));\n System.out.println(ans);\n\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
long w = d * b;
long x = c * b;
long y = a * c;
long z = a * d;
long ans = Math.max(Math.max(w, x), Math.max(y, z));
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
14,
2,
2,
13,
13,
13,
30,
0,
13,
2,
13,
13,
14,
2,
2,
13,
13,
13,
30,
0,
13,
2,
13,
13,
14,
2,
2,
13,
13,
13,
30,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
82,
5
],
[
82,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
6,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\n\t\tlong max = a * c;\n\n\t\tif(a * d > max) {\n\t\t\tmax = a * d;\n\t\t}\n\n\t\tif(b * c > max) {\n\t\t\tmax = b * c;\n\t\t}\n\n\t\tif(b * d > max) {\n\t\t\tmax = b * d;\n\t\t}\n\n\t\tSystem.out.println(max);\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\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\n\t\tlong max = a * c;\n\n\t\tif(a * d > max) {\n\t\t\tmax = a * d;\n\t\t}\n\n\t\tif(b * c > max) {\n\t\t\tmax = b * c;\n\t\t}\n\n\t\tif(b * d > max) {\n\t\t\tmax = b * d;\n\t\t}\n\n\t\tSystem.out.println(max);\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\n\t\tlong max = a * c;\n\n\t\tif(a * d > max) {\n\t\t\tmax = a * d;\n\t\t}\n\n\t\tif(b * c > max) {\n\t\t\tmax = b * c;\n\t\t}\n\n\t\tif(b * d > max) {\n\t\t\tmax = b * d;\n\t\t}\n\n\t\tSystem.out.println(max);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\n\t\tlong max = a * c;\n\n\t\tif(a * d > max) {\n\t\t\tmax = a * d;\n\t\t}\n\n\t\tif(b * c > max) {\n\t\t\tmax = b * c;\n\t\t}\n\n\t\tif(b * d > max) {\n\t\t\tmax = b * d;\n\t\t}\n\n\t\tSystem.out.println(max);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long max = a * c;",
"max",
"a * c",
"a",
"c",
"if(a * d > max) {\n\t\t\tmax = a * d;\n\t\t}",
"a * d > max",
"a * d",
"a",
"d",
"max",
"{\n\t\t\tmax = a * d;\n\t\t}",
"max = a * d",
"max",
"a * d",
"a",
"d",
"if(b * c > max) {\n\t\t\tmax = b * c;\n\t\t}",
"b * c > max",
"b * c",
"b",
"c",
"max",
"{\n\t\t\tmax = b * c;\n\t\t}",
"max = b * c",
"max",
"b * c",
"b",
"c",
"if(b * d > max) {\n\t\t\tmax = b * d;\n\t\t}",
"b * d > max",
"b * d",
"b",
"d",
"max",
"{\n\t\t\tmax = b * d;\n\t\t}",
"max = b * d",
"max",
"b * d",
"b",
"d",
"System.out.println(max)",
"System.out.println",
"System.out",
"System",
"System.out",
"max",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\n\t\tlong max = a * c;\n\n\t\tif(a * d > max) {\n\t\t\tmax = a * d;\n\t\t}\n\n\t\tif(b * c > max) {\n\t\t\tmax = b * c;\n\t\t}\n\n\t\tif(b * d > max) {\n\t\t\tmax = b * d;\n\t\t}\n\n\t\tSystem.out.println(max);\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\n\t\tlong max = a * c;\n\n\t\tif(a * d > max) {\n\t\t\tmax = a * d;\n\t\t}\n\n\t\tif(b * c > max) {\n\t\t\tmax = b * c;\n\t\t}\n\n\t\tif(b * d > max) {\n\t\t\tmax = b * d;\n\t\t}\n\n\t\tSystem.out.println(max);\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
long max = a * c;
if(a * d > max) {
max = a * d;
}
if(b * c > max) {
max = b * c;
}
if(b * d > max) {
max = b * d;
}
System.out.println(max);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
20,
28,
13,
13,
30,
30,
41,
13,
20,
4,
18,
13,
13,
41,
13,
20,
4,
18,
13,
4,
18,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
4,
18,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
4,
18,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
4,
18,
4,
18,
13,
17,
4,
18,
13,
17,
41,
13,
20,
28,
13,
13,
30,
30,
14,
2,
4,
18,
13,
13,
40,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
131,
14
],
[
131,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
17,
32
],
[
32,
33
],
[
32,
34
],
[
17,
35
],
[
35,
36
],
[
35,
37
],
[
35,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
17,
47
],
[
47,
48
],
[
47,
49
],
[
17,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
17,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
66,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
17,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
17,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
92,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
17,
102
],
[
102,
103
],
[
102,
104
],
[
17,
105
],
[
105,
106
],
[
105,
107
],
[
105,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
111,
116
],
[
116,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
17,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
15,
128
],
[
128,
129
],
[
0,
130
],
[
130,
131
],
[
130,
132
]
]
| [
"\nimport java.math.BigDecimal;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String x = sc.nextLine();\n String[] data = x.split(\" \");\n List<BigDecimal> dataDecimalList = new ArrayList();\n for(String a: data){\n BigDecimal bd = new BigDecimal(a);\n dataDecimalList.add(bd);\n }\n List<BigDecimal> targetList = new ArrayList();\n targetList.add(dataDecimalList.get(0).multiply(dataDecimalList.get(2)));\n targetList.add(dataDecimalList.get(0).multiply(dataDecimalList.get(3)));\n targetList.add(dataDecimalList.get(1).multiply(dataDecimalList.get(2)));\n targetList.add(dataDecimalList.get(1).multiply(dataDecimalList.get(3)));\n\n BigDecimal max = new BigDecimal(\"-1000000000000000000000000000000000000000000000000000000000000000000000000000\");\n for(BigDecimal target: targetList){\n if(max.compareTo(target) == -1){\n max = target;\n }\n }\n System.out.println(max);\n }\n}",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String x = sc.nextLine();\n String[] data = x.split(\" \");\n List<BigDecimal> dataDecimalList = new ArrayList();\n for(String a: data){\n BigDecimal bd = new BigDecimal(a);\n dataDecimalList.add(bd);\n }\n List<BigDecimal> targetList = new ArrayList();\n targetList.add(dataDecimalList.get(0).multiply(dataDecimalList.get(2)));\n targetList.add(dataDecimalList.get(0).multiply(dataDecimalList.get(3)));\n targetList.add(dataDecimalList.get(1).multiply(dataDecimalList.get(2)));\n targetList.add(dataDecimalList.get(1).multiply(dataDecimalList.get(3)));\n\n BigDecimal max = new BigDecimal(\"-1000000000000000000000000000000000000000000000000000000000000000000000000000\");\n for(BigDecimal target: targetList){\n if(max.compareTo(target) == -1){\n max = target;\n }\n }\n System.out.println(max);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String x = sc.nextLine();\n String[] data = x.split(\" \");\n List<BigDecimal> dataDecimalList = new ArrayList();\n for(String a: data){\n BigDecimal bd = new BigDecimal(a);\n dataDecimalList.add(bd);\n }\n List<BigDecimal> targetList = new ArrayList();\n targetList.add(dataDecimalList.get(0).multiply(dataDecimalList.get(2)));\n targetList.add(dataDecimalList.get(0).multiply(dataDecimalList.get(3)));\n targetList.add(dataDecimalList.get(1).multiply(dataDecimalList.get(2)));\n targetList.add(dataDecimalList.get(1).multiply(dataDecimalList.get(3)));\n\n BigDecimal max = new BigDecimal(\"-1000000000000000000000000000000000000000000000000000000000000000000000000000\");\n for(BigDecimal target: targetList){\n if(max.compareTo(target) == -1){\n max = target;\n }\n }\n System.out.println(max);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String x = sc.nextLine();\n String[] data = x.split(\" \");\n List<BigDecimal> dataDecimalList = new ArrayList();\n for(String a: data){\n BigDecimal bd = new BigDecimal(a);\n dataDecimalList.add(bd);\n }\n List<BigDecimal> targetList = new ArrayList();\n targetList.add(dataDecimalList.get(0).multiply(dataDecimalList.get(2)));\n targetList.add(dataDecimalList.get(0).multiply(dataDecimalList.get(3)));\n targetList.add(dataDecimalList.get(1).multiply(dataDecimalList.get(2)));\n targetList.add(dataDecimalList.get(1).multiply(dataDecimalList.get(3)));\n\n BigDecimal max = new BigDecimal(\"-1000000000000000000000000000000000000000000000000000000000000000000000000000\");\n for(BigDecimal target: targetList){\n if(max.compareTo(target) == -1){\n max = target;\n }\n }\n System.out.println(max);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String x = sc.nextLine();",
"x",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] data = x.split(\" \");",
"data",
"x.split(\" \")",
"x.split",
"x",
"\" \"",
"List<BigDecimal> dataDecimalList = new ArrayList();",
"dataDecimalList",
"new ArrayList()",
"for(String a: data){\n BigDecimal bd = new BigDecimal(a);\n dataDecimalList.add(bd);\n }",
"String a",
"data",
"{\n BigDecimal bd = new BigDecimal(a);\n dataDecimalList.add(bd);\n }",
"{\n BigDecimal bd = new BigDecimal(a);\n dataDecimalList.add(bd);\n }",
"BigDecimal bd = new BigDecimal(a);",
"bd",
"new BigDecimal(a)",
"dataDecimalList.add(bd)",
"dataDecimalList.add",
"dataDecimalList",
"bd",
"List<BigDecimal> targetList = new ArrayList();",
"targetList",
"new ArrayList()",
"targetList.add(dataDecimalList.get(0).multiply(dataDecimalList.get(2)))",
"targetList.add",
"targetList",
"dataDecimalList.get(0).multiply(dataDecimalList.get(2))",
"dataDecimalList.get(0).multiply",
"dataDecimalList.get(0)",
"dataDecimalList.get",
"dataDecimalList",
"0",
"dataDecimalList.get(2)",
"dataDecimalList.get",
"dataDecimalList",
"2",
"targetList.add(dataDecimalList.get(0).multiply(dataDecimalList.get(3)))",
"targetList.add",
"targetList",
"dataDecimalList.get(0).multiply(dataDecimalList.get(3))",
"dataDecimalList.get(0).multiply",
"dataDecimalList.get(0)",
"dataDecimalList.get",
"dataDecimalList",
"0",
"dataDecimalList.get(3)",
"dataDecimalList.get",
"dataDecimalList",
"3",
"targetList.add(dataDecimalList.get(1).multiply(dataDecimalList.get(2)))",
"targetList.add",
"targetList",
"dataDecimalList.get(1).multiply(dataDecimalList.get(2))",
"dataDecimalList.get(1).multiply",
"dataDecimalList.get(1)",
"dataDecimalList.get",
"dataDecimalList",
"1",
"dataDecimalList.get(2)",
"dataDecimalList.get",
"dataDecimalList",
"2",
"targetList.add(dataDecimalList.get(1).multiply(dataDecimalList.get(3)))",
"targetList.add",
"targetList",
"dataDecimalList.get(1).multiply(dataDecimalList.get(3))",
"dataDecimalList.get(1).multiply",
"dataDecimalList.get(1)",
"dataDecimalList.get",
"dataDecimalList",
"1",
"dataDecimalList.get(3)",
"dataDecimalList.get",
"dataDecimalList",
"3",
"BigDecimal max = new BigDecimal(\"-1000000000000000000000000000000000000000000000000000000000000000000000000000\");",
"max",
"new BigDecimal(\"-1000000000000000000000000000000000000000000000000000000000000000000000000000\")",
"for(BigDecimal target: targetList){\n if(max.compareTo(target) == -1){\n max = target;\n }\n }",
"BigDecimal target",
"targetList",
"{\n if(max.compareTo(target) == -1){\n max = target;\n }\n }",
"{\n if(max.compareTo(target) == -1){\n max = target;\n }\n }",
"if(max.compareTo(target) == -1){\n max = target;\n }",
"max.compareTo(target) == -1",
"max.compareTo(target)",
"max.compareTo",
"max",
"target",
"-1",
"1",
"{\n max = target;\n }",
"max = target",
"max",
"target",
"System.out.println(max)",
"System.out.println",
"System.out",
"System",
"System.out",
"max",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String x = sc.nextLine();\n String[] data = x.split(\" \");\n List<BigDecimal> dataDecimalList = new ArrayList();\n for(String a: data){\n BigDecimal bd = new BigDecimal(a);\n dataDecimalList.add(bd);\n }\n List<BigDecimal> targetList = new ArrayList();\n targetList.add(dataDecimalList.get(0).multiply(dataDecimalList.get(2)));\n targetList.add(dataDecimalList.get(0).multiply(dataDecimalList.get(3)));\n targetList.add(dataDecimalList.get(1).multiply(dataDecimalList.get(2)));\n targetList.add(dataDecimalList.get(1).multiply(dataDecimalList.get(3)));\n\n BigDecimal max = new BigDecimal(\"-1000000000000000000000000000000000000000000000000000000000000000000000000000\");\n for(BigDecimal target: targetList){\n if(max.compareTo(target) == -1){\n max = target;\n }\n }\n System.out.println(max);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String x = sc.nextLine();\n String[] data = x.split(\" \");\n List<BigDecimal> dataDecimalList = new ArrayList();\n for(String a: data){\n BigDecimal bd = new BigDecimal(a);\n dataDecimalList.add(bd);\n }\n List<BigDecimal> targetList = new ArrayList();\n targetList.add(dataDecimalList.get(0).multiply(dataDecimalList.get(2)));\n targetList.add(dataDecimalList.get(0).multiply(dataDecimalList.get(3)));\n targetList.add(dataDecimalList.get(1).multiply(dataDecimalList.get(2)));\n targetList.add(dataDecimalList.get(1).multiply(dataDecimalList.get(3)));\n\n BigDecimal max = new BigDecimal(\"-1000000000000000000000000000000000000000000000000000000000000000000000000000\");\n for(BigDecimal target: targetList){\n if(max.compareTo(target) == -1){\n max = target;\n }\n }\n System.out.println(max);\n }\n}",
"Main"
]
|
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
String x = sc.nextLine();
String[] data = x.split(" ");
List<BigDecimal> dataDecimalList = new ArrayList();
for(String a: data){
BigDecimal bd = new BigDecimal(a);
dataDecimalList.add(bd);
}
List<BigDecimal> targetList = new ArrayList();
targetList.add(dataDecimalList.get(0).multiply(dataDecimalList.get(2)));
targetList.add(dataDecimalList.get(0).multiply(dataDecimalList.get(3)));
targetList.add(dataDecimalList.get(1).multiply(dataDecimalList.get(2)));
targetList.add(dataDecimalList.get(1).multiply(dataDecimalList.get(3)));
BigDecimal max = new BigDecimal("-1000000000000000000000000000000000000000000000000000000000000000000000000000");
for(BigDecimal target: targetList){
if(max.compareTo(target) == -1){
max = target;
}
}
System.out.println(max);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
14,
2,
13,
17,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
2,
13,
13,
14,
2,
13,
17,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
13,
14,
2,
13,
17,
30,
14,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
2,
13,
13,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
2,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
193,
5
],
[
193,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
28,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
8,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
61,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
74,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
56,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
101,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
124,
126
],
[
119,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
133,
134
],
[
133,
135
],
[
119,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
114,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
151,
152
],
[
151,
153
],
[
96,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
160,
165
],
[
165,
166
],
[
165,
167
],
[
155,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
178,
179
],
[
178,
180
],
[
168,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
182,
187
],
[
187,
188
],
[
187,
189
],
[
6,
190
],
[
190,
191
],
[
0,
192
],
[
192,
193
],
[
192,
194
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long[] params = new long[4];\n for (int i = 0; i < 4; i++) {\n params[i] = scanner.nextInt();\n }\n long a = params[0];\n long b = params[1];\n long c = params[2];\n long d = params[3];\n\n if (a >= 0) {\n if (c >= 0) {\n System.out.println(b * d);\n } else if (d >= 0) {\n System.out.println(b * d);\n } else {\n System.out.println(a * d);\n }\n } else if (b >= 0) {\n\n if (c >= 0) {\n System.out.println(b * d);\n } else if (d >= 0) {\n // a<0 b>=0 c<0 d>=0\n if (a * c > b * d) {\n System.out.println(a * c);\n } else {\n System.out.println(b * d);\n }\n } else {\n System.out.println(a * c);\n }\n\n } else {\n\n if (c >= 0) {\n System.out.println(b * c);\n } else if (d >= 0) {\n System.out.println(a * c);\n } else {\n System.out.println(a * c);\n }\n\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long[] params = new long[4];\n for (int i = 0; i < 4; i++) {\n params[i] = scanner.nextInt();\n }\n long a = params[0];\n long b = params[1];\n long c = params[2];\n long d = params[3];\n\n if (a >= 0) {\n if (c >= 0) {\n System.out.println(b * d);\n } else if (d >= 0) {\n System.out.println(b * d);\n } else {\n System.out.println(a * d);\n }\n } else if (b >= 0) {\n\n if (c >= 0) {\n System.out.println(b * d);\n } else if (d >= 0) {\n // a<0 b>=0 c<0 d>=0\n if (a * c > b * d) {\n System.out.println(a * c);\n } else {\n System.out.println(b * d);\n }\n } else {\n System.out.println(a * c);\n }\n\n } else {\n\n if (c >= 0) {\n System.out.println(b * c);\n } else if (d >= 0) {\n System.out.println(a * c);\n } else {\n System.out.println(a * c);\n }\n\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long[] params = new long[4];\n for (int i = 0; i < 4; i++) {\n params[i] = scanner.nextInt();\n }\n long a = params[0];\n long b = params[1];\n long c = params[2];\n long d = params[3];\n\n if (a >= 0) {\n if (c >= 0) {\n System.out.println(b * d);\n } else if (d >= 0) {\n System.out.println(b * d);\n } else {\n System.out.println(a * d);\n }\n } else if (b >= 0) {\n\n if (c >= 0) {\n System.out.println(b * d);\n } else if (d >= 0) {\n // a<0 b>=0 c<0 d>=0\n if (a * c > b * d) {\n System.out.println(a * c);\n } else {\n System.out.println(b * d);\n }\n } else {\n System.out.println(a * c);\n }\n\n } else {\n\n if (c >= 0) {\n System.out.println(b * c);\n } else if (d >= 0) {\n System.out.println(a * c);\n } else {\n System.out.println(a * c);\n }\n\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n long[] params = new long[4];\n for (int i = 0; i < 4; i++) {\n params[i] = scanner.nextInt();\n }\n long a = params[0];\n long b = params[1];\n long c = params[2];\n long d = params[3];\n\n if (a >= 0) {\n if (c >= 0) {\n System.out.println(b * d);\n } else if (d >= 0) {\n System.out.println(b * d);\n } else {\n System.out.println(a * d);\n }\n } else if (b >= 0) {\n\n if (c >= 0) {\n System.out.println(b * d);\n } else if (d >= 0) {\n // a<0 b>=0 c<0 d>=0\n if (a * c > b * d) {\n System.out.println(a * c);\n } else {\n System.out.println(b * d);\n }\n } else {\n System.out.println(a * c);\n }\n\n } else {\n\n if (c >= 0) {\n System.out.println(b * c);\n } else if (d >= 0) {\n System.out.println(a * c);\n } else {\n System.out.println(a * c);\n }\n\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"long[] params = new long[4];",
"params",
"new long[4]",
"4",
"for (int i = 0; i < 4; i++) {\n params[i] = scanner.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n params[i] = scanner.nextInt();\n }",
"{\n params[i] = scanner.nextInt();\n }",
"params[i] = scanner.nextInt()",
"params[i]",
"params",
"i",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long a = params[0];",
"a",
"params[0]",
"params",
"0",
"long b = params[1];",
"b",
"params[1]",
"params",
"1",
"long c = params[2];",
"c",
"params[2]",
"params",
"2",
"long d = params[3];",
"d",
"params[3]",
"params",
"3",
"if (a >= 0) {\n if (c >= 0) {\n System.out.println(b * d);\n } else if (d >= 0) {\n System.out.println(b * d);\n } else {\n System.out.println(a * d);\n }\n } else if (b >= 0) {\n\n if (c >= 0) {\n System.out.println(b * d);\n } else if (d >= 0) {\n // a<0 b>=0 c<0 d>=0\n if (a * c > b * d) {\n System.out.println(a * c);\n } else {\n System.out.println(b * d);\n }\n } else {\n System.out.println(a * c);\n }\n\n } else {\n\n if (c >= 0) {\n System.out.println(b * c);\n } else if (d >= 0) {\n System.out.println(a * c);\n } else {\n System.out.println(a * c);\n }\n\n }",
"a >= 0",
"a",
"0",
"{\n if (c >= 0) {\n System.out.println(b * d);\n } else if (d >= 0) {\n System.out.println(b * d);\n } else {\n System.out.println(a * d);\n }\n }",
"if (c >= 0) {\n System.out.println(b * d);\n } else if (d >= 0) {\n System.out.println(b * d);\n } else {\n System.out.println(a * d);\n }",
"c >= 0",
"c",
"0",
"{\n System.out.println(b * d);\n }",
"System.out.println(b * d)",
"System.out.println",
"System.out",
"System",
"System.out",
"b * d",
"b",
"d",
"if (d >= 0) {\n System.out.println(b * d);\n } else {\n System.out.println(a * d);\n }",
"d >= 0",
"d",
"0",
"{\n System.out.println(b * d);\n }",
"System.out.println(b * d)",
"System.out.println",
"System.out",
"System",
"System.out",
"b * d",
"b",
"d",
"{\n System.out.println(a * d);\n }",
"System.out.println(a * d)",
"System.out.println",
"System.out",
"System",
"System.out",
"a * d",
"a",
"d",
"if (b >= 0) {\n\n if (c >= 0) {\n System.out.println(b * d);\n } else if (d >= 0) {\n // a<0 b>=0 c<0 d>=0\n if (a * c > b * d) {\n System.out.println(a * c);\n } else {\n System.out.println(b * d);\n }\n } else {\n System.out.println(a * c);\n }\n\n } else {\n\n if (c >= 0) {\n System.out.println(b * c);\n } else if (d >= 0) {\n System.out.println(a * c);\n } else {\n System.out.println(a * c);\n }\n\n }",
"b >= 0",
"b",
"0",
"{\n\n if (c >= 0) {\n System.out.println(b * d);\n } else if (d >= 0) {\n // a<0 b>=0 c<0 d>=0\n if (a * c > b * d) {\n System.out.println(a * c);\n } else {\n System.out.println(b * d);\n }\n } else {\n System.out.println(a * c);\n }\n\n }",
"if (c >= 0) {\n System.out.println(b * d);\n } else if (d >= 0) {\n // a<0 b>=0 c<0 d>=0\n if (a * c > b * d) {\n System.out.println(a * c);\n } else {\n System.out.println(b * d);\n }\n } else {\n System.out.println(a * c);\n }",
"c >= 0",
"c",
"0",
"{\n System.out.println(b * d);\n }",
"System.out.println(b * d)",
"System.out.println",
"System.out",
"System",
"System.out",
"b * d",
"b",
"d",
"if (d >= 0) {\n // a<0 b>=0 c<0 d>=0\n if (a * c > b * d) {\n System.out.println(a * c);\n } else {\n System.out.println(b * d);\n }\n } else {\n System.out.println(a * c);\n }",
"d >= 0",
"d",
"0",
"{\n // a<0 b>=0 c<0 d>=0\n if (a * c > b * d) {\n System.out.println(a * c);\n } else {\n System.out.println(b * d);\n }\n }",
"if (a * c > b * d) {\n System.out.println(a * c);\n } else {\n System.out.println(b * d);\n }",
"a * c > b * d",
"a * c",
"a",
"c",
"b * d",
"b",
"d",
"{\n System.out.println(a * c);\n }",
"System.out.println(a * c)",
"System.out.println",
"System.out",
"System",
"System.out",
"a * c",
"a",
"c",
"{\n System.out.println(b * d);\n }",
"System.out.println(b * d)",
"System.out.println",
"System.out",
"System",
"System.out",
"b * d",
"b",
"d",
"{\n System.out.println(a * c);\n }",
"System.out.println(a * c)",
"System.out.println",
"System.out",
"System",
"System.out",
"a * c",
"a",
"c",
"{\n\n if (c >= 0) {\n System.out.println(b * c);\n } else if (d >= 0) {\n System.out.println(a * c);\n } else {\n System.out.println(a * c);\n }\n\n }",
"if (c >= 0) {\n System.out.println(b * c);\n } else if (d >= 0) {\n System.out.println(a * c);\n } else {\n System.out.println(a * c);\n }",
"c >= 0",
"c",
"0",
"{\n System.out.println(b * c);\n }",
"System.out.println(b * c)",
"System.out.println",
"System.out",
"System",
"System.out",
"b * c",
"b",
"c",
"if (d >= 0) {\n System.out.println(a * c);\n } else {\n System.out.println(a * c);\n }",
"d >= 0",
"d",
"0",
"{\n System.out.println(a * c);\n }",
"System.out.println(a * c)",
"System.out.println",
"System.out",
"System",
"System.out",
"a * c",
"a",
"c",
"{\n System.out.println(a * c);\n }",
"System.out.println(a * c)",
"System.out.println",
"System.out",
"System",
"System.out",
"a * c",
"a",
"c",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long[] params = new long[4];\n for (int i = 0; i < 4; i++) {\n params[i] = scanner.nextInt();\n }\n long a = params[0];\n long b = params[1];\n long c = params[2];\n long d = params[3];\n\n if (a >= 0) {\n if (c >= 0) {\n System.out.println(b * d);\n } else if (d >= 0) {\n System.out.println(b * d);\n } else {\n System.out.println(a * d);\n }\n } else if (b >= 0) {\n\n if (c >= 0) {\n System.out.println(b * d);\n } else if (d >= 0) {\n // a<0 b>=0 c<0 d>=0\n if (a * c > b * d) {\n System.out.println(a * c);\n } else {\n System.out.println(b * d);\n }\n } else {\n System.out.println(a * c);\n }\n\n } else {\n\n if (c >= 0) {\n System.out.println(b * c);\n } else if (d >= 0) {\n System.out.println(a * c);\n } else {\n System.out.println(a * c);\n }\n\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long[] params = new long[4];\n for (int i = 0; i < 4; i++) {\n params[i] = scanner.nextInt();\n }\n long a = params[0];\n long b = params[1];\n long c = params[2];\n long d = params[3];\n\n if (a >= 0) {\n if (c >= 0) {\n System.out.println(b * d);\n } else if (d >= 0) {\n System.out.println(b * d);\n } else {\n System.out.println(a * d);\n }\n } else if (b >= 0) {\n\n if (c >= 0) {\n System.out.println(b * d);\n } else if (d >= 0) {\n // a<0 b>=0 c<0 d>=0\n if (a * c > b * d) {\n System.out.println(a * c);\n } else {\n System.out.println(b * d);\n }\n } else {\n System.out.println(a * c);\n }\n\n } else {\n\n if (c >= 0) {\n System.out.println(b * c);\n } else if (d >= 0) {\n System.out.println(a * c);\n } else {\n System.out.println(a * c);\n }\n\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
long[] params = new long[4];
for (int i = 0; i < 4; i++) {
params[i] = scanner.nextInt();
}
long a = params[0];
long b = params[1];
long c = params[2];
long d = params[3];
if (a >= 0) {
if (c >= 0) {
System.out.println(b * d);
} else if (d >= 0) {
System.out.println(b * d);
} else {
System.out.println(a * d);
}
} else if (b >= 0) {
if (c >= 0) {
System.out.println(b * d);
} else if (d >= 0) {
// a<0 b>=0 c<0 d>=0
if (a * c > b * d) {
System.out.println(a * c);
} else {
System.out.println(b * d);
}
} else {
System.out.println(a * c);
}
} else {
if (c >= 0) {
System.out.println(b * c);
} else if (d >= 0) {
System.out.println(a * c);
} else {
System.out.println(a * c);
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
91,
35
],
[
91,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
38,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
38,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
38,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
38,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
70,
76
],
[
76,
77
],
[
76,
78
],
[
67,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
82,
84
],
[
79,
85
],
[
85,
86
],
[
85,
87
],
[
36,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
]
| [
"import java.io.*;\nimport java.math.*;\nimport java.security.*;\nimport java.text.*;\nimport java.util.*;\nimport java.util.concurrent.*;\nimport java.util.function.*;\nimport java.util.regex.*;\nimport java.util.stream.*;\nimport static java.util.stream.Collectors.joining;\nimport static java.util.stream.Collectors.toList;\n\npublic class Main\n{\n public static void main(String[] args)\n {\n Scanner in = new Scanner(System.in);\n long a=in.nextLong();\n long b=in.nextLong();\n long c=in.nextLong();\n long d=in.nextLong();\n System.out.println(Math.max(Math.max(a*c, a*d), Math.max(b*c, b*d)));\n \n \n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.security.*;",
"security.*",
"java",
"import java.text.*;",
"text.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.util.concurrent.*;",
"concurrent.*",
"java.util",
"import java.util.function.*;",
"function.*",
"java.util",
"import java.util.regex.*;",
"regex.*",
"java.util",
"import java.util.stream.*;",
"stream.*",
"java.util",
"import static java.util.stream.Collectors.joining;",
"import static java.util.stream.Collectors.joining;",
"import static java.util.stream.Collectors.joining;",
"import static java.util.stream.Collectors.toList;",
"import static java.util.stream.Collectors.toList;",
"import static java.util.stream.Collectors.toList;",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner in = new Scanner(System.in);\n long a=in.nextLong();\n long b=in.nextLong();\n long c=in.nextLong();\n long d=in.nextLong();\n System.out.println(Math.max(Math.max(a*c, a*d), Math.max(b*c, b*d)));\n \n \n }\n}",
"Main",
"public static void main(String[] args)\n {\n Scanner in = new Scanner(System.in);\n long a=in.nextLong();\n long b=in.nextLong();\n long c=in.nextLong();\n long d=in.nextLong();\n System.out.println(Math.max(Math.max(a*c, a*d), Math.max(b*c, b*d)));\n \n \n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n long a=in.nextLong();\n long b=in.nextLong();\n long c=in.nextLong();\n long d=in.nextLong();\n System.out.println(Math.max(Math.max(a*c, a*d), Math.max(b*c, b*d)));\n \n \n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"long a=in.nextLong();",
"a",
"in.nextLong()",
"in.nextLong",
"in",
"long b=in.nextLong();",
"b",
"in.nextLong()",
"in.nextLong",
"in",
"long c=in.nextLong();",
"c",
"in.nextLong()",
"in.nextLong",
"in",
"long d=in.nextLong();",
"d",
"in.nextLong()",
"in.nextLong",
"in",
"System.out.println(Math.max(Math.max(a*c, a*d), Math.max(b*c, b*d)))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.max(Math.max(a*c, a*d), Math.max(b*c, b*d))",
"Math.max",
"Math",
"Math.max(a*c, a*d)",
"Math.max",
"Math",
"a*c",
"a",
"c",
"a*d",
"a",
"d",
"Math.max(b*c, b*d)",
"Math.max",
"Math",
"b*c",
"b",
"c",
"b*d",
"b",
"d",
"String[] args",
"args",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner in = new Scanner(System.in);\n long a=in.nextLong();\n long b=in.nextLong();\n long c=in.nextLong();\n long d=in.nextLong();\n System.out.println(Math.max(Math.max(a*c, a*d), Math.max(b*c, b*d)));\n \n \n }\n}",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner in = new Scanner(System.in);\n long a=in.nextLong();\n long b=in.nextLong();\n long c=in.nextLong();\n long d=in.nextLong();\n System.out.println(Math.max(Math.max(a*c, a*d), Math.max(b*c, b*d)));\n \n \n }\n}",
"Main"
]
| import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.regex.*;
import java.util.stream.*;
import static java.util.stream.Collectors.joining;
import static java.util.stream.Collectors.toList;
public class Main
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
long a=in.nextLong();
long b=in.nextLong();
long c=in.nextLong();
long d=in.nextLong();
System.out.println(Math.max(Math.max(a*c, a*d), Math.max(b*c, b*d)));
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
41,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
70,
5
],
[
70,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
37,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
8,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
48,
50
],
[
45,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
59,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
6,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String... args) {\n Scanner sc = new Scanner(System.in);\n\n long tmpA = sc.nextLong();\n long tmpB = sc.nextLong();\n long tmpC = sc.nextLong();\n long tmpD = sc.nextLong();\n long a = Math.max(tmpA * tmpC, tmpA * tmpD);\n long b = Math.max(tmpB * tmpC, tmpB * tmpD);\n\n System.out.println(Math.max(a, b));\n\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\n long tmpA = sc.nextLong();\n long tmpB = sc.nextLong();\n long tmpC = sc.nextLong();\n long tmpD = sc.nextLong();\n long a = Math.max(tmpA * tmpC, tmpA * tmpD);\n long b = Math.max(tmpB * tmpC, tmpB * tmpD);\n\n System.out.println(Math.max(a, b));\n\n sc.close();\n }\n}",
"Main",
"public static void main(String... args) {\n Scanner sc = new Scanner(System.in);\n\n long tmpA = sc.nextLong();\n long tmpB = sc.nextLong();\n long tmpC = sc.nextLong();\n long tmpD = sc.nextLong();\n long a = Math.max(tmpA * tmpC, tmpA * tmpD);\n long b = Math.max(tmpB * tmpC, tmpB * tmpD);\n\n System.out.println(Math.max(a, b));\n\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n long tmpA = sc.nextLong();\n long tmpB = sc.nextLong();\n long tmpC = sc.nextLong();\n long tmpD = sc.nextLong();\n long a = Math.max(tmpA * tmpC, tmpA * tmpD);\n long b = Math.max(tmpB * tmpC, tmpB * tmpD);\n\n System.out.println(Math.max(a, b));\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long tmpA = sc.nextLong();",
"tmpA",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long tmpB = sc.nextLong();",
"tmpB",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long tmpC = sc.nextLong();",
"tmpC",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long tmpD = sc.nextLong();",
"tmpD",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long a = Math.max(tmpA * tmpC, tmpA * tmpD);",
"a",
"Math.max(tmpA * tmpC, tmpA * tmpD)",
"Math.max",
"Math",
"tmpA * tmpC",
"tmpA",
"tmpC",
"tmpA * tmpD",
"tmpA",
"tmpD",
"long b = Math.max(tmpB * tmpC, tmpB * tmpD);",
"b",
"Math.max(tmpB * tmpC, tmpB * tmpD)",
"Math.max",
"Math",
"tmpB * tmpC",
"tmpB",
"tmpC",
"tmpB * tmpD",
"tmpB",
"tmpD",
"System.out.println(Math.max(a, b))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.max(a, b)",
"Math.max",
"Math",
"a",
"b",
"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\n long tmpA = sc.nextLong();\n long tmpB = sc.nextLong();\n long tmpC = sc.nextLong();\n long tmpD = sc.nextLong();\n long a = Math.max(tmpA * tmpC, tmpA * tmpD);\n long b = Math.max(tmpB * tmpC, tmpB * tmpD);\n\n System.out.println(Math.max(a, b));\n\n sc.close();\n }\n}",
"public class Main {\n public static void main(String... args) {\n Scanner sc = new Scanner(System.in);\n\n long tmpA = sc.nextLong();\n long tmpB = sc.nextLong();\n long tmpC = sc.nextLong();\n long tmpD = sc.nextLong();\n long a = Math.max(tmpA * tmpC, tmpA * tmpD);\n long b = Math.max(tmpB * tmpC, tmpB * tmpD);\n\n System.out.println(Math.max(a, b));\n\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String... args) {
Scanner sc = new Scanner(System.in);
long tmpA = sc.nextLong();
long tmpB = sc.nextLong();
long tmpC = sc.nextLong();
long tmpD = sc.nextLong();
long a = Math.max(tmpA * tmpC, tmpA * tmpD);
long b = Math.max(tmpB * tmpC, tmpB * tmpD);
System.out.println(Math.max(a, b));
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
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,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
13,
0,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
13,
18,
13,
13,
23,
13,
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,
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,
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
],
[
595,
8
],
[
595,
9
],
[
9,
10
],
[
9,
11
],
[
595,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
15,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
12,
24
],
[
24,
25
],
[
595,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
32,
34
],
[
28,
35
],
[
35,
36
],
[
35,
37
],
[
28,
38
],
[
38,
39
],
[
38,
40
],
[
28,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
46,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
46,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
70,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
79,
81
],
[
76,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
85,
87
],
[
82,
88
],
[
88,
89
],
[
88,
90
],
[
28,
91
],
[
91,
92
],
[
92,
93
],
[
28,
94
],
[
94,
95
],
[
95,
96
],
[
26,
97
],
[
97,
98
],
[
595,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
99,
103
],
[
103,
104
],
[
99,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
111,
113
],
[
105,
114
],
[
114,
115
],
[
105,
116
],
[
116,
117
],
[
99,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
124,
126
],
[
118,
127
],
[
127,
128
],
[
99,
129
],
[
595,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
130,
134
],
[
134,
135
],
[
134,
136
],
[
130,
138
],
[
138,
139
],
[
130,
140
],
[
140,
141
],
[
130,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
142,
150
],
[
150,
151
],
[
130,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
155,
160
],
[
160,
161
],
[
154,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
170,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
179,
182
],
[
166,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
183,
187
],
[
187,
188
],
[
188,
189
],
[
154,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
130,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
197,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
202,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
197,
211
],
[
211,
212
],
[
211,
213
],
[
197,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
218,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
197,
227
],
[
227,
228
],
[
227,
229
],
[
197,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
230,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
235,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
241,
243
],
[
235,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
197,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
130,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
257,
258
],
[
254,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
259,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
254,
268
],
[
268,
269
],
[
268,
270
],
[
254,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
271,
275
],
[
275,
276
],
[
276,
277
],
[
276,
278
],
[
278,
279
],
[
275,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
254,
284
],
[
284,
285
],
[
284,
286
],
[
254,
287
],
[
287,
288
],
[
288,
289
],
[
289,
290
],
[
289,
291
],
[
287,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
292,
296
],
[
296,
297
],
[
296,
298
],
[
298,
299
],
[
298,
300
],
[
292,
301
],
[
301,
302
],
[
301,
303
],
[
303,
304
],
[
254,
305
],
[
305,
306
],
[
306,
307
],
[
306,
308
],
[
130,
309
],
[
309,
310
],
[
309,
311
],
[
311,
312
],
[
312,
313
],
[
312,
314
],
[
311,
316
],
[
316,
317
],
[
317,
318
],
[
318,
319
],
[
318,
320
],
[
316,
321
],
[
321,
322
],
[
321,
323
],
[
316,
324
],
[
324,
325
],
[
325,
326
],
[
316,
327
],
[
328,
328
],
[
328,
329
],
[
329,
330
],
[
330,
331
],
[
330,
332
],
[
329,
333
],
[
333,
334
],
[
311,
335
],
[
335,
336
],
[
309,
337
],
[
337,
338
],
[
130,
339
],
[
339,
340
],
[
339,
341
],
[
341,
342
],
[
342,
343
],
[
342,
344
],
[
341,
346
],
[
346,
347
],
[
347,
348
],
[
348,
349
],
[
348,
350
],
[
346,
351
],
[
351,
352
],
[
351,
353
],
[
346,
354
],
[
354,
355
],
[
355,
356
],
[
346,
357
],
[
358,
358
],
[
358,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
359,
363
],
[
363,
364
],
[
341,
365
],
[
365,
366
],
[
339,
367
],
[
367,
368
],
[
130,
369
],
[
369,
370
],
[
369,
371
],
[
371,
372
],
[
372,
373
],
[
373,
374
],
[
374,
375
],
[
374,
376
],
[
373,
377
],
[
377,
378
],
[
377,
379
],
[
379,
380
],
[
379,
381
],
[
372,
382
],
[
382,
383
],
[
382,
384
],
[
372,
385
],
[
385,
386
],
[
386,
387
],
[
372,
388
],
[
389,
389
],
[
389,
390
],
[
390,
391
],
[
390,
392
],
[
392,
393
],
[
393,
394
],
[
394,
395
],
[
393,
396
],
[
396,
397
],
[
396,
398
],
[
392,
399
],
[
389,
400
],
[
400,
401
],
[
400,
402
],
[
402,
403
],
[
402,
404
],
[
389,
405
],
[
405,
406
],
[
406,
407
],
[
406,
408
],
[
405,
409
],
[
409,
410
],
[
409,
411
],
[
389,
412
],
[
412,
413
],
[
413,
414
],
[
413,
415
],
[
412,
416
],
[
371,
417
],
[
417,
418
],
[
369,
419
],
[
419,
420
],
[
369,
421
],
[
421,
422
],
[
130,
423
],
[
423,
424
],
[
423,
425
],
[
425,
426
],
[
426,
427
],
[
427,
428
],
[
428,
429
],
[
428,
430
],
[
427,
431
],
[
431,
432
],
[
431,
433
],
[
433,
434
],
[
433,
435
],
[
426,
436
],
[
436,
437
],
[
436,
438
],
[
426,
439
],
[
439,
440
],
[
440,
441
],
[
426,
442
],
[
443,
443
],
[
443,
444
],
[
444,
445
],
[
444,
446
],
[
446,
447
],
[
447,
448
],
[
448,
449
],
[
447,
450
],
[
450,
451
],
[
450,
452
],
[
446,
453
],
[
443,
454
],
[
454,
455
],
[
454,
456
],
[
456,
457
],
[
456,
458
],
[
443,
459
],
[
459,
460
],
[
460,
461
],
[
460,
462
],
[
459,
463
],
[
463,
464
],
[
463,
465
],
[
443,
466
],
[
466,
467
],
[
467,
468
],
[
467,
469
],
[
466,
470
],
[
425,
471
],
[
471,
472
],
[
423,
473
],
[
473,
474
],
[
423,
475
],
[
475,
476
],
[
130,
477
],
[
477,
478
],
[
477,
479
],
[
479,
480
],
[
480,
481
],
[
480,
482
],
[
482,
483
],
[
479,
484
],
[
484,
485
],
[
485,
486
],
[
485,
487
],
[
484,
488
],
[
488,
489
],
[
489,
490
],
[
489,
491
],
[
491,
492
],
[
479,
493
],
[
493,
494
],
[
493,
495
],
[
479,
496
],
[
496,
497
],
[
497,
498
],
[
498,
499
],
[
498,
500
],
[
496,
501
],
[
501,
502
],
[
502,
503
],
[
503,
504
],
[
502,
505
],
[
501,
506
],
[
506,
507
],
[
506,
508
],
[
508,
509
],
[
479,
510
],
[
510,
511
],
[
511,
512
],
[
512,
513
],
[
130,
514
],
[
514,
515
],
[
514,
516
],
[
516,
517
],
[
517,
518
],
[
517,
519
],
[
519,
520
],
[
516,
521
],
[
521,
522
],
[
522,
523
],
[
522,
524
],
[
521,
525
],
[
525,
526
],
[
525,
527
],
[
527,
528
],
[
516,
529
],
[
529,
530
],
[
529,
531
],
[
516,
532
],
[
532,
533
],
[
533,
534
],
[
534,
535
],
[
534,
536
],
[
532,
537
],
[
537,
538
],
[
538,
539
],
[
539,
540
],
[
538,
541
],
[
537,
542
],
[
542,
543
],
[
542,
544
],
[
544,
545
],
[
516,
546
],
[
546,
547
],
[
547,
548
],
[
548,
549
],
[
130,
550
],
[
550,
551
],
[
550,
552
],
[
552,
553
],
[
553,
554
],
[
557,
555
],
[
567,
556
],
[
564,
557
],
[
557,
558
],
[
558,
559
],
[
558,
560
],
[
557,
561
],
[
561,
562
],
[
561,
563
],
[
564,
564
],
[
564,
565
],
[
564,
566
],
[
567,
567
],
[
567,
568
],
[
567,
569
],
[
557,
570
],
[
570,
571
],
[
570,
572
],
[
572,
573
],
[
550,
574
],
[
574,
575
],
[
130,
576
],
[
576,
577
],
[
576,
578
],
[
578,
579
],
[
579,
580
],
[
581,
581
],
[
581,
582
],
[
582,
583
],
[
582,
584
],
[
581,
585
],
[
585,
586
],
[
585,
587
],
[
581,
588
],
[
588,
589
],
[
588,
590
],
[
590,
591
],
[
576,
592
],
[
592,
593
],
[
0,
594
],
[
594,
595
],
[
594,
596
]
]
| [
"import java.io.*;\nimport java.util.*;\npublic class Main {\n final static long mod = 1000000007;\n static void debug(Object...args) {System.out.println(Arrays.deepToString(args));}\n 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 long a = sc.nextLong(),b=sc.nextLong(),c=sc.nextLong(),d=sc.nextLong();\n pw.println(Math.max(a*c,Math.max(a*d,Math.max(b*c,b*d))));\n\n }\n pw.flush();\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 static class Data implements Comparable<Data>{\n int x;\n int y;\n\n public Data (int m, int n) {\n x = m;\n y = n;\n }\n @Override\n public int compareTo(Data o) {\n return y - o.y;\n }\n }\n\n 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 public long[] nextLongArray(int n) {\n long [] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\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 public static char[] shuffle(char[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n char 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 final static long mod = 1000000007;\n static void debug(Object...args) {System.out.println(Arrays.deepToString(args));}\n 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 long a = sc.nextLong(),b=sc.nextLong(),c=sc.nextLong(),d=sc.nextLong();\n pw.println(Math.max(a*c,Math.max(a*d,Math.max(b*c,b*d))));\n\n }\n pw.flush();\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 static class Data implements Comparable<Data>{\n int x;\n int y;\n\n public Data (int m, int n) {\n x = m;\n y = n;\n }\n @Override\n public int compareTo(Data o) {\n return y - o.y;\n }\n }\n\n 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 public long[] nextLongArray(int n) {\n long [] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\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 public static char[] shuffle(char[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n char 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",
"final static long mod = 1000000007;",
"mod",
"1000000007",
"static void debug(Object...args) {System.out.println(Arrays.deepToString(args));}",
"debug",
"{System.out.println(Arrays.deepToString(args));}",
"System.out.println(Arrays.deepToString(args))",
"System.out.println",
"System.out",
"System",
"System.out",
"Arrays.deepToString(args)",
"Arrays.deepToString",
"Arrays",
"args",
"Object...args",
"args",
"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 long a = sc.nextLong(),b=sc.nextLong(),c=sc.nextLong(),d=sc.nextLong();\n pw.println(Math.max(a*c,Math.max(a*d,Math.max(b*c,b*d))));\n\n }\n pw.flush();\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 long a = sc.nextLong(),b=sc.nextLong(),c=sc.nextLong(),d=sc.nextLong();\n pw.println(Math.max(a*c,Math.max(a*d,Math.max(b*c,b*d))));\n\n }\n pw.flush();\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 long a = sc.nextLong(),b=sc.nextLong(),c=sc.nextLong(),d=sc.nextLong();\n pw.println(Math.max(a*c,Math.max(a*d,Math.max(b*c,b*d))));\n\n }",
"test-->0",
"test--",
"test",
"0",
"{\n\n long a = sc.nextLong(),b=sc.nextLong(),c=sc.nextLong(),d=sc.nextLong();\n pw.println(Math.max(a*c,Math.max(a*d,Math.max(b*c,b*d))));\n\n }",
"long a = sc.nextLong()",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"b=sc.nextLong()",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"c=sc.nextLong()",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"d=sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"pw.println(Math.max(a*c,Math.max(a*d,Math.max(b*c,b*d))))",
"pw.println",
"pw",
"Math.max(a*c,Math.max(a*d,Math.max(b*c,b*d)))",
"Math.max",
"Math",
"a*c",
"a",
"c",
"Math.max(a*d,Math.max(b*c,b*d))",
"Math.max",
"Math",
"a*d",
"a",
"d",
"Math.max(b*c,b*d)",
"Math.max",
"Math",
"b*c",
"b",
"c",
"b*d",
"b",
"d",
"pw.flush()",
"pw.flush",
"pw",
"pw.close()",
"pw.close",
"pw",
"String[] args",
"args",
"static class Data implements Comparable<Data>{\n int x;\n int y;\n\n public Data (int m, int n) {\n x = m;\n y = n;\n }\n @Override\n public int compareTo(Data o) {\n return y - o.y;\n }\n }",
"Data",
"int x;",
"x",
"int y;",
"y",
"public Data (int m, int n) {\n x = m;\n y = n;\n }",
"Data",
"{\n x = m;\n y = n;\n }",
"x = m",
"x",
"m",
"y = n",
"y",
"n",
"int m",
"m",
"int n",
"n",
"@Override\n public int compareTo(Data o) {\n return y - o.y;\n }",
"compareTo",
"{\n return y - o.y;\n }",
"return y - o.y;",
"y - o.y",
"y",
"o.y",
"o",
"o.y",
"Data o",
"o",
"Comparable",
"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 public long[] nextLongArray(int n) {\n long [] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\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 public static char[] shuffle(char[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n char 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 long[] nextLongArray(int n) {\n long [] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\n }\n return a;\n }",
"nextLongArray",
"{\n long [] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\n }\n return a;\n }",
"long [] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n a[i] = nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = nextLong();\n }",
"{\n a[i] = nextLong();\n }",
"a[i] = nextLong()",
"a[i]",
"a",
"i",
"nextLong()",
"nextLong",
"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 static char[] shuffle(char[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n char 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 char 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 char 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 char d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }",
"{ int ind = gen.nextInt(n-i)+i;\n char 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",
"char 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",
"char[] 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 final static long mod = 1000000007;\n static void debug(Object...args) {System.out.println(Arrays.deepToString(args));}\n 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 long a = sc.nextLong(),b=sc.nextLong(),c=sc.nextLong(),d=sc.nextLong();\n pw.println(Math.max(a*c,Math.max(a*d,Math.max(b*c,b*d))));\n\n }\n pw.flush();\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 static class Data implements Comparable<Data>{\n int x;\n int y;\n\n public Data (int m, int n) {\n x = m;\n y = n;\n }\n @Override\n public int compareTo(Data o) {\n return y - o.y;\n }\n }\n\n 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 public long[] nextLongArray(int n) {\n long [] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\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 public static char[] shuffle(char[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n char 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 final static long mod = 1000000007;\n static void debug(Object...args) {System.out.println(Arrays.deepToString(args));}\n 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 long a = sc.nextLong(),b=sc.nextLong(),c=sc.nextLong(),d=sc.nextLong();\n pw.println(Math.max(a*c,Math.max(a*d,Math.max(b*c,b*d))));\n\n }\n pw.flush();\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 static class Data implements Comparable<Data>{\n int x;\n int y;\n\n public Data (int m, int n) {\n x = m;\n y = n;\n }\n @Override\n public int compareTo(Data o) {\n return y - o.y;\n }\n }\n\n 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 public long[] nextLongArray(int n) {\n long [] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\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 public static char[] shuffle(char[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n char 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 {
final static long mod = 1000000007;
static void debug(Object...args) {System.out.println(Arrays.deepToString(args));}
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) {
long a = sc.nextLong(),b=sc.nextLong(),c=sc.nextLong(),d=sc.nextLong();
pw.println(Math.max(a*c,Math.max(a*d,Math.max(b*c,b*d))));
}
pw.flush();
pw.close();
}
static class Data implements Comparable<Data>{
int x;
int y;
public Data (int m, int n) {
x = m;
y = n;
}
@Override
public int compareTo(Data o) {
return y - o.y;
}
}
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 long[] nextLongArray(int n) {
long [] a = new long[n];
for (int i = 0; i < n; i++) {
a[i] = nextLong();
}
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 static char[] shuffle(char[] a, Random gen)
{ for(int i = 0, n = a.length;i < n;i++)
{ int ind = gen.nextInt(n-i)+i;
char 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,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
13,
13,
13,
4,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
60,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
65,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\t\n\t\tlong max1 = b * d;\n\t\tlong max2 = a * c;\n\t\tlong max3 = a * d;\n\t\tlong max4 = b * c;\n\t\t\n\t\tSystem.out.println(Math.max(Math.max(max1, max2), Math.max(max3, max4)));\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\t\n\t\tlong max1 = b * d;\n\t\tlong max2 = a * c;\n\t\tlong max3 = a * d;\n\t\tlong max4 = b * c;\n\t\t\n\t\tSystem.out.println(Math.max(Math.max(max1, max2), Math.max(max3, max4)));\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\t\n\t\tlong max1 = b * d;\n\t\tlong max2 = a * c;\n\t\tlong max3 = a * d;\n\t\tlong max4 = b * c;\n\t\t\n\t\tSystem.out.println(Math.max(Math.max(max1, max2), Math.max(max3, max4)));\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\t\n\t\tlong max1 = b * d;\n\t\tlong max2 = a * c;\n\t\tlong max3 = a * d;\n\t\tlong max4 = b * c;\n\t\t\n\t\tSystem.out.println(Math.max(Math.max(max1, max2), Math.max(max3, max4)));\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long max1 = b * d;",
"max1",
"b * d",
"b",
"d",
"long max2 = a * c;",
"max2",
"a * c",
"a",
"c",
"long max3 = a * d;",
"max3",
"a * d",
"a",
"d",
"long max4 = b * c;",
"max4",
"b * c",
"b",
"c",
"System.out.println(Math.max(Math.max(max1, max2), Math.max(max3, max4)))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.max(Math.max(max1, max2), Math.max(max3, max4))",
"Math.max",
"Math",
"Math.max(max1, max2)",
"Math.max",
"Math",
"max1",
"max2",
"Math.max(max3, max4)",
"Math.max",
"Math",
"max3",
"max4",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\t\n\t\tlong max1 = b * d;\n\t\tlong max2 = a * c;\n\t\tlong max3 = a * d;\n\t\tlong max4 = b * c;\n\t\t\n\t\tSystem.out.println(Math.max(Math.max(max1, max2), Math.max(max3, max4)));\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\t\n\t\tlong max1 = b * d;\n\t\tlong max2 = a * c;\n\t\tlong max3 = a * d;\n\t\tlong max4 = b * c;\n\t\t\n\t\tSystem.out.println(Math.max(Math.max(max1, max2), Math.max(max3, max4)));\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
long max1 = b * d;
long max2 = a * c;
long max3 = a * d;
long max4 = b * c;
System.out.println(Math.max(Math.max(max1, max2), Math.max(max3, max4)));
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
2,
13,
13,
2,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
29,
4,
18,
4,
18,
20,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
17,
40,
13,
29,
2,
13,
17,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
14,
2,
13,
17,
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,
41,
13,
18,
13,
2,
2,
13,
13,
13,
0,
18,
13,
2,
2,
13,
13,
13,
18,
13,
13,
0,
18,
13,
13,
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,
6,
13,
41,
13,
41,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
0,
13,
20,
12,
13,
30,
14,
4,
18,
13,
29,
4,
18,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
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,
4,
18,
4,
13,
17,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
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,
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,
14,
2,
36,
13,
29,
17,
14,
40,
2,
13,
13,
29,
17,
41,
13,
13,
29,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
13,
0,
13,
2,
2,
17,
13,
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
],
[
476,
14
],
[
476,
15
],
[
15,
16
],
[
15,
17
],
[
476,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
20,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
20,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
20,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
20,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
59,
60
],
[
59,
61
],
[
56,
62
],
[
62,
63
],
[
62,
64
],
[
53,
65
],
[
65,
66
],
[
65,
67
],
[
50,
68
],
[
68,
69
],
[
68,
70
],
[
20,
71
],
[
71,
72
],
[
72,
73
],
[
20,
74
],
[
74,
75
],
[
75,
76
],
[
18,
77
],
[
77,
78
],
[
476,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
79,
88
],
[
88,
89
],
[
476,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
92,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
90,
110
],
[
110,
111
],
[
476,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
114,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
143,
144
],
[
143,
145
],
[
138,
146
],
[
146,
147
],
[
147,
148
],
[
138,
149
],
[
150,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
150,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
160,
168
],
[
168,
169
],
[
168,
170
],
[
150,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
112,
176
],
[
176,
177
],
[
112,
178
],
[
178,
179
],
[
476,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
180,
184
],
[
184,
185
],
[
180,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
188,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
186,
199
],
[
199,
200
],
[
186,
201
],
[
201,
202
],
[
476,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
203,
207
],
[
207,
208
],
[
203,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
212,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
223,
224
],
[
223,
225
],
[
203,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
229,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
228,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
237,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
228,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
203,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
256,
259
],
[
259,
260
],
[
203,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
265,
268
],
[
268,
269
],
[
203,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
274,
277
],
[
277,
278
],
[
203,
279
],
[
279,
280
],
[
279,
281
],
[
281,
282
],
[
282,
283
],
[
282,
284
],
[
281,
285
],
[
285,
286
],
[
286,
287
],
[
286,
288
],
[
288,
289
],
[
289,
290
],
[
290,
291
],
[
285,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
295,
296
],
[
296,
297
],
[
281,
298
],
[
298,
299
],
[
203,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
305,
306
],
[
306,
307
],
[
304,
308
],
[
203,
309
],
[
309,
310
],
[
309,
311
],
[
311,
312
],
[
312,
313
],
[
312,
314
],
[
311,
316
],
[
316,
317
],
[
317,
318
],
[
318,
319
],
[
318,
320
],
[
316,
321
],
[
321,
322
],
[
321,
323
],
[
316,
324
],
[
324,
325
],
[
325,
326
],
[
316,
327
],
[
327,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
328,
332
],
[
332,
333
],
[
311,
334
],
[
334,
335
],
[
309,
336
],
[
336,
337
],
[
203,
338
],
[
338,
339
],
[
338,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
340,
345
],
[
345,
346
],
[
346,
347
],
[
347,
348
],
[
347,
349
],
[
345,
350
],
[
350,
351
],
[
350,
352
],
[
345,
353
],
[
353,
354
],
[
354,
355
],
[
345,
356
],
[
356,
357
],
[
357,
358
],
[
358,
359
],
[
358,
360
],
[
357,
361
],
[
361,
362
],
[
340,
363
],
[
363,
364
],
[
338,
365
],
[
365,
366
],
[
203,
367
],
[
367,
368
],
[
367,
369
],
[
369,
370
],
[
370,
371
],
[
370,
372
],
[
369,
374
],
[
374,
375
],
[
375,
376
],
[
376,
377
],
[
376,
378
],
[
374,
379
],
[
379,
380
],
[
379,
381
],
[
374,
382
],
[
382,
383
],
[
383,
384
],
[
374,
385
],
[
385,
386
],
[
386,
387
],
[
387,
388
],
[
387,
389
],
[
386,
390
],
[
390,
391
],
[
369,
392
],
[
392,
393
],
[
367,
394
],
[
394,
395
],
[
203,
396
],
[
396,
397
],
[
396,
398
],
[
398,
399
],
[
399,
400
],
[
400,
401
],
[
401,
402
],
[
402,
403
],
[
0,
404
],
[
404,
405
],
[
404,
406
],
[
406,
407
],
[
404,
408
],
[
408,
409
],
[
404,
410
],
[
410,
411
],
[
410,
412
],
[
412,
413
],
[
413,
414
],
[
414,
415
],
[
414,
416
],
[
413,
417
],
[
412,
418
],
[
418,
419
],
[
419,
420
],
[
419,
421
],
[
418,
422
],
[
410,
423
],
[
423,
424
],
[
410,
425
],
[
425,
426
],
[
404,
427
],
[
427,
428
],
[
427,
429
],
[
429,
430
],
[
430,
431
],
[
431,
432
],
[
431,
433
],
[
430,
434
],
[
434,
435
],
[
429,
436
],
[
436,
437
],
[
437,
438
],
[
438,
439
],
[
438,
440
],
[
436,
441
],
[
441,
442
],
[
429,
443
],
[
443,
444
],
[
443,
445
],
[
429,
446
],
[
446,
447
],
[
447,
448
],
[
448,
449
],
[
448,
450
],
[
450,
451
],
[
450,
452
],
[
447,
453
],
[
453,
454
],
[
453,
455
],
[
455,
456
],
[
455,
457
],
[
427,
458
],
[
458,
459
],
[
404,
460
],
[
460,
461
],
[
460,
462
],
[
462,
463
],
[
463,
464
],
[
463,
465
],
[
462,
466
],
[
466,
467
],
[
466,
468
],
[
468,
469
],
[
469,
470
],
[
469,
471
],
[
468,
472
],
[
462,
473
],
[
473,
474
],
[
0,
475
],
[
475,
476
],
[
475,
477
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.*;\n\n\npublic class Main {\n final static long MOD = 1000000007;\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n\n long a = fs.nextInt();\n long b = fs.nextInt();\n long c = fs.nextInt();\n long d = fs.nextInt();\n\n out.println(Math.max(Math.max(Math.max(a* c, a * d), b * c), b * d));\n \n out.flush();\n out.close();\n }\n\n class Pair{\n int index;\n int val;\n\n Pair(int index, int val) {\n this.val = val;\n this.index = index;\n }\n }\n\n public static String rString(String s) {\n return new StringBuilder(s).reverse().toString();\n }\n\n public static int powoftwo(long n){\n int count = 0;\n while(n != 0) {\n n >>= 1;\n count++;\n }\n return count - 1;\n }\n\n public static void rotate(int[] nums, int k) {\n int n = nums.length;\n if(k > 0) {\n for(int j = 0; j < k; j++) {\n for (int i = 0; i < n; i++) {\n int temp = nums[(i + k) % n];\n nums[(i + k) % n] = nums[i];\n nums[i] = temp;\n }\n }\n }\n }\n\n\n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n try {\n br = new BufferedReader(new InputStreamReader(System.in));\n // br = new BufferedReader(new FileReader(\"chat.txt\"));\n st = new StringTokenizer(\"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n public String next() {\n if (st.hasMoreTokens())\n return st.nextToken();\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n String line = \"\";\n try {\n line = br.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return line;\n }\n\n public char nextChar() {\n return next().charAt(0);\n }\n\n public Integer[] nextIntegerArray(int n) {\n Integer[] a = new Integer[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n\n public char[] nextCharArray() {\n return nextLine().toCharArray();\n }\n }\n\n}\n\n/*class Pair implements Comparable<Pair> {\n\n int V;\n int H;\n\n public Pair(int count, int val) {\n this.V = count;\n this.H = val;\n }\n\n public void setV(int v) {\n V = v;\n }\n\n public void setH(int h) {\n H = h;\n }\n\n @Override\n public int compareTo(Pair o) {\n if(this.V != o.V)\n return Integer.compare(this.V, o.V);\n else\n return Integer.compare(this.H, o.H);\n }\n\n public boolean equals(Pair o) {\n return this.H == o.H && this.V == o.V;\n }\n}*/\n\nclass Pair {\n\n int V;\n int H;\n\n public Pair(int x, int y) {\n this.V = x;\n this.H = y;\n }\n\n @Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (!(o instanceof Pair)) return false;\n Pair key = (Pair) o;\n return V == key.V && H == key.H;\n }\n\n @Override\n public int hashCode() {\n int result = V;\n result = 31 * result + H;\n return result;\n }\n\n}\n",
"import java.io.BufferedReader;",
"BufferedReader",
"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 final static long MOD = 1000000007;\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n\n long a = fs.nextInt();\n long b = fs.nextInt();\n long c = fs.nextInt();\n long d = fs.nextInt();\n\n out.println(Math.max(Math.max(Math.max(a* c, a * d), b * c), b * d));\n \n out.flush();\n out.close();\n }\n\n class Pair{\n int index;\n int val;\n\n Pair(int index, int val) {\n this.val = val;\n this.index = index;\n }\n }\n\n public static String rString(String s) {\n return new StringBuilder(s).reverse().toString();\n }\n\n public static int powoftwo(long n){\n int count = 0;\n while(n != 0) {\n n >>= 1;\n count++;\n }\n return count - 1;\n }\n\n public static void rotate(int[] nums, int k) {\n int n = nums.length;\n if(k > 0) {\n for(int j = 0; j < k; j++) {\n for (int i = 0; i < n; i++) {\n int temp = nums[(i + k) % n];\n nums[(i + k) % n] = nums[i];\n nums[i] = temp;\n }\n }\n }\n }\n\n\n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n try {\n br = new BufferedReader(new InputStreamReader(System.in));\n // br = new BufferedReader(new FileReader(\"chat.txt\"));\n st = new StringTokenizer(\"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n public String next() {\n if (st.hasMoreTokens())\n return st.nextToken();\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n String line = \"\";\n try {\n line = br.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return line;\n }\n\n public char nextChar() {\n return next().charAt(0);\n }\n\n public Integer[] nextIntegerArray(int n) {\n Integer[] a = new Integer[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n\n public char[] nextCharArray() {\n return nextLine().toCharArray();\n }\n }\n\n}",
"Main",
"final static long MOD = 1000000007;",
"MOD",
"1000000007",
"public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n\n long a = fs.nextInt();\n long b = fs.nextInt();\n long c = fs.nextInt();\n long d = fs.nextInt();\n\n out.println(Math.max(Math.max(Math.max(a* c, a * d), b * c), b * d));\n \n out.flush();\n out.close();\n }",
"main",
"{\n FastScanner fs = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n\n long a = fs.nextInt();\n long b = fs.nextInt();\n long c = fs.nextInt();\n long d = fs.nextInt();\n\n out.println(Math.max(Math.max(Math.max(a* c, a * d), b * c), b * d));\n \n out.flush();\n out.close();\n }",
"FastScanner fs = new FastScanner();",
"fs",
"new FastScanner()",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"long a = fs.nextInt();",
"a",
"fs.nextInt()",
"fs.nextInt",
"fs",
"long b = fs.nextInt();",
"b",
"fs.nextInt()",
"fs.nextInt",
"fs",
"long c = fs.nextInt();",
"c",
"fs.nextInt()",
"fs.nextInt",
"fs",
"long d = fs.nextInt();",
"d",
"fs.nextInt()",
"fs.nextInt",
"fs",
"out.println(Math.max(Math.max(Math.max(a* c, a * d), b * c), b * d))",
"out.println",
"out",
"Math.max(Math.max(Math.max(a* c, a * d), b * c), b * d)",
"Math.max",
"Math",
"Math.max(Math.max(a* c, a * d), b * c)",
"Math.max",
"Math",
"Math.max(a* c, a * d)",
"Math.max",
"Math",
"a* c",
"a",
"c",
"a * d",
"a",
"d",
"b * c",
"b",
"c",
"b * d",
"b",
"d",
"out.flush()",
"out.flush",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"public static String rString(String s) {\n return new StringBuilder(s).reverse().toString();\n }",
"rString",
"{\n return new StringBuilder(s).reverse().toString();\n }",
"return new StringBuilder(s).reverse().toString();",
"new StringBuilder(s).reverse().toString()",
"new StringBuilder(s).reverse().toString",
"new StringBuilder(s).reverse()",
"new StringBuilder(s).reverse",
"new StringBuilder(s)",
"String s",
"s",
"public static int powoftwo(long n){\n int count = 0;\n while(n != 0) {\n n >>= 1;\n count++;\n }\n return count - 1;\n }",
"powoftwo",
"{\n int count = 0;\n while(n != 0) {\n n >>= 1;\n count++;\n }\n return count - 1;\n }",
"int count = 0;",
"count",
"0",
"while(n != 0) {\n n >>= 1;\n count++;\n }",
"n != 0",
"n",
"0",
"{\n n >>= 1;\n count++;\n }",
"n >>= 1",
"n",
"1",
"count++",
"count",
"return count - 1;",
"count - 1",
"count",
"1",
"long n",
"n",
"public static void rotate(int[] nums, int k) {\n int n = nums.length;\n if(k > 0) {\n for(int j = 0; j < k; j++) {\n for (int i = 0; i < n; i++) {\n int temp = nums[(i + k) % n];\n nums[(i + k) % n] = nums[i];\n nums[i] = temp;\n }\n }\n }\n }",
"rotate",
"{\n int n = nums.length;\n if(k > 0) {\n for(int j = 0; j < k; j++) {\n for (int i = 0; i < n; i++) {\n int temp = nums[(i + k) % n];\n nums[(i + k) % n] = nums[i];\n nums[i] = temp;\n }\n }\n }\n }",
"int n = nums.length;",
"n",
"nums.length",
"nums",
"nums.length",
"if(k > 0) {\n for(int j = 0; j < k; j++) {\n for (int i = 0; i < n; i++) {\n int temp = nums[(i + k) % n];\n nums[(i + k) % n] = nums[i];\n nums[i] = temp;\n }\n }\n }",
"k > 0",
"k",
"0",
"{\n for(int j = 0; j < k; j++) {\n for (int i = 0; i < n; i++) {\n int temp = nums[(i + k) % n];\n nums[(i + k) % n] = nums[i];\n nums[i] = temp;\n }\n }\n }",
"for(int j = 0; j < k; j++) {\n for (int i = 0; i < n; i++) {\n int temp = nums[(i + k) % n];\n nums[(i + k) % n] = nums[i];\n nums[i] = temp;\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < k",
"j",
"k",
"j++",
"j++",
"j",
"{\n for (int i = 0; i < n; i++) {\n int temp = nums[(i + k) % n];\n nums[(i + k) % n] = nums[i];\n nums[i] = temp;\n }\n }",
"{\n for (int i = 0; i < n; i++) {\n int temp = nums[(i + k) % n];\n nums[(i + k) % n] = nums[i];\n nums[i] = temp;\n }\n }",
"for (int i = 0; i < n; i++) {\n int temp = nums[(i + k) % n];\n nums[(i + k) % n] = nums[i];\n nums[i] = temp;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int temp = nums[(i + k) % n];\n nums[(i + k) % n] = nums[i];\n nums[i] = temp;\n }",
"{\n int temp = nums[(i + k) % n];\n nums[(i + k) % n] = nums[i];\n nums[i] = temp;\n }",
"int temp = nums[(i + k) % n];",
"temp",
"nums[(i + k) % n]",
"nums",
"(i + k) % n",
"(i + k)",
"i",
"k",
"n",
"nums[(i + k) % n] = nums[i]",
"nums[(i + k) % n]",
"nums",
"(i + k) % n",
"(i + k)",
"i",
"k",
"n",
"nums[i]",
"nums",
"i",
"nums[i] = temp",
"nums[i]",
"nums",
"i",
"temp",
"int[] nums",
"nums",
"int k",
"k",
"class Pair{\n int index;\n int val;\n\n Pair(int index, int val) {\n this.val = val;\n this.index = index;\n }\n }",
"Pair",
"int index;",
"index",
"int val;",
"val",
"Pair(int index, int val) {\n this.val = val;\n this.index = index;\n }",
"Pair",
"{\n this.val = val;\n this.index = index;\n }",
"this.val = val",
"this.val",
"this",
"this.val",
"val",
"this.index = index",
"this.index",
"this",
"this.index",
"index",
"int index",
"index",
"int val",
"val",
"static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n try {\n br = new BufferedReader(new InputStreamReader(System.in));\n // br = new BufferedReader(new FileReader(\"chat.txt\"));\n st = new StringTokenizer(\"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n public String next() {\n if (st.hasMoreTokens())\n return st.nextToken();\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n String line = \"\";\n try {\n line = br.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return line;\n }\n\n public char nextChar() {\n return next().charAt(0);\n }\n\n public Integer[] nextIntegerArray(int n) {\n Integer[] a = new Integer[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n\n public char[] nextCharArray() {\n return nextLine().toCharArray();\n }\n }",
"FastScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastScanner() {\n try {\n br = new BufferedReader(new InputStreamReader(System.in));\n // br = new BufferedReader(new FileReader(\"chat.txt\"));\n st = new StringTokenizer(\"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"FastScanner",
"{\n try {\n br = new BufferedReader(new InputStreamReader(System.in));\n // br = new BufferedReader(new FileReader(\"chat.txt\"));\n st = new StringTokenizer(\"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"try {\n br = new BufferedReader(new InputStreamReader(System.in));\n // br = new BufferedReader(new FileReader(\"chat.txt\"));\n st = new StringTokenizer(\"\");\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 br = new BufferedReader(new InputStreamReader(System.in));\n // br = new BufferedReader(new FileReader(\"chat.txt\"));\n st = new StringTokenizer(\"\");\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"st = new StringTokenizer(\"\")",
"st",
"new StringTokenizer(\"\")",
"public String next() {\n if (st.hasMoreTokens())\n return st.nextToken();\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"next",
"{\n if (st.hasMoreTokens())\n return st.nextToken();\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"if (st.hasMoreTokens())\n return st.nextToken();",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"try {\n st = new StringTokenizer(br.readLine());\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 st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public String nextLine() {\n String line = \"\";\n try {\n line = br.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return line;\n }",
"nextLine",
"{\n String line = \"\";\n try {\n line = br.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return line;\n }",
"String line = \"\";",
"line",
"\"\"",
"try {\n line = br.readLine();\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 line = br.readLine();\n }",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"return line;",
"line",
"public char nextChar() {\n return next().charAt(0);\n }",
"nextChar",
"{\n return next().charAt(0);\n }",
"return next().charAt(0);",
"next().charAt(0)",
"next().charAt",
"next()",
"next",
"0",
"public Integer[] nextIntegerArray(int n) {\n Integer[] a = new Integer[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }",
"nextIntegerArray",
"{\n Integer[] a = new Integer[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }",
"Integer[] a = new Integer[n];",
"a",
"new Integer[n]",
"n",
"for (int i = 0; i < n; i++)\n a[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextInt();",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }",
"nextIntArray",
"{\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n a[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextInt();",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }",
"nextLongArray",
"{\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n a[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextLong();",
"a[i] = nextLong()",
"a[i]",
"a",
"i",
"nextLong()",
"nextLong",
"return a;",
"a",
"int n",
"n",
"public char[] nextCharArray() {\n return nextLine().toCharArray();\n }",
"nextCharArray",
"{\n return nextLine().toCharArray();\n }",
"return nextLine().toCharArray();",
"nextLine().toCharArray()",
"nextLine().toCharArray",
"nextLine()",
"nextLine",
"class Pair {\n\n int V;\n int H;\n\n public Pair(int x, int y) {\n this.V = x;\n this.H = y;\n }\n\n @Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (!(o instanceof Pair)) return false;\n Pair key = (Pair) o;\n return V == key.V && H == key.H;\n }\n\n @Override\n public int hashCode() {\n int result = V;\n result = 31 * result + H;\n return result;\n }\n\n}",
"Pair",
"int V;",
"V",
"int H;",
"H",
"public Pair(int x, int y) {\n this.V = x;\n this.H = y;\n }",
"Pair",
"{\n this.V = x;\n this.H = y;\n }",
"this.V = x",
"this.V",
"this",
"this.V",
"x",
"this.H = y",
"this.H",
"this",
"this.H",
"y",
"int x",
"x",
"int y",
"y",
"@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (!(o instanceof Pair)) return false;\n Pair key = (Pair) o;\n return V == key.V && H == key.H;\n }",
"equals",
"{\n if (this == o) return true;\n if (!(o instanceof Pair)) return false;\n Pair key = (Pair) o;\n return V == key.V && H == key.H;\n }",
"if (this == o) return true;",
"this == o",
"this",
"o",
"return true;",
"true",
"if (!(o instanceof Pair)) return false;",
"!(o instanceof Pair)",
"(o instanceof Pair)",
"o",
"Pair",
"return false;",
"false",
"Pair key = (Pair) o;",
"key",
"(Pair) o",
"return V == key.V && H == key.H;",
"V == key.V && H == key.H",
"V == key.V",
"V",
"key.V",
"key",
"key.V",
"H == key.H",
"H",
"key.H",
"key",
"key.H",
"Object o",
"o",
"@Override\n public int hashCode() {\n int result = V;\n result = 31 * result + H;\n return result;\n }",
"hashCode",
"{\n int result = V;\n result = 31 * result + H;\n return result;\n }",
"int result = V;",
"result",
"V",
"result = 31 * result + H",
"result",
"31 * result + H",
"31 * result",
"31",
"result",
"H",
"return result;",
"result",
"public class Main {\n final static long MOD = 1000000007;\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n\n long a = fs.nextInt();\n long b = fs.nextInt();\n long c = fs.nextInt();\n long d = fs.nextInt();\n\n out.println(Math.max(Math.max(Math.max(a* c, a * d), b * c), b * d));\n \n out.flush();\n out.close();\n }\n\n class Pair{\n int index;\n int val;\n\n Pair(int index, int val) {\n this.val = val;\n this.index = index;\n }\n }\n\n public static String rString(String s) {\n return new StringBuilder(s).reverse().toString();\n }\n\n public static int powoftwo(long n){\n int count = 0;\n while(n != 0) {\n n >>= 1;\n count++;\n }\n return count - 1;\n }\n\n public static void rotate(int[] nums, int k) {\n int n = nums.length;\n if(k > 0) {\n for(int j = 0; j < k; j++) {\n for (int i = 0; i < n; i++) {\n int temp = nums[(i + k) % n];\n nums[(i + k) % n] = nums[i];\n nums[i] = temp;\n }\n }\n }\n }\n\n\n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n try {\n br = new BufferedReader(new InputStreamReader(System.in));\n // br = new BufferedReader(new FileReader(\"chat.txt\"));\n st = new StringTokenizer(\"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n public String next() {\n if (st.hasMoreTokens())\n return st.nextToken();\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n String line = \"\";\n try {\n line = br.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return line;\n }\n\n public char nextChar() {\n return next().charAt(0);\n }\n\n public Integer[] nextIntegerArray(int n) {\n Integer[] a = new Integer[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n\n public char[] nextCharArray() {\n return nextLine().toCharArray();\n }\n }\n\n}",
"public class Main {\n final static long MOD = 1000000007;\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n\n long a = fs.nextInt();\n long b = fs.nextInt();\n long c = fs.nextInt();\n long d = fs.nextInt();\n\n out.println(Math.max(Math.max(Math.max(a* c, a * d), b * c), b * d));\n \n out.flush();\n out.close();\n }\n\n class Pair{\n int index;\n int val;\n\n Pair(int index, int val) {\n this.val = val;\n this.index = index;\n }\n }\n\n public static String rString(String s) {\n return new StringBuilder(s).reverse().toString();\n }\n\n public static int powoftwo(long n){\n int count = 0;\n while(n != 0) {\n n >>= 1;\n count++;\n }\n return count - 1;\n }\n\n public static void rotate(int[] nums, int k) {\n int n = nums.length;\n if(k > 0) {\n for(int j = 0; j < k; j++) {\n for (int i = 0; i < n; i++) {\n int temp = nums[(i + k) % n];\n nums[(i + k) % n] = nums[i];\n nums[i] = temp;\n }\n }\n }\n }\n\n\n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner() {\n try {\n br = new BufferedReader(new InputStreamReader(System.in));\n // br = new BufferedReader(new FileReader(\"chat.txt\"));\n st = new StringTokenizer(\"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n public String next() {\n if (st.hasMoreTokens())\n return st.nextToken();\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n String line = \"\";\n try {\n line = br.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return line;\n }\n\n public char nextChar() {\n return next().charAt(0);\n }\n\n public Integer[] nextIntegerArray(int n) {\n Integer[] a = new Integer[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n\n public char[] nextCharArray() {\n return nextLine().toCharArray();\n }\n }\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.*;
public class Main {
final static long MOD = 1000000007;
public static void main(String[] args) {
FastScanner fs = new FastScanner();
PrintWriter out = new PrintWriter(System.out);
long a = fs.nextInt();
long b = fs.nextInt();
long c = fs.nextInt();
long d = fs.nextInt();
out.println(Math.max(Math.max(Math.max(a* c, a * d), b * c), b * d));
out.flush();
out.close();
}
class Pair{
int index;
int val;
Pair(int index, int val) {
this.val = val;
this.index = index;
}
}
public static String rString(String s) {
return new StringBuilder(s).reverse().toString();
}
public static int powoftwo(long n){
int count = 0;
while(n != 0) {
n >>= 1;
count++;
}
return count - 1;
}
public static void rotate(int[] nums, int k) {
int n = nums.length;
if(k > 0) {
for(int j = 0; j < k; j++) {
for (int i = 0; i < n; i++) {
int temp = nums[(i + k) % n];
nums[(i + k) % n] = nums[i];
nums[i] = temp;
}
}
}
}
static class FastScanner {
BufferedReader br;
StringTokenizer st;
public FastScanner() {
try {
br = new BufferedReader(new InputStreamReader(System.in));
// br = new BufferedReader(new FileReader("chat.txt"));
st = new StringTokenizer("");
} catch (Exception e) {
e.printStackTrace();
}
}
public String next() {
if (st.hasMoreTokens())
return st.nextToken();
try {
st = new StringTokenizer(br.readLine());
} catch (Exception e) {
e.printStackTrace();
}
return st.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
public long nextLong() {
return Long.parseLong(next());
}
public double nextDouble() {
return Double.parseDouble(next());
}
public String nextLine() {
String line = "";
try {
line = br.readLine();
} catch (Exception e) {
e.printStackTrace();
}
return line;
}
public char nextChar() {
return next().charAt(0);
}
public Integer[] nextIntegerArray(int n) {
Integer[] a = new Integer[n];
for (int i = 0; i < n; i++)
a[i] = nextInt();
return a;
}
public int[] nextIntArray(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = nextInt();
return a;
}
public long[] nextLongArray(int n) {
long[] a = new long[n];
for (int i = 0; i < n; i++)
a[i] = nextLong();
return a;
}
public char[] nextCharArray() {
return nextLine().toCharArray();
}
}
}
/*class Pair implements Comparable<Pair> {
int V;
int H;
public Pair(int count, int val) {
this.V = count;
this.H = val;
}
public void setV(int v) {
V = v;
}
public void setH(int h) {
H = h;
}
@Override
public int compareTo(Pair o) {
if(this.V != o.V)
return Integer.compare(this.V, o.V);
else
return Integer.compare(this.H, o.H);
}
public boolean equals(Pair o) {
return this.H == o.H && this.V == o.V;
}
}*/
class Pair {
int V;
int H;
public Pair(int x, int y) {
this.V = x;
this.H = y;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof Pair)) return false;
Pair key = (Pair) o;
return V == key.V && H == key.H;
}
@Override
public int hashCode() {
int result = V;
result = 31 * result + H;
return result;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
78,
5
],
[
78,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
9,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
13,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
13,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
13,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
13,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
42,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
13,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
13,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
13,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
6,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\t\tpublic static void main(String[] args) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\t\tlong a = sc.nextLong();\n\t\t\t\tlong b = sc.nextLong();\n\t\t\t\tlong c = sc.nextLong();\n\t\t\t\tlong d = sc.nextLong();\n\n\t\t\t\tlong ans = Math.max(a*c, b*d);\n\t\t\t\tans = Math.max(ans, a*d);\n\t\t\t\tans = Math.max(ans, b*c);\n\n\t\t\t\t\n\t\t\t\tSystem.out.println(String.valueOf(ans));\n\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\t\tpublic static void main(String[] args) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\t\tlong a = sc.nextLong();\n\t\t\t\tlong b = sc.nextLong();\n\t\t\t\tlong c = sc.nextLong();\n\t\t\t\tlong d = sc.nextLong();\n\n\t\t\t\tlong ans = Math.max(a*c, b*d);\n\t\t\t\tans = Math.max(ans, a*d);\n\t\t\t\tans = Math.max(ans, b*c);\n\n\t\t\t\t\n\t\t\t\tSystem.out.println(String.valueOf(ans));\n\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\t\tlong a = sc.nextLong();\n\t\t\t\tlong b = sc.nextLong();\n\t\t\t\tlong c = sc.nextLong();\n\t\t\t\tlong d = sc.nextLong();\n\n\t\t\t\tlong ans = Math.max(a*c, b*d);\n\t\t\t\tans = Math.max(ans, a*d);\n\t\t\t\tans = Math.max(ans, b*c);\n\n\t\t\t\t\n\t\t\t\tSystem.out.println(String.valueOf(ans));\n\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t}",
"main",
"{\n\t\t\t// TODO Auto-generated method stub\n\t\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\t\tlong a = sc.nextLong();\n\t\t\t\tlong b = sc.nextLong();\n\t\t\t\tlong c = sc.nextLong();\n\t\t\t\tlong d = sc.nextLong();\n\n\t\t\t\tlong ans = Math.max(a*c, b*d);\n\t\t\t\tans = Math.max(ans, a*d);\n\t\t\t\tans = Math.max(ans, b*c);\n\n\t\t\t\t\n\t\t\t\tSystem.out.println(String.valueOf(ans));\n\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t}",
"try (Scanner sc = new Scanner(System.in)) {\n\t\t\t\tlong a = sc.nextLong();\n\t\t\t\tlong b = sc.nextLong();\n\t\t\t\tlong c = sc.nextLong();\n\t\t\t\tlong d = sc.nextLong();\n\n\t\t\t\tlong ans = Math.max(a*c, b*d);\n\t\t\t\tans = Math.max(ans, a*d);\n\t\t\t\tans = Math.max(ans, b*c);\n\n\t\t\t\t\n\t\t\t\tSystem.out.println(String.valueOf(ans));\n\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}",
"catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}",
"Exception e",
"{\n\t\t\t\t// TODO: handle exception\n\t\t\t}",
"{\n\t\t\t\tlong a = sc.nextLong();\n\t\t\t\tlong b = sc.nextLong();\n\t\t\t\tlong c = sc.nextLong();\n\t\t\t\tlong d = sc.nextLong();\n\n\t\t\t\tlong ans = Math.max(a*c, b*d);\n\t\t\t\tans = Math.max(ans, a*d);\n\t\t\t\tans = Math.max(ans, b*c);\n\n\t\t\t\t\n\t\t\t\tSystem.out.println(String.valueOf(ans));\n\n\t\t\t}",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long ans = Math.max(a*c, b*d);",
"ans",
"Math.max(a*c, b*d)",
"Math.max",
"Math",
"a*c",
"a",
"c",
"b*d",
"b",
"d",
"ans = Math.max(ans, a*d)",
"ans",
"Math.max(ans, a*d)",
"Math.max",
"Math",
"ans",
"a*d",
"a",
"d",
"ans = Math.max(ans, b*c)",
"ans",
"Math.max(ans, b*c)",
"Math.max",
"Math",
"ans",
"b*c",
"b",
"c",
"System.out.println(String.valueOf(ans))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.valueOf(ans)",
"String.valueOf",
"String",
"ans",
"String[] args",
"args",
"public class Main {\n\n\t\tpublic static void main(String[] args) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\t\tlong a = sc.nextLong();\n\t\t\t\tlong b = sc.nextLong();\n\t\t\t\tlong c = sc.nextLong();\n\t\t\t\tlong d = sc.nextLong();\n\n\t\t\t\tlong ans = Math.max(a*c, b*d);\n\t\t\t\tans = Math.max(ans, a*d);\n\t\t\t\tans = Math.max(ans, b*c);\n\n\t\t\t\t\n\t\t\t\tSystem.out.println(String.valueOf(ans));\n\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t}\n}",
"public class Main {\n\n\t\tpublic static void main(String[] args) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\t\tlong a = sc.nextLong();\n\t\t\t\tlong b = sc.nextLong();\n\t\t\t\tlong c = sc.nextLong();\n\t\t\t\tlong d = sc.nextLong();\n\n\t\t\t\tlong ans = Math.max(a*c, b*d);\n\t\t\t\tans = Math.max(ans, a*d);\n\t\t\t\tans = Math.max(ans, b*c);\n\n\t\t\t\t\n\t\t\t\tSystem.out.println(String.valueOf(ans));\n\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
try (Scanner sc = new Scanner(System.in)) {
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
long ans = Math.max(a*c, b*d);
ans = Math.max(ans, a*d);
ans = Math.max(ans, b*c);
System.out.println(String.valueOf(ans));
} catch (Exception e) {
// TODO: handle exception
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
2,
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
],
[
164,
17
],
[
164,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
20,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
20,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
20,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
20,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
55,
56
],
[
55,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
61,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
67,
69
],
[
64,
70
],
[
70,
71
],
[
70,
72
],
[
18,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
75,
79
],
[
79,
80
],
[
75,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
75,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
90,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
100,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
89,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
75,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
122,
123
],
[
75,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
131,
132
],
[
75,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
137,
140
],
[
140,
141
],
[
75,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
148,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
144,
161
],
[
161,
162
],
[
0,
163
],
[
163,
164
],
[
163,
165
]
]
| [
"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\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tSystem.out.println(Math.max(a * c, Math.max(a * d, Math.max(b * c, b * d))));\n\n\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\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tSystem.out.println(Math.max(a * c, Math.max(a * d, Math.max(b * c, b * d))));\n\n\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\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tSystem.out.println(Math.max(a * c, Math.max(a * d, Math.max(b * c, b * d))));\n\n\n\n\t}",
"main",
"{\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tSystem.out.println(Math.max(a * c, Math.max(a * d, Math.max(b * c, b * d))));\n\n\n\n\t}",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"System.out.println(Math.max(a * c, Math.max(a * d, Math.max(b * c, b * d))))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.max(a * c, Math.max(a * d, Math.max(b * c, b * d)))",
"Math.max",
"Math",
"a * c",
"a",
"c",
"Math.max(a * d, Math.max(b * c, b * d))",
"Math.max",
"Math",
"a * d",
"a",
"d",
"Math.max(b * c, b * d)",
"Math.max",
"Math",
"b * c",
"b",
"c",
"b * d",
"b",
"d",
"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\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tSystem.out.println(Math.max(a * c, Math.max(a * d, Math.max(b * c, b * d))));\n\n\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\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tSystem.out.println(Math.max(a * c, Math.max(a * d, Math.max(b * c, b * d))));\n\n\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);
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
System.out.println(Math.max(a * c, Math.max(a * d, Math.max(b * c, b * d))));
}
}
class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
17,
14,
2,
13,
13,
30,
0,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
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
],
[
23,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
23,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
23,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
23,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
23,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
23,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
23,
67
],
[
67,
68
],
[
67,
69
],
[
23,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
23,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
23,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
23,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
21,
104
],
[
104,
105
]
]
| [
"import java.util.Scanner;\nimport java.util.Arrays;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.stream.Collectors;\nimport java.util.HashSet;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long a=sc.nextLong();\n long b=sc.nextLong();\n long c=sc.nextLong();\n long d=sc.nextLong();\n\n\n/*\n if (a>=0&&c>=0) {\n System.out.println(b*d);\n }\n if(d<0&&a>=0){\n System.out.println(a*d);\n }\n if (b<0&&c>=0) {\n System.out.println(b*c);\n }\n */\n long a1=a*c;\n long a2=a*d;\n long a3=b*c;\n long a4=b*d;\n long ans=0;\n if(a1>a2){\n ans=a1;\n }else{\n ans=a2;\n }\nif(a3>ans){\n ans=a3;\n}\nif (a4>ans) {\n ans=a4;\n}\nSystem.out.println(ans);\n\n}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.stream.Collectors;",
"Collectors",
"java.util.stream",
"import java.util.HashSet;",
"HashSet",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long a=sc.nextLong();\n long b=sc.nextLong();\n long c=sc.nextLong();\n long d=sc.nextLong();\n\n\n/*\n if (a>=0&&c>=0) {\n System.out.println(b*d);\n }\n if(d<0&&a>=0){\n System.out.println(a*d);\n }\n if (b<0&&c>=0) {\n System.out.println(b*c);\n }\n */\n long a1=a*c;\n long a2=a*d;\n long a3=b*c;\n long a4=b*d;\n long ans=0;\n if(a1>a2){\n ans=a1;\n }else{\n ans=a2;\n }\nif(a3>ans){\n ans=a3;\n}\nif (a4>ans) {\n ans=a4;\n}\nSystem.out.println(ans);\n\n}\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long a=sc.nextLong();\n long b=sc.nextLong();\n long c=sc.nextLong();\n long d=sc.nextLong();\n\n\n/*\n if (a>=0&&c>=0) {\n System.out.println(b*d);\n }\n if(d<0&&a>=0){\n System.out.println(a*d);\n }\n if (b<0&&c>=0) {\n System.out.println(b*c);\n }\n */\n long a1=a*c;\n long a2=a*d;\n long a3=b*c;\n long a4=b*d;\n long ans=0;\n if(a1>a2){\n ans=a1;\n }else{\n ans=a2;\n }\nif(a3>ans){\n ans=a3;\n}\nif (a4>ans) {\n ans=a4;\n}\nSystem.out.println(ans);\n\n}",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long a=sc.nextLong();\n long b=sc.nextLong();\n long c=sc.nextLong();\n long d=sc.nextLong();\n\n\n/*\n if (a>=0&&c>=0) {\n System.out.println(b*d);\n }\n if(d<0&&a>=0){\n System.out.println(a*d);\n }\n if (b<0&&c>=0) {\n System.out.println(b*c);\n }\n */\n long a1=a*c;\n long a2=a*d;\n long a3=b*c;\n long a4=b*d;\n long ans=0;\n if(a1>a2){\n ans=a1;\n }else{\n ans=a2;\n }\nif(a3>ans){\n ans=a3;\n}\nif (a4>ans) {\n ans=a4;\n}\nSystem.out.println(ans);\n\n}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a=sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b=sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c=sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d=sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long a1=a*c;",
"a1",
"a*c",
"a",
"c",
"long a2=a*d;",
"a2",
"a*d",
"a",
"d",
"long a3=b*c;",
"a3",
"b*c",
"b",
"c",
"long a4=b*d;",
"a4",
"b*d",
"b",
"d",
"long ans=0;",
"ans",
"0",
"if(a1>a2){\n ans=a1;\n }else{\n ans=a2;\n }",
"a1>a2",
"a1",
"a2",
"{\n ans=a1;\n }",
"ans=a1",
"ans",
"a1",
"{\n ans=a2;\n }",
"ans=a2",
"ans",
"a2",
"if(a3>ans){\n ans=a3;\n}",
"a3>ans",
"a3",
"ans",
"{\n ans=a3;\n}",
"ans=a3",
"ans",
"a3",
"if (a4>ans) {\n ans=a4;\n}",
"a4>ans",
"a4",
"ans",
"{\n ans=a4;\n}",
"ans=a4",
"ans",
"a4",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args"
]
| import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.HashSet;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long a=sc.nextLong();
long b=sc.nextLong();
long c=sc.nextLong();
long d=sc.nextLong();
/*
if (a>=0&&c>=0) {
System.out.println(b*d);
}
if(d<0&&a>=0){
System.out.println(a*d);
}
if (b<0&&c>=0) {
System.out.println(b*c);
}
*/
long a1=a*c;
long a2=a*d;
long a3=b*c;
long a4=b*d;
long ans=0;
if(a1>a2){
ans=a1;
}else{
ans=a2;
}
if(a3>ans){
ans=a3;
}
if (a4>ans) {
ans=a4;
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
18,
13,
13,
0,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
2,
13,
13,
13,
0,
13,
4,
18,
13,
2,
13,
13,
13,
4,
18,
13,
13,
12,
13,
30,
0,
13,
8,
4,
18,
13,
18,
13,
13,
20,
0,
13,
20,
41,
13,
4,
18,
13,
4,
13,
4,
18,
13,
14,
40,
4,
18,
13,
4,
13,
2,
2,
4,
18,
13,
13,
17,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
29,
40,
2,
2,
13,
17,
2,
13,
17,
23,
13,
12,
13,
30,
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,
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,
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,
12,
13,
30,
14,
2,
4,
18,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
540,
17
],
[
540,
18
],
[
18,
19
],
[
540,
20
],
[
20,
21
],
[
540,
22
],
[
22,
23
],
[
22,
24
],
[
540,
25
],
[
25,
26
],
[
25,
27
],
[
540,
29
],
[
29,
30
],
[
29,
31
],
[
540,
32
],
[
32,
33
],
[
32,
34
],
[
540,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
37,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
37,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
37,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
37,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
61,
67
],
[
67,
68
],
[
67,
69
],
[
37,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
75,
77
],
[
72,
78
],
[
37,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
84,
86
],
[
81,
87
],
[
37,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
540,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
97,
101
],
[
101,
102
],
[
101,
103
],
[
97,
104
],
[
94,
105
],
[
105,
106
],
[
105,
107
],
[
94,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
94,
113
],
[
113,
114
],
[
94,
115
],
[
115,
116
],
[
116,
117
],
[
94,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
126,
130
],
[
125,
131
],
[
540,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
132,
138
],
[
138,
139
],
[
540,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
143,
148
],
[
148,
149
],
[
142,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
158,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
167,
170
],
[
154,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
175,
176
],
[
176,
177
],
[
142,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
540,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
192,
193
],
[
192,
194
],
[
183,
195
],
[
195,
196
],
[
540,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
199,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
204,
209
],
[
209,
210
],
[
203,
211
],
[
211,
212
],
[
211,
213
],
[
199,
214
],
[
214,
215
],
[
540,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
220,
223
],
[
223,
224
],
[
540,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
540,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
233,
238
],
[
238,
239
],
[
238,
240
],
[
233,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
241,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
247,
250
],
[
246,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
233,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
540,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
261,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
261,
270
],
[
270,
271
],
[
270,
272
],
[
261,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
274,
278
],
[
278,
279
],
[
279,
280
],
[
279,
281
],
[
273,
282
],
[
282,
283
],
[
283,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
283,
288
],
[
282,
289
],
[
289,
290
],
[
289,
291
],
[
291,
292
],
[
261,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
295,
297
],
[
294,
298
],
[
294,
299
],
[
299,
300
],
[
300,
301
],
[
299,
302
],
[
299,
303
],
[
259,
304
],
[
304,
305
],
[
540,
306
],
[
306,
307
],
[
306,
308
],
[
308,
309
],
[
309,
310
],
[
309,
311
],
[
308,
313
],
[
313,
314
],
[
314,
315
],
[
315,
316
],
[
315,
317
],
[
313,
318
],
[
318,
319
],
[
318,
320
],
[
313,
321
],
[
321,
322
],
[
322,
323
],
[
313,
324
],
[
324,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
325,
329
],
[
329,
330
],
[
329,
331
],
[
308,
332
],
[
332,
333
],
[
306,
334
],
[
334,
335
],
[
306,
336
],
[
336,
337
],
[
540,
338
],
[
338,
339
],
[
338,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
340,
345
],
[
345,
346
],
[
346,
347
],
[
347,
348
],
[
347,
349
],
[
345,
350
],
[
350,
351
],
[
350,
352
],
[
345,
353
],
[
353,
354
],
[
354,
355
],
[
345,
356
],
[
356,
357
],
[
357,
358
],
[
358,
359
],
[
358,
360
],
[
357,
361
],
[
361,
362
],
[
340,
363
],
[
363,
364
],
[
338,
365
],
[
365,
366
],
[
540,
367
],
[
367,
368
],
[
367,
369
],
[
369,
370
],
[
370,
371
],
[
370,
372
],
[
369,
373
],
[
373,
374
],
[
369,
375
],
[
375,
376
],
[
375,
377
],
[
369,
378
],
[
378,
379
],
[
379,
380
],
[
380,
381
],
[
381,
382
],
[
381,
383
],
[
383,
384
],
[
380,
385
],
[
385,
386
],
[
379,
387
],
[
387,
388
],
[
388,
389
],
[
389,
390
],
[
390,
391
],
[
390,
392
],
[
389,
393
],
[
393,
394
],
[
393,
395
],
[
388,
396
],
[
396,
397
],
[
396,
398
],
[
369,
399
],
[
399,
400
],
[
400,
401
],
[
400,
402
],
[
399,
403
],
[
403,
404
],
[
404,
405
],
[
404,
406
],
[
403,
407
],
[
407,
408
],
[
407,
409
],
[
409,
410
],
[
369,
411
],
[
411,
412
],
[
411,
413
],
[
413,
414
],
[
414,
415
],
[
415,
416
],
[
416,
417
],
[
416,
418
],
[
415,
419
],
[
419,
420
],
[
419,
421
],
[
414,
422
],
[
422,
423
],
[
423,
424
],
[
423,
425
],
[
425,
426
],
[
426,
427
],
[
426,
428
],
[
425,
429
],
[
429,
430
],
[
429,
431
],
[
414,
432
],
[
432,
433
],
[
433,
434
],
[
434,
435
],
[
434,
436
],
[
436,
437
],
[
434,
438
],
[
413,
439
],
[
439,
440
],
[
439,
441
],
[
441,
442
],
[
540,
443
],
[
443,
444
],
[
443,
445
],
[
445,
446
],
[
446,
447
],
[
446,
448
],
[
445,
449
],
[
449,
450
],
[
445,
451
],
[
451,
452
],
[
451,
453
],
[
445,
454
],
[
454,
455
],
[
455,
456
],
[
456,
457
],
[
457,
458
],
[
457,
459
],
[
459,
460
],
[
456,
461
],
[
461,
462
],
[
455,
463
],
[
463,
464
],
[
464,
465
],
[
465,
466
],
[
466,
467
],
[
466,
468
],
[
465,
469
],
[
469,
470
],
[
469,
471
],
[
464,
472
],
[
472,
473
],
[
472,
474
],
[
445,
475
],
[
475,
476
],
[
476,
477
],
[
476,
478
],
[
475,
479
],
[
479,
480
],
[
480,
481
],
[
480,
482
],
[
479,
483
],
[
483,
484
],
[
483,
485
],
[
485,
486
],
[
445,
487
],
[
487,
488
],
[
487,
489
],
[
489,
490
],
[
490,
491
],
[
491,
492
],
[
492,
493
],
[
492,
494
],
[
491,
495
],
[
495,
496
],
[
495,
497
],
[
490,
498
],
[
498,
499
],
[
499,
500
],
[
499,
501
],
[
501,
502
],
[
502,
503
],
[
502,
504
],
[
501,
505
],
[
505,
506
],
[
505,
507
],
[
490,
508
],
[
508,
509
],
[
509,
510
],
[
510,
511
],
[
510,
512
],
[
512,
513
],
[
510,
514
],
[
489,
515
],
[
515,
516
],
[
515,
517
],
[
517,
518
],
[
540,
519
],
[
519,
520
],
[
519,
521
],
[
521,
522
],
[
522,
523
],
[
523,
524
],
[
524,
525
],
[
525,
526
],
[
523,
527
],
[
522,
528
],
[
528,
529
],
[
529,
530
],
[
530,
531
],
[
530,
532
],
[
528,
533
],
[
533,
534
],
[
534,
535
],
[
533,
536
],
[
519,
537
],
[
537,
538
],
[
0,
539
],
[
539,
540
],
[
539,
541
]
]
| [
"import java.io.ByteArrayInputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.*;\n\npublic class Main {\n InputStream is;\n PrintWriter out;\n String INPUT = \"\";\n\n void solve() throws IOException {\n long a = ni(), b = ni(), c = ni(), d = ni();\n long ans = Long.MIN_VALUE;\n ans = Math.max(a*c, b*d);\n ans = Math.max(a*d, ans);\n ans = Math.max(b*c, ans);\n out.println(ans);\n }\n\n void run() throws Exception\n {\n is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n out = new PrintWriter(System.out);\n\n long s = System.currentTimeMillis();\n solve();\n out.flush();\n if(!INPUT.isEmpty())tr(System.currentTimeMillis()-s+\"ms\");\n }\n\n public static void main(String[] args) throws Exception { new Main().run(); }\n\n private byte[] inbuf = new byte[1024];\n public int lenbuf = 0, ptrbuf = 0;\n\n private int readByte()\n {\n if(lenbuf == -1)throw new InputMismatchException();\n if(ptrbuf >= lenbuf){\n ptrbuf = 0;\n try { lenbuf = is.read(inbuf); } catch (IOException e) { throw new InputMismatchException(); }\n if(lenbuf <= 0)return -1;\n }\n return inbuf[ptrbuf++];\n }\n\n private boolean isSpaceChar(int c) { return !(c >= 33 && c <= 126); }\n private int skip() { int b; while((b = readByte()) != -1 && isSpaceChar(b)); return b; }\n\n private double nd() { return Double.parseDouble(ns()); }\n private char nc() { return (char)skip(); }\n\n private String ns()\n {\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while(!(isSpaceChar(b))){ // when nextLine, (isSpaceChar(b) && b != ' ')\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n private char[] ns(int n)\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 {\n char[][] map = new char[n][];\n for(int i = 0;i < n;i++)map[i] = ns(m);\n return map;\n }\n\n private int[] na(int n)\n {\n int[] a = new int[n];\n for(int i = 0;i < n;i++)a[i] = ni();\n return a;\n }\n\n private int ni()\n {\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 {\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\n private void tr(Object... o) { if(INPUT.length() > 0)System.out.println(Arrays.deepToString(o)); }\n\n}",
"import java.io.ByteArrayInputStream;",
"ByteArrayInputStream",
"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.*;",
"util.*",
"java",
"public class Main {\n InputStream is;\n PrintWriter out;\n String INPUT = \"\";\n\n void solve() throws IOException {\n long a = ni(), b = ni(), c = ni(), d = ni();\n long ans = Long.MIN_VALUE;\n ans = Math.max(a*c, b*d);\n ans = Math.max(a*d, ans);\n ans = Math.max(b*c, ans);\n out.println(ans);\n }\n\n void run() throws Exception\n {\n is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n out = new PrintWriter(System.out);\n\n long s = System.currentTimeMillis();\n solve();\n out.flush();\n if(!INPUT.isEmpty())tr(System.currentTimeMillis()-s+\"ms\");\n }\n\n public static void main(String[] args) throws Exception { new Main().run(); }\n\n private byte[] inbuf = new byte[1024];\n public int lenbuf = 0, ptrbuf = 0;\n\n private int readByte()\n {\n if(lenbuf == -1)throw new InputMismatchException();\n if(ptrbuf >= lenbuf){\n ptrbuf = 0;\n try { lenbuf = is.read(inbuf); } catch (IOException e) { throw new InputMismatchException(); }\n if(lenbuf <= 0)return -1;\n }\n return inbuf[ptrbuf++];\n }\n\n private boolean isSpaceChar(int c) { return !(c >= 33 && c <= 126); }\n private int skip() { int b; while((b = readByte()) != -1 && isSpaceChar(b)); return b; }\n\n private double nd() { return Double.parseDouble(ns()); }\n private char nc() { return (char)skip(); }\n\n private String ns()\n {\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while(!(isSpaceChar(b))){ // when nextLine, (isSpaceChar(b) && b != ' ')\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n private char[] ns(int n)\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 {\n char[][] map = new char[n][];\n for(int i = 0;i < n;i++)map[i] = ns(m);\n return map;\n }\n\n private int[] na(int n)\n {\n int[] a = new int[n];\n for(int i = 0;i < n;i++)a[i] = ni();\n return a;\n }\n\n private int ni()\n {\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 {\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\n private void tr(Object... o) { if(INPUT.length() > 0)System.out.println(Arrays.deepToString(o)); }\n\n}",
"Main",
"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 long a = ni(), b = ni(), c = ni(), d = ni();\n long ans = Long.MIN_VALUE;\n ans = Math.max(a*c, b*d);\n ans = Math.max(a*d, ans);\n ans = Math.max(b*c, ans);\n out.println(ans);\n }",
"solve",
"{\n long a = ni(), b = ni(), c = ni(), d = ni();\n long ans = Long.MIN_VALUE;\n ans = Math.max(a*c, b*d);\n ans = Math.max(a*d, ans);\n ans = Math.max(b*c, ans);\n out.println(ans);\n }",
"long a = ni()",
"a",
"ni()",
"ni",
"b = ni()",
"b",
"ni()",
"ni",
"c = ni()",
"c",
"ni()",
"ni",
"d = ni();",
"d",
"ni()",
"ni",
"long ans = Long.MIN_VALUE;",
"ans",
"Long.MIN_VALUE",
"Long",
"Long.MIN_VALUE",
"ans = Math.max(a*c, b*d)",
"ans",
"Math.max(a*c, b*d)",
"Math.max",
"Math",
"a*c",
"a",
"c",
"b*d",
"b",
"d",
"ans = Math.max(a*d, ans)",
"ans",
"Math.max(a*d, ans)",
"Math.max",
"Math",
"a*d",
"a",
"d",
"ans",
"ans = Math.max(b*c, ans)",
"ans",
"Math.max(b*c, ans)",
"Math.max",
"Math",
"b*c",
"b",
"c",
"ans",
"out.println(ans)",
"out.println",
"out",
"ans",
"void run() throws Exception\n {\n is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n out = new PrintWriter(System.out);\n\n long s = System.currentTimeMillis();\n solve();\n out.flush();\n if(!INPUT.isEmpty())tr(System.currentTimeMillis()-s+\"ms\");\n }",
"run",
"{\n is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n out = new PrintWriter(System.out);\n\n long s = System.currentTimeMillis();\n solve();\n out.flush();\n if(!INPUT.isEmpty())tr(System.currentTimeMillis()-s+\"ms\");\n }",
"is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes())",
"is",
"INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes())",
"INPUT.isEmpty()",
"INPUT.isEmpty",
"INPUT",
"System.in",
"System",
"System.in",
"new ByteArrayInputStream(INPUT.getBytes())",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"long s = System.currentTimeMillis();",
"s",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"solve()",
"solve",
"out.flush()",
"out.flush",
"out",
"if(!INPUT.isEmpty())tr(System.currentTimeMillis()-s+\"ms\");",
"!INPUT.isEmpty()",
"INPUT.isEmpty()",
"INPUT.isEmpty",
"INPUT",
"tr(System.currentTimeMillis()-s+\"ms\")",
"tr",
"System.currentTimeMillis()-s+\"ms\"",
"System.currentTimeMillis()-s",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"s",
"\"ms\"",
"public static void main(String[] args) throws Exception { new Main().run(); }",
"main",
"{ new Main().run(); }",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"private int readByte()\n {\n if(lenbuf == -1)throw new InputMismatchException();\n if(ptrbuf >= lenbuf){\n ptrbuf = 0;\n try { lenbuf = is.read(inbuf); } catch (IOException e) { throw new InputMismatchException(); }\n if(lenbuf <= 0)return -1;\n }\n return inbuf[ptrbuf++];\n }",
"readByte",
"{\n if(lenbuf == -1)throw new InputMismatchException();\n if(ptrbuf >= lenbuf){\n ptrbuf = 0;\n try { lenbuf = is.read(inbuf); } catch (IOException e) { throw new InputMismatchException(); }\n if(lenbuf <= 0)return -1;\n }\n return inbuf[ptrbuf++];\n }",
"if(lenbuf == -1)throw new InputMismatchException();",
"lenbuf == -1",
"lenbuf",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if(ptrbuf >= lenbuf){\n ptrbuf = 0;\n try { lenbuf = is.read(inbuf); } catch (IOException e) { throw new InputMismatchException(); }\n if(lenbuf <= 0)return -1;\n }",
"ptrbuf >= lenbuf",
"ptrbuf",
"lenbuf",
"{\n ptrbuf = 0;\n try { lenbuf = is.read(inbuf); } catch (IOException e) { throw new InputMismatchException(); }\n if(lenbuf <= 0)return -1;\n }",
"ptrbuf = 0",
"ptrbuf",
"0",
"try { lenbuf = is.read(inbuf); } catch (IOException e) { throw new InputMismatchException(); }",
"catch (IOException e) { throw new InputMismatchException(); }",
"IOException e",
"{ throw new InputMismatchException(); }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{ lenbuf = is.read(inbuf); }",
"lenbuf = is.read(inbuf)",
"lenbuf",
"is.read(inbuf)",
"is.read",
"is",
"inbuf",
"if(lenbuf <= 0)return -1;",
"lenbuf <= 0",
"lenbuf",
"0",
"return -1;",
"-1",
"1",
"return inbuf[ptrbuf++];",
"inbuf[ptrbuf++]",
"inbuf",
"ptrbuf++",
"ptrbuf",
"private boolean isSpaceChar(int c) { return !(c >= 33 && c <= 126); }",
"isSpaceChar",
"{ return !(c >= 33 && c <= 126); }",
"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() { int b; while((b = readByte()) != -1 && isSpaceChar(b)); return b; }",
"skip",
"{ int b; while((b = readByte()) != -1 && isSpaceChar(b)); return b; }",
"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() { return Double.parseDouble(ns()); }",
"nd",
"{ return Double.parseDouble(ns()); }",
"return Double.parseDouble(ns());",
"Double.parseDouble(ns())",
"Double.parseDouble",
"Double",
"ns()",
"ns",
"private char nc() { return (char)skip(); }",
"nc",
"{ return (char)skip(); }",
"return (char)skip();",
"(char)skip()",
"skip",
"private String ns()\n {\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while(!(isSpaceChar(b))){ // when nextLine, (isSpaceChar(b) && b != ' ')\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, (isSpaceChar(b) && b != ' ')\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"int b = skip();",
"b",
"skip()",
"skip",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"while(!(isSpaceChar(b))){ // when nextLine, (isSpaceChar(b) && b != ' ')\n sb.appendCodePoint(b);\n b = readByte();\n }",
"!(isSpaceChar(b))",
"(isSpaceChar(b))",
"isSpaceChar",
"b",
"{ // when nextLine, (isSpaceChar(b) && 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",
"private char[] ns(int n)\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 {\n char[][] map = new char[n][];\n for(int i = 0;i < n;i++)map[i] = ns(m);\n return map;\n }",
"nm",
"{\n char[][] map = new char[n][];\n for(int i = 0;i < n;i++)map[i] = ns(m);\n return map;\n }",
"char[][] map = new char[n][];",
"map",
"new char[n][]",
"n",
"for(int i = 0;i < n;i++)map[i] = ns(m);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"map[i] = ns(m);",
"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 {\n int[] a = new int[n];\n for(int i = 0;i < n;i++)a[i] = ni();\n return a;\n }",
"na",
"{\n int[] a = new int[n];\n for(int i = 0;i < n;i++)a[i] = ni();\n return a;\n }",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for(int i = 0;i < n;i++)a[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",
"private int ni()\n {\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 {\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",
"private void tr(Object... o) { if(INPUT.length() > 0)System.out.println(Arrays.deepToString(o)); }",
"tr",
"{ if(INPUT.length() > 0)System.out.println(Arrays.deepToString(o)); }",
"if(INPUT.length() > 0)System.out.println(Arrays.deepToString(o));",
"INPUT.length() > 0",
"INPUT.length()",
"INPUT.length",
"INPUT",
"0",
"System.out.println(Arrays.deepToString(o))",
"System.out.println",
"System.out",
"System",
"System.out",
"Arrays.deepToString(o)",
"Arrays.deepToString",
"Arrays",
"o",
"Object... o",
"o",
"public class Main {\n InputStream is;\n PrintWriter out;\n String INPUT = \"\";\n\n void solve() throws IOException {\n long a = ni(), b = ni(), c = ni(), d = ni();\n long ans = Long.MIN_VALUE;\n ans = Math.max(a*c, b*d);\n ans = Math.max(a*d, ans);\n ans = Math.max(b*c, ans);\n out.println(ans);\n }\n\n void run() throws Exception\n {\n is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n out = new PrintWriter(System.out);\n\n long s = System.currentTimeMillis();\n solve();\n out.flush();\n if(!INPUT.isEmpty())tr(System.currentTimeMillis()-s+\"ms\");\n }\n\n public static void main(String[] args) throws Exception { new Main().run(); }\n\n private byte[] inbuf = new byte[1024];\n public int lenbuf = 0, ptrbuf = 0;\n\n private int readByte()\n {\n if(lenbuf == -1)throw new InputMismatchException();\n if(ptrbuf >= lenbuf){\n ptrbuf = 0;\n try { lenbuf = is.read(inbuf); } catch (IOException e) { throw new InputMismatchException(); }\n if(lenbuf <= 0)return -1;\n }\n return inbuf[ptrbuf++];\n }\n\n private boolean isSpaceChar(int c) { return !(c >= 33 && c <= 126); }\n private int skip() { int b; while((b = readByte()) != -1 && isSpaceChar(b)); return b; }\n\n private double nd() { return Double.parseDouble(ns()); }\n private char nc() { return (char)skip(); }\n\n private String ns()\n {\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while(!(isSpaceChar(b))){ // when nextLine, (isSpaceChar(b) && b != ' ')\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n private char[] ns(int n)\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 {\n char[][] map = new char[n][];\n for(int i = 0;i < n;i++)map[i] = ns(m);\n return map;\n }\n\n private int[] na(int n)\n {\n int[] a = new int[n];\n for(int i = 0;i < n;i++)a[i] = ni();\n return a;\n }\n\n private int ni()\n {\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 {\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\n private void tr(Object... o) { if(INPUT.length() > 0)System.out.println(Arrays.deepToString(o)); }\n\n}",
"public class Main {\n InputStream is;\n PrintWriter out;\n String INPUT = \"\";\n\n void solve() throws IOException {\n long a = ni(), b = ni(), c = ni(), d = ni();\n long ans = Long.MIN_VALUE;\n ans = Math.max(a*c, b*d);\n ans = Math.max(a*d, ans);\n ans = Math.max(b*c, ans);\n out.println(ans);\n }\n\n void run() throws Exception\n {\n is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n out = new PrintWriter(System.out);\n\n long s = System.currentTimeMillis();\n solve();\n out.flush();\n if(!INPUT.isEmpty())tr(System.currentTimeMillis()-s+\"ms\");\n }\n\n public static void main(String[] args) throws Exception { new Main().run(); }\n\n private byte[] inbuf = new byte[1024];\n public int lenbuf = 0, ptrbuf = 0;\n\n private int readByte()\n {\n if(lenbuf == -1)throw new InputMismatchException();\n if(ptrbuf >= lenbuf){\n ptrbuf = 0;\n try { lenbuf = is.read(inbuf); } catch (IOException e) { throw new InputMismatchException(); }\n if(lenbuf <= 0)return -1;\n }\n return inbuf[ptrbuf++];\n }\n\n private boolean isSpaceChar(int c) { return !(c >= 33 && c <= 126); }\n private int skip() { int b; while((b = readByte()) != -1 && isSpaceChar(b)); return b; }\n\n private double nd() { return Double.parseDouble(ns()); }\n private char nc() { return (char)skip(); }\n\n private String ns()\n {\n int b = skip();\n StringBuilder sb = new StringBuilder();\n while(!(isSpaceChar(b))){ // when nextLine, (isSpaceChar(b) && b != ' ')\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n private char[] ns(int n)\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 {\n char[][] map = new char[n][];\n for(int i = 0;i < n;i++)map[i] = ns(m);\n return map;\n }\n\n private int[] na(int n)\n {\n int[] a = new int[n];\n for(int i = 0;i < n;i++)a[i] = ni();\n return a;\n }\n\n private int ni()\n {\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 {\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\n private void tr(Object... o) { if(INPUT.length() > 0)System.out.println(Arrays.deepToString(o)); }\n\n}",
"Main"
]
| import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.*;
public class Main {
InputStream is;
PrintWriter out;
String INPUT = "";
void solve() throws IOException {
long a = ni(), b = ni(), c = ni(), d = ni();
long ans = Long.MIN_VALUE;
ans = Math.max(a*c, b*d);
ans = Math.max(a*d, ans);
ans = Math.max(b*c, ans);
out.println(ans);
}
void run() throws Exception
{
is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());
out = new PrintWriter(System.out);
long s = System.currentTimeMillis();
solve();
out.flush();
if(!INPUT.isEmpty())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, (isSpaceChar(b) && b != ' ')
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 void tr(Object... o) { if(INPUT.length() > 0)System.out.println(Arrays.deepToString(o)); }
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
14,
2,
13,
13,
30,
29,
17,
30,
0,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
17,
29,
17,
12,
13,
30,
14,
4,
13,
29,
18,
13,
40,
13,
29,
40,
17,
12,
13,
30,
29,
2,
2,
17,
13,
2,
13,
17,
23,
13,
12,
13,
30,
42,
2,
4,
13,
40,
4,
13,
18,
13,
13,
40,
13,
12,
13,
30,
4,
13,
29,
4,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
20,
41,
13,
4,
13,
42,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
14,
2,
2,
13,
17,
2,
17,
13,
30,
37,
20,
42,
17,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
2,
13,
40,
17,
40,
4,
13,
13,
30,
29,
8,
13,
40,
13,
13,
30,
37,
20,
0,
13,
4,
13,
12,
13,
30,
29,
4,
13,
12,
13,
30,
14,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
14,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
14,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
509,
14
],
[
509,
15
],
[
15,
16
],
[
15,
17
],
[
509,
18
],
[
18,
19
],
[
18,
20
],
[
509,
21
],
[
21,
22
],
[
509,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
25,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
25,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
52,
53
],
[
52,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
58,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
61,
67
],
[
67,
68
],
[
67,
69
],
[
25,
70
],
[
70,
71
],
[
71,
72
],
[
23,
73
],
[
73,
74
],
[
509,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
75,
82
],
[
82,
83
],
[
82,
84
],
[
75,
86
],
[
86,
87
],
[
86,
88
],
[
75,
89
],
[
89,
90
],
[
89,
91
],
[
75,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
100,
101
],
[
95,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
106,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
102,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
125,
126
],
[
94,
127
],
[
127,
128
],
[
75,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
132,
140
],
[
140,
141
],
[
141,
142
],
[
75,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
151,
153
],
[
143,
154
],
[
154,
155
],
[
75,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
160,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
166,
168
],
[
159,
169
],
[
169,
170
],
[
75,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
173,
176
],
[
176,
177
],
[
177,
178
],
[
75,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
182,
186
],
[
186,
187
],
[
181,
188
],
[
188,
189
],
[
188,
190
],
[
181,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
181,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
200,
203
],
[
199,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
181,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
75,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
216,
219
],
[
219,
220
],
[
75,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
224,
228
],
[
228,
229
],
[
223,
230
],
[
230,
231
],
[
230,
232
],
[
223,
233
],
[
233,
234
],
[
233,
235
],
[
223,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
223,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
240,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
244,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
223,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
253,
257
],
[
257,
258
],
[
257,
259
],
[
252,
260
],
[
260,
261
],
[
261,
262
],
[
223,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
267,
271
],
[
271,
272
],
[
271,
273
],
[
266,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
274,
278
],
[
278,
279
],
[
278,
280
],
[
280,
281
],
[
280,
282
],
[
266,
283
],
[
283,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
287,
288
],
[
284,
289
],
[
289,
290
],
[
290,
291
],
[
290,
292
],
[
283,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
295,
297
],
[
297,
298
],
[
295,
299
],
[
283,
300
],
[
300,
301
],
[
301,
302
],
[
265,
303
],
[
303,
304
],
[
303,
305
],
[
305,
306
],
[
75,
307
],
[
307,
308
],
[
307,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
75,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
316,
317
],
[
316,
318
],
[
318,
319
],
[
319,
320
],
[
319,
321
],
[
322,
323
],
[
322,
324
],
[
318,
325
],
[
325,
326
],
[
326,
327
],
[
327,
328
],
[
327,
329
],
[
325,
330
],
[
330,
331
],
[
330,
332
],
[
325,
333
],
[
333,
334
],
[
334,
335
],
[
325,
336
],
[
337,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
339,
341
],
[
338,
342
],
[
342,
343
],
[
343,
344
],
[
318,
345
],
[
345,
346
],
[
316,
347
],
[
347,
348
],
[
348,
349
],
[
348,
350
],
[
347,
352
],
[
352,
353
],
[
353,
354
],
[
354,
355
],
[
354,
356
],
[
352,
357
],
[
357,
358
],
[
357,
359
],
[
352,
360
],
[
360,
361
],
[
361,
362
],
[
352,
363
],
[
364,
364
],
[
364,
365
],
[
365,
366
],
[
366,
367
],
[
366,
368
],
[
365,
369
],
[
369,
370
],
[
370,
371
],
[
347,
372
],
[
372,
373
],
[
313,
374
],
[
374,
375
],
[
313,
376
],
[
376,
377
],
[
75,
378
],
[
378,
379
],
[
378,
380
],
[
380,
381
],
[
381,
382
],
[
381,
383
],
[
383,
384
],
[
384,
385
],
[
384,
386
],
[
387,
388
],
[
387,
389
],
[
383,
390
],
[
390,
391
],
[
391,
392
],
[
392,
393
],
[
392,
394
],
[
390,
395
],
[
395,
396
],
[
395,
397
],
[
390,
398
],
[
398,
399
],
[
399,
400
],
[
390,
401
],
[
402,
402
],
[
402,
403
],
[
403,
404
],
[
404,
405
],
[
404,
406
],
[
403,
407
],
[
407,
408
],
[
408,
409
],
[
383,
410
],
[
410,
411
],
[
381,
412
],
[
412,
413
],
[
413,
414
],
[
413,
415
],
[
412,
417
],
[
417,
418
],
[
418,
419
],
[
419,
420
],
[
419,
421
],
[
417,
422
],
[
422,
423
],
[
422,
424
],
[
417,
425
],
[
425,
426
],
[
426,
427
],
[
417,
428
],
[
429,
429
],
[
429,
430
],
[
430,
431
],
[
431,
432
],
[
431,
433
],
[
430,
434
],
[
434,
435
],
[
435,
436
],
[
412,
437
],
[
437,
438
],
[
378,
439
],
[
439,
440
],
[
378,
441
],
[
441,
442
],
[
75,
443
],
[
443,
444
],
[
443,
445
],
[
445,
446
],
[
446,
447
],
[
446,
448
],
[
448,
449
],
[
449,
450
],
[
449,
451
],
[
452,
453
],
[
452,
454
],
[
448,
455
],
[
455,
456
],
[
456,
457
],
[
457,
458
],
[
457,
459
],
[
455,
460
],
[
460,
461
],
[
460,
462
],
[
455,
463
],
[
463,
464
],
[
464,
465
],
[
455,
466
],
[
467,
467
],
[
467,
468
],
[
468,
469
],
[
469,
470
],
[
469,
471
],
[
468,
472
],
[
472,
473
],
[
473,
474
],
[
448,
475
],
[
475,
476
],
[
446,
477
],
[
477,
478
],
[
478,
479
],
[
478,
480
],
[
477,
482
],
[
482,
483
],
[
483,
484
],
[
484,
485
],
[
484,
486
],
[
482,
487
],
[
487,
488
],
[
487,
489
],
[
482,
490
],
[
490,
491
],
[
491,
492
],
[
482,
493
],
[
494,
494
],
[
494,
495
],
[
495,
496
],
[
496,
497
],
[
496,
498
],
[
495,
499
],
[
499,
500
],
[
500,
501
],
[
477,
502
],
[
502,
503
],
[
443,
504
],
[
504,
505
],
[
443,
506
],
[
506,
507
],
[
0,
508
],
[
508,
509
],
[
508,
510
]
]
| [
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\n\nimport java.util.NoSuchElementException;\n\npublic class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic int n;\n\t//static HashMap <String, Integer> map;\n\t\n\tpublic static void main(String[] args) {\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\t\n\t\tout.println(Math.max(a*c, Math.max(a*d, Math.max(b*c, b*d))));\n\t\t\n\t\t\n\t\tout.flush();\n\t\t\n\t}\n\t\n\t\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t \n\t public double [] nextDoubleArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t double [] array = new double[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t double[] array = new double[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\t\t \n\t }\n\t\n\t\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.NoSuchElementException;",
"NoSuchElementException",
"java.util",
"public class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic int n;\n\t//static HashMap <String, Integer> map;\n\t\n\tpublic static void main(String[] args) {\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\t\n\t\tout.println(Math.max(a*c, Math.max(a*d, Math.max(b*c, b*d))));\n\t\t\n\t\t\n\t\tout.flush();\n\t\t\n\t}\n\t\n\t\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t \n\t public double [] nextDoubleArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t double [] array = new double[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t double[] array = new double[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\t\t \n\t }\n\t\n\t\n}",
"Main",
"static FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"static PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"static int n;",
"n",
"public static void main(String[] args) {\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\t\n\t\tout.println(Math.max(a*c, Math.max(a*d, Math.max(b*c, b*d))));\n\t\t\n\t\t\n\t\tout.flush();\n\t\t\n\t}",
"main",
"{\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\t\n\t\tout.println(Math.max(a*c, Math.max(a*d, Math.max(b*c, b*d))));\n\t\t\n\t\t\n\t\tout.flush();\n\t\t\n\t}",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"out.println(Math.max(a*c, Math.max(a*d, Math.max(b*c, b*d))))",
"out.println",
"out",
"Math.max(a*c, Math.max(a*d, Math.max(b*c, b*d)))",
"Math.max",
"Math",
"a*c",
"a",
"c",
"Math.max(a*d, Math.max(b*c, b*d))",
"Math.max",
"Math",
"a*d",
"a",
"d",
"Math.max(b*c, b*d)",
"Math.max",
"Math",
"b*c",
"b",
"c",
"b*d",
"b",
"d",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"static class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t \n\t public double [] nextDoubleArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t double [] array = new double[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t double[] array = new double[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\t\t \n\t }",
"FastScanner",
"private final InputStream in = System.in;",
"in",
"System.in",
"System",
"System.in",
"private final byte[] buffer = new byte[1024];",
"buffer",
"new byte[1024]",
"1024",
"private int ptr = 0;",
"ptr",
"0",
"private int buflen = 0;",
"buflen",
"0",
"private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }",
"hasNextByte",
"{\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }",
"if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }",
"ptr < buflen",
"ptr",
"buflen",
"{\n\t return true;\n\t }",
"return true;",
"true",
"{\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }",
"ptr = 0",
"ptr",
"0",
"try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }",
"catch (IOException e) {\n\t e.printStackTrace();\n\t }",
"IOException e",
"{\n\t e.printStackTrace();\n\t }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t buflen = in.read(buffer);\n\t }",
"buflen = in.read(buffer)",
"buflen",
"in.read(buffer)",
"in.read",
"in",
"buffer",
"if (buflen <= 0) {\n\t return false;\n\t }",
"buflen <= 0",
"buflen",
"0",
"{\n\t return false;\n\t }",
"return false;",
"false",
"return true;",
"true",
"private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }",
"readByte",
"{\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }",
"if (hasNextByte()) return buffer[ptr++];\n\t else return -1;",
"hasNextByte()",
"hasNextByte",
"return buffer[ptr++];",
"buffer[ptr++]",
"buffer",
"ptr++",
"ptr",
"return -1;",
"-1",
"1",
"private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }",
"isPrintableChar",
"{\n\t return 33 <= c && c <= 126;\n\t }",
"return 33 <= c && c <= 126;",
"33 <= c && c <= 126",
"33 <= c",
"33",
"c",
"c <= 126",
"c",
"126",
"int c",
"c",
"private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }",
"skipUnprintable",
"{\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }",
"while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;",
"hasNextByte() && !isPrintableChar(buffer[ptr])",
"hasNextByte()",
"hasNextByte",
"!isPrintableChar(buffer[ptr])",
"isPrintableChar(buffer[ptr])",
"isPrintableChar",
"buffer[ptr]",
"buffer",
"ptr",
"ptr++",
"ptr",
"public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }",
"hasNext",
"{\n\t skipUnprintable();\n\t return hasNextByte();\n\t }",
"skipUnprintable()",
"skipUnprintable",
"return hasNextByte();",
"hasNextByte()",
"hasNextByte",
"public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }",
"next",
"{\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }",
"nextDouble",
"{\n\t \treturn Double.parseDouble(next());\n\t }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }",
"nextLong",
"{\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"long n = 0;",
"n",
"0",
"boolean minus = false;",
"minus",
"false",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }",
"b == '-'",
"b",
"'-'",
"{\n\t minus = true;\n\t b = readByte();\n\t }",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"{\n\t throw new NumberFormatException();\n\t }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }",
"true",
"{\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }",
"if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n\t n *= 10;\n\t n += b - '0';\n\t }",
"n *= 10",
"n",
"10",
"n += b - '0'",
"n",
"b - '0'",
"b",
"'0'",
"if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }",
"b == -1 || !isPrintableChar(b)",
"b == -1",
"b",
"-1",
"1",
"!isPrintableChar(b)",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n\t return minus ? -n : n;\n\t }",
"return minus ? -n : n;",
"minus ? -n : n",
"minus",
"-n",
"n",
"n",
"{\n\t throw new NumberFormatException();\n\t }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"b = readByte()",
"b",
"readByte()",
"readByte",
"public int nextInt() {\n\t return (int) nextLong();\n\t }",
"nextInt",
"{\n\t return (int) nextLong();\n\t }",
"return (int) nextLong();",
"(int) nextLong()",
"nextLong",
"public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }",
"nextIntArray",
"{\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }",
"if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }",
"oneBased",
"{\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }",
"int[] array = new int[N + 1];",
"array",
"new int[N + 1]",
"N + 1",
"N",
"1",
"for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t array[i] = sc.nextInt();\n\t }",
"{\n\t array[i] = sc.nextInt();\n\t }",
"array[i] = sc.nextInt()",
"array[i]",
"array",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"return array;",
"array",
"{\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }",
"int[] array = new int[N];",
"array",
"new int[N]",
"N",
"for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t array[i] = sc.nextInt();\n\t }",
"{\n\t array[i] = sc.nextInt();\n\t }",
"array[i] = sc.nextInt()",
"array[i]",
"array",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"return array;",
"array",
"int N",
"N",
"boolean oneBased",
"oneBased",
"public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }",
"nextLongArray",
"{\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }",
"if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }",
"oneBased",
"{\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }",
"long[] array = new long[N + 1];",
"array",
"new long[N + 1]",
"N + 1",
"N",
"1",
"for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t array[i] = sc.nextLong();\n\t }",
"{\n\t array[i] = sc.nextLong();\n\t }",
"array[i] = sc.nextLong()",
"array[i]",
"array",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"return array;",
"array",
"{\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }",
"long[] array = new long[N];",
"array",
"new long[N]",
"N",
"for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t array[i] = sc.nextLong();\n\t }",
"{\n\t array[i] = sc.nextLong();\n\t }",
"array[i] = sc.nextLong()",
"array[i]",
"array",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"return array;",
"array",
"int N",
"N",
"boolean oneBased",
"oneBased",
"public double [] nextDoubleArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t double [] array = new double[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t double[] array = new double[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }",
"nextDoubleArray",
"{\n\t\t if (oneBased) {\n\t\t double [] array = new double[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t double[] array = new double[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }",
"if (oneBased) {\n\t\t double [] array = new double[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t double[] array = new double[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }",
"oneBased",
"{\n\t\t double [] array = new double[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }",
"double [] array = new double[N + 1];",
"array",
"new double[N + 1]",
"N + 1",
"N",
"1",
"for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t array[i] = sc.nextDouble();\n\t\t }",
"{\n\t\t array[i] = sc.nextDouble();\n\t\t }",
"array[i] = sc.nextDouble()",
"array[i]",
"array",
"i",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"return array;",
"array",
"{\n\t\t double[] array = new double[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }",
"double[] array = new double[N];",
"array",
"new double[N]",
"N",
"for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t array[i] = sc.nextDouble();\n\t\t }",
"{\n\t\t array[i] = sc.nextDouble();\n\t\t }",
"array[i] = sc.nextDouble()",
"array[i]",
"array",
"i",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"return array;",
"array",
"int N",
"N",
"boolean oneBased",
"oneBased",
"public class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic int n;\n\t//static HashMap <String, Integer> map;\n\t\n\tpublic static void main(String[] args) {\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\t\n\t\tout.println(Math.max(a*c, Math.max(a*d, Math.max(b*c, b*d))));\n\t\t\n\t\t\n\t\tout.flush();\n\t\t\n\t}\n\t\n\t\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t \n\t public double [] nextDoubleArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t double [] array = new double[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t double[] array = new double[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\t\t \n\t }\n\t\n\t\n}",
"public class Main{\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\tstatic int n;\n\t//static HashMap <String, Integer> map;\n\t\n\tpublic static void main(String[] args) {\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\t\n\t\tout.println(Math.max(a*c, Math.max(a*d, Math.max(b*c, b*d))));\n\t\t\n\t\t\n\t\tout.flush();\n\t\t\n\t}\n\t\n\t\n\t\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\t \n\t public double nextDouble () {\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t \n\t public double [] nextDoubleArray(int N, boolean oneBased) {\n\t\t if (oneBased) {\n\t\t double [] array = new double[N + 1];\n\t\t for (int i = 1; i <= N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t } else {\n\t\t double[] array = new double[N];\n\t\t for (int i = 0; i < N; i++) {\n\t\t array[i] = sc.nextDouble();\n\t\t }\n\t\t return array;\n\t\t }\n\t\t }\n\t\t \n\t }\n\t\n\t\n}",
"Main"
]
| import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.NoSuchElementException;
public class Main{
static FastScanner sc = new FastScanner();
static PrintWriter out = new PrintWriter(System.out);
static int n;
//static HashMap <String, Integer> map;
public static void main(String[] args) {
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
out.println(Math.max(a*c, Math.max(a*d, Math.max(b*c, b*d))));
out.flush();
}
static class FastScanner {
private final InputStream in = System.in;
private final byte[] buffer = new byte[1024];
private int ptr = 0;
private int buflen = 0;
private boolean hasNextByte() {
if (ptr < buflen) {
return true;
} else {
ptr = 0;
try {
buflen = in.read(buffer);
} catch (IOException e) {
e.printStackTrace();
}
if (buflen <= 0) {
return false;
}
}
return true;
}
private int readByte() {
if (hasNextByte()) return buffer[ptr++];
else return -1;
}
private static boolean isPrintableChar(int c) {
return 33 <= c && c <= 126;
}
private void skipUnprintable() {
while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;
}
public boolean hasNext() {
skipUnprintable();
return hasNextByte();
}
public String next() {
if (!hasNext()) throw new NoSuchElementException();
StringBuilder sb = new StringBuilder();
int b = readByte();
while (isPrintableChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
public double nextDouble () {
return Double.parseDouble(next());
}
public long nextLong() {
if (!hasNext()) throw new NoSuchElementException();
long n = 0;
boolean minus = false;
int b = readByte();
if (b == '-') {
minus = true;
b = readByte();
}
if (b < '0' || '9' < b) {
throw new NumberFormatException();
}
while (true) {
if ('0' <= b && b <= '9') {
n *= 10;
n += b - '0';
} else if (b == -1 || !isPrintableChar(b)) {
return minus ? -n : n;
} else {
throw new NumberFormatException();
}
b = readByte();
}
}
public int nextInt() {
return (int) nextLong();
}
public int[] nextIntArray(int N, boolean oneBased) {
if (oneBased) {
int[] array = new int[N + 1];
for (int i = 1; i <= N; i++) {
array[i] = sc.nextInt();
}
return array;
} else {
int[] array = new int[N];
for (int i = 0; i < N; i++) {
array[i] = sc.nextInt();
}
return array;
}
}
public long[] nextLongArray(int N, boolean oneBased) {
if (oneBased) {
long[] array = new long[N + 1];
for (int i = 1; i <= N; i++) {
array[i] = sc.nextLong();
}
return array;
} else {
long[] array = new long[N];
for (int i = 0; i < N; i++) {
array[i] = sc.nextLong();
}
return array;
}
}
public double [] nextDoubleArray(int N, boolean oneBased) {
if (oneBased) {
double [] array = new double[N + 1];
for (int i = 1; i <= N; i++) {
array[i] = sc.nextDouble();
}
return array;
} else {
double[] array = new double[N];
for (int i = 0; i < N; i++) {
array[i] = sc.nextDouble();
}
return array;
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
4,
18,
13,
4,
18,
13,
13,
17,
0,
13,
4,
18,
13,
13,
14,
2,
4,
18,
13,
4,
18,
13,
13,
17,
0,
13,
4,
18,
13,
13,
14,
2,
4,
18,
13,
4,
18,
13,
13,
17,
0,
13,
4,
18,
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
],
[
110,
8
],
[
110,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
37,
38
],
[
11,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
45,
46
],
[
11,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
11,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
54,
62
],
[
53,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
11,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
70,
78
],
[
69,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
11,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
86,
94
],
[
85,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
11,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
9,
107
],
[
107,
108
],
[
0,
109
],
[
109,
110
],
[
109,
111
]
]
| [
"import java.math.BigInteger;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n BigInteger a = BigInteger.valueOf(sc.nextLong());\n BigInteger b = BigInteger.valueOf(sc.nextLong());\n BigInteger c = BigInteger.valueOf(sc.nextLong());\n BigInteger d = BigInteger.valueOf(sc.nextLong());\n BigInteger mul = a.multiply(c);\n if (mul.compareTo(a.multiply(d)) < 0)\n mul = a.multiply(d);\n if (mul.compareTo(b.multiply(c)) < 0)\n mul = b.multiply(c);\n if (mul.compareTo(b.multiply(d)) < 0)\n mul = b.multiply(d);\n\n System.out.println(mul);\n }\n}",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n BigInteger a = BigInteger.valueOf(sc.nextLong());\n BigInteger b = BigInteger.valueOf(sc.nextLong());\n BigInteger c = BigInteger.valueOf(sc.nextLong());\n BigInteger d = BigInteger.valueOf(sc.nextLong());\n BigInteger mul = a.multiply(c);\n if (mul.compareTo(a.multiply(d)) < 0)\n mul = a.multiply(d);\n if (mul.compareTo(b.multiply(c)) < 0)\n mul = b.multiply(c);\n if (mul.compareTo(b.multiply(d)) < 0)\n mul = b.multiply(d);\n\n System.out.println(mul);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n BigInteger a = BigInteger.valueOf(sc.nextLong());\n BigInteger b = BigInteger.valueOf(sc.nextLong());\n BigInteger c = BigInteger.valueOf(sc.nextLong());\n BigInteger d = BigInteger.valueOf(sc.nextLong());\n BigInteger mul = a.multiply(c);\n if (mul.compareTo(a.multiply(d)) < 0)\n mul = a.multiply(d);\n if (mul.compareTo(b.multiply(c)) < 0)\n mul = b.multiply(c);\n if (mul.compareTo(b.multiply(d)) < 0)\n mul = b.multiply(d);\n\n System.out.println(mul);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n BigInteger a = BigInteger.valueOf(sc.nextLong());\n BigInteger b = BigInteger.valueOf(sc.nextLong());\n BigInteger c = BigInteger.valueOf(sc.nextLong());\n BigInteger d = BigInteger.valueOf(sc.nextLong());\n BigInteger mul = a.multiply(c);\n if (mul.compareTo(a.multiply(d)) < 0)\n mul = a.multiply(d);\n if (mul.compareTo(b.multiply(c)) < 0)\n mul = b.multiply(c);\n if (mul.compareTo(b.multiply(d)) < 0)\n mul = b.multiply(d);\n\n System.out.println(mul);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"BigInteger a = BigInteger.valueOf(sc.nextLong());",
"a",
"BigInteger.valueOf(sc.nextLong())",
"BigInteger.valueOf",
"BigInteger",
"sc.nextLong()",
"sc.nextLong",
"sc",
"BigInteger b = BigInteger.valueOf(sc.nextLong());",
"b",
"BigInteger.valueOf(sc.nextLong())",
"BigInteger.valueOf",
"BigInteger",
"sc.nextLong()",
"sc.nextLong",
"sc",
"BigInteger c = BigInteger.valueOf(sc.nextLong());",
"c",
"BigInteger.valueOf(sc.nextLong())",
"BigInteger.valueOf",
"BigInteger",
"sc.nextLong()",
"sc.nextLong",
"sc",
"BigInteger d = BigInteger.valueOf(sc.nextLong());",
"d",
"BigInteger.valueOf(sc.nextLong())",
"BigInteger.valueOf",
"BigInteger",
"sc.nextLong()",
"sc.nextLong",
"sc",
"BigInteger mul = a.multiply(c);",
"mul",
"a.multiply(c)",
"a.multiply",
"a",
"c",
"if (mul.compareTo(a.multiply(d)) < 0)\n mul = a.multiply(d);",
"mul.compareTo(a.multiply(d)) < 0",
"mul.compareTo(a.multiply(d))",
"mul.compareTo",
"mul",
"a.multiply(d)",
"a.multiply",
"a",
"d",
"0",
"mul = a.multiply(d)",
"mul",
"a.multiply(d)",
"a.multiply",
"a",
"d",
"if (mul.compareTo(b.multiply(c)) < 0)\n mul = b.multiply(c);",
"mul.compareTo(b.multiply(c)) < 0",
"mul.compareTo(b.multiply(c))",
"mul.compareTo",
"mul",
"b.multiply(c)",
"b.multiply",
"b",
"c",
"0",
"mul = b.multiply(c)",
"mul",
"b.multiply(c)",
"b.multiply",
"b",
"c",
"if (mul.compareTo(b.multiply(d)) < 0)\n mul = b.multiply(d);",
"mul.compareTo(b.multiply(d)) < 0",
"mul.compareTo(b.multiply(d))",
"mul.compareTo",
"mul",
"b.multiply(d)",
"b.multiply",
"b",
"d",
"0",
"mul = b.multiply(d)",
"mul",
"b.multiply(d)",
"b.multiply",
"b",
"d",
"System.out.println(mul)",
"System.out.println",
"System.out",
"System",
"System.out",
"mul",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n BigInteger a = BigInteger.valueOf(sc.nextLong());\n BigInteger b = BigInteger.valueOf(sc.nextLong());\n BigInteger c = BigInteger.valueOf(sc.nextLong());\n BigInteger d = BigInteger.valueOf(sc.nextLong());\n BigInteger mul = a.multiply(c);\n if (mul.compareTo(a.multiply(d)) < 0)\n mul = a.multiply(d);\n if (mul.compareTo(b.multiply(c)) < 0)\n mul = b.multiply(c);\n if (mul.compareTo(b.multiply(d)) < 0)\n mul = b.multiply(d);\n\n System.out.println(mul);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n BigInteger a = BigInteger.valueOf(sc.nextLong());\n BigInteger b = BigInteger.valueOf(sc.nextLong());\n BigInteger c = BigInteger.valueOf(sc.nextLong());\n BigInteger d = BigInteger.valueOf(sc.nextLong());\n BigInteger mul = a.multiply(c);\n if (mul.compareTo(a.multiply(d)) < 0)\n mul = a.multiply(d);\n if (mul.compareTo(b.multiply(c)) < 0)\n mul = b.multiply(c);\n if (mul.compareTo(b.multiply(d)) < 0)\n mul = b.multiply(d);\n\n System.out.println(mul);\n }\n}",
"Main"
]
| import java.math.BigInteger;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
BigInteger a = BigInteger.valueOf(sc.nextLong());
BigInteger b = BigInteger.valueOf(sc.nextLong());
BigInteger c = BigInteger.valueOf(sc.nextLong());
BigInteger d = BigInteger.valueOf(sc.nextLong());
BigInteger mul = a.multiply(c);
if (mul.compareTo(a.multiply(d)) < 0)
mul = a.multiply(d);
if (mul.compareTo(b.multiply(c)) < 0)
mul = b.multiply(c);
if (mul.compareTo(b.multiply(d)) < 0)
mul = b.multiply(d);
System.out.println(mul);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
93,
14
],
[
93,
15
],
[
15,
16
],
[
15,
17
],
[
93,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
20,
22
],
[
93,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
25,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
25,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
25,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
25,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
25,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
25,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
93,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
84,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
]
| [
"//package src.com.jetman.atcoder;\n\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.Scanner;\n\n/**\n * @description:\n * @author: Jetman\n * @create: 2020-08-29 14:39\n **/\npublic class Main {\n\n Scanner sc = new Scanner(System.in);\n\n long MOD = 1000000000 + 7;\n\n\n private void slove() {\n\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n long ans = (long)a*c;\n ans = Math.max(ans,(long)b*c);\n ans = Math.max(ans,(long)a*d);\n ans = Math.max(ans,(long)b*d);\n System.out.println(ans);\n\n\n\n\n\n }\n\n public static void main(String[] args) {\n new Main().slove();\n }\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n Scanner sc = new Scanner(System.in);\n\n long MOD = 1000000000 + 7;\n\n\n private void slove() {\n\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n long ans = (long)a*c;\n ans = Math.max(ans,(long)b*c);\n ans = Math.max(ans,(long)a*d);\n ans = Math.max(ans,(long)b*d);\n System.out.println(ans);\n\n\n\n\n\n }\n\n public static void main(String[] args) {\n new Main().slove();\n }\n}",
"Main",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long MOD = 1000000000 + 7;",
"MOD",
"1000000000 + 7",
"1000000000",
"7",
"private void slove() {\n\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n long ans = (long)a*c;\n ans = Math.max(ans,(long)b*c);\n ans = Math.max(ans,(long)a*d);\n ans = Math.max(ans,(long)b*d);\n System.out.println(ans);\n\n\n\n\n\n }",
"slove",
"{\n\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n long ans = (long)a*c;\n ans = Math.max(ans,(long)b*c);\n ans = Math.max(ans,(long)a*d);\n ans = Math.max(ans,(long)b*d);\n System.out.println(ans);\n\n\n\n\n\n }",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long ans = (long)a*c;",
"ans",
"(long)a*c",
"(long)a",
"c",
"ans = Math.max(ans,(long)b*c)",
"ans",
"Math.max(ans,(long)b*c)",
"Math.max",
"Math",
"ans",
"(long)b*c",
"(long)b",
"c",
"ans = Math.max(ans,(long)a*d)",
"ans",
"Math.max(ans,(long)a*d)",
"Math.max",
"Math",
"ans",
"(long)a*d",
"(long)a",
"d",
"ans = Math.max(ans,(long)b*d)",
"ans",
"Math.max(ans,(long)b*d)",
"Math.max",
"Math",
"ans",
"(long)b*d",
"(long)b",
"d",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"public static void main(String[] args) {\n new Main().slove();\n }",
"main",
"{\n new Main().slove();\n }",
"new Main().slove()",
"new Main().slove",
"new Main()",
"String[] args",
"args",
"public class Main {\n\n Scanner sc = new Scanner(System.in);\n\n long MOD = 1000000000 + 7;\n\n\n private void slove() {\n\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n long ans = (long)a*c;\n ans = Math.max(ans,(long)b*c);\n ans = Math.max(ans,(long)a*d);\n ans = Math.max(ans,(long)b*d);\n System.out.println(ans);\n\n\n\n\n\n }\n\n public static void main(String[] args) {\n new Main().slove();\n }\n}",
"public class Main {\n\n Scanner sc = new Scanner(System.in);\n\n long MOD = 1000000000 + 7;\n\n\n private void slove() {\n\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n long ans = (long)a*c;\n ans = Math.max(ans,(long)b*c);\n ans = Math.max(ans,(long)a*d);\n ans = Math.max(ans,(long)b*d);\n System.out.println(ans);\n\n\n\n\n\n }\n\n public static void main(String[] args) {\n new Main().slove();\n }\n}",
"Main"
]
| //package src.com.jetman.atcoder;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
/**
* @description:
* @author: Jetman
* @create: 2020-08-29 14:39
**/
public class Main {
Scanner sc = new Scanner(System.in);
long MOD = 1000000000 + 7;
private void slove() {
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
long ans = (long)a*c;
ans = Math.max(ans,(long)b*c);
ans = Math.max(ans,(long)a*d);
ans = Math.max(ans,(long)b*d);
System.out.println(ans);
}
public static void main(String[] args) {
new Main().slove();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
13,
20,
0,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
2,
18,
13,
17,
18,
13,
17,
4,
18,
13,
2,
18,
13,
17,
18,
13,
17,
4,
18,
13,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
93,
8
],
[
93,
9
],
[
9,
10
],
[
93,
11
],
[
11,
12
],
[
11,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
13,
20
],
[
20,
21
],
[
20,
22
],
[
13,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
13,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
47,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
57,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
67,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
13,
84
],
[
84,
85
],
[
85,
86
],
[
13,
87
],
[
87,
88
],
[
88,
89
],
[
11,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
]
| [
"import java.io.PrintWriter;\nimport java.util.*;\n\npublic class Main{\n static PrintWriter out;\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n out=new PrintWriter(System.out);\n\n long a[]=new long[4];\n for (int i = 0; i <4 ; i++) {\n a[i]=sc.nextInt();\n }\n out.println(Math.max(a[0]*a[2],Math.max(a[0]*a[3],Math.max(a[1]*a[2],a[1]*a[3]))));\n\n\n sc.close();\n out.close();\n }\n\n\n\n\n}",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n static PrintWriter out;\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n out=new PrintWriter(System.out);\n\n long a[]=new long[4];\n for (int i = 0; i <4 ; i++) {\n a[i]=sc.nextInt();\n }\n out.println(Math.max(a[0]*a[2],Math.max(a[0]*a[3],Math.max(a[1]*a[2],a[1]*a[3]))));\n\n\n sc.close();\n out.close();\n }\n\n\n\n\n}",
"Main",
"static PrintWriter out;",
"out",
"public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n out=new PrintWriter(System.out);\n\n long a[]=new long[4];\n for (int i = 0; i <4 ; i++) {\n a[i]=sc.nextInt();\n }\n out.println(Math.max(a[0]*a[2],Math.max(a[0]*a[3],Math.max(a[1]*a[2],a[1]*a[3]))));\n\n\n sc.close();\n out.close();\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n out=new PrintWriter(System.out);\n\n long a[]=new long[4];\n for (int i = 0; i <4 ; i++) {\n a[i]=sc.nextInt();\n }\n out.println(Math.max(a[0]*a[2],Math.max(a[0]*a[3],Math.max(a[1]*a[2],a[1]*a[3]))));\n\n\n sc.close();\n out.close();\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"out=new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"long a[]=new long[4];",
"a",
"new long[4]",
"4",
"for (int i = 0; i <4 ; i++) {\n a[i]=sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <4",
"i",
"4",
"i++",
"i++",
"i",
"{\n a[i]=sc.nextInt();\n }",
"{\n a[i]=sc.nextInt();\n }",
"a[i]=sc.nextInt()",
"a[i]",
"a",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"out.println(Math.max(a[0]*a[2],Math.max(a[0]*a[3],Math.max(a[1]*a[2],a[1]*a[3]))))",
"out.println",
"out",
"Math.max(a[0]*a[2],Math.max(a[0]*a[3],Math.max(a[1]*a[2],a[1]*a[3])))",
"Math.max",
"Math",
"a[0]*a[2]",
"a[0]",
"a",
"0",
"a[2]",
"a",
"2",
"Math.max(a[0]*a[3],Math.max(a[1]*a[2],a[1]*a[3]))",
"Math.max",
"Math",
"a[0]*a[3]",
"a[0]",
"a",
"0",
"a[3]",
"a",
"3",
"Math.max(a[1]*a[2],a[1]*a[3])",
"Math.max",
"Math",
"a[1]*a[2]",
"a[1]",
"a",
"1",
"a[2]",
"a",
"2",
"a[1]*a[3]",
"a[1]",
"a",
"1",
"a[3]",
"a",
"3",
"sc.close()",
"sc.close",
"sc",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"public class Main{\n static PrintWriter out;\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n out=new PrintWriter(System.out);\n\n long a[]=new long[4];\n for (int i = 0; i <4 ; i++) {\n a[i]=sc.nextInt();\n }\n out.println(Math.max(a[0]*a[2],Math.max(a[0]*a[3],Math.max(a[1]*a[2],a[1]*a[3]))));\n\n\n sc.close();\n out.close();\n }\n\n\n\n\n}",
"public class Main{\n static PrintWriter out;\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n out=new PrintWriter(System.out);\n\n long a[]=new long[4];\n for (int i = 0; i <4 ; i++) {\n a[i]=sc.nextInt();\n }\n out.println(Math.max(a[0]*a[2],Math.max(a[0]*a[3],Math.max(a[1]*a[2],a[1]*a[3]))));\n\n\n sc.close();\n out.close();\n }\n\n\n\n\n}",
"Main"
]
| import java.io.PrintWriter;
import java.util.*;
public class Main{
static PrintWriter out;
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
out=new PrintWriter(System.out);
long a[]=new long[4];
for (int i = 0; i <4 ; i++) {
a[i]=sc.nextInt();
}
out.println(Math.max(a[0]*a[2],Math.max(a[0]*a[3],Math.max(a[1]*a[2],a[1]*a[3]))));
sc.close();
out.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
17,
17,
41,
13,
20,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
18,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
14,
40,
4,
18,
13,
13,
4,
18,
13,
13,
17,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
23,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
4,
18,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
14,
2,
13,
17,
29,
17,
0,
13,
4,
13,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
29,
2,
2,
2,
2,
13,
13,
13,
13,
13,
29,
2,
2,
2,
2,
13,
13,
2,
2,
2,
13,
13,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
13,
41,
13,
20,
42,
2,
2,
13,
17,
17,
30,
4,
18,
13,
17,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
17,
30,
30,
42,
2,
2,
13,
13,
17,
30,
4,
18,
13,
13,
0,
13,
13,
14,
2,
13,
17,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
17,
0,
13,
17,
29,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
9,
41,
13,
13,
41,
13,
2,
13,
13,
4,
18,
13,
13,
14,
2,
13,
13,
30,
9,
4,
18,
13,
2,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
20,
2,
13,
17,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
11,
1,
41,
13,
2,
13,
13,
2,
13,
13,
1,
0,
13,
13,
30,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
4,
18,
13,
13,
29,
13,
12,
13,
30,
14,
2,
13,
17,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
13,
0,
13,
13,
23,
13,
23,
13,
6,
13,
12,
13,
30,
29,
4,
18,
4,
18,
13,
18,
13,
13,
4,
18,
13,
18,
13,
13,
23,
13,
23,
13,
13,
6,
13,
41,
13,
41,
13,
41,
13,
20,
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
],
[
848,
11
],
[
848,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
848,
17
],
[
17,
18
],
[
17,
19
],
[
848,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
22,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
22,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
22,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
22,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
22,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
22,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
22,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
22,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
80,
84
],
[
84,
85
],
[
84,
86
],
[
22,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
20,
93
],
[
93,
94
],
[
848,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
104,
108
],
[
98,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
109,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
113,
118
],
[
95,
119
],
[
119,
120
],
[
95,
121
],
[
121,
122
],
[
848,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
126,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
130,
135
],
[
125,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
138,
141
],
[
137,
142
],
[
136,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
123,
148
],
[
148,
149
],
[
123,
150
],
[
150,
151
],
[
848,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
162,
163
],
[
154,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
166,
168
],
[
166,
169
],
[
169,
170
],
[
169,
171
],
[
154,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
172,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
180,
186
],
[
179,
187
],
[
154,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
200
],
[
195,
201
],
[
190,
202
],
[
189,
203
],
[
152,
204
],
[
204,
205
],
[
152,
206
],
[
206,
207
],
[
848,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
213,
216
],
[
210,
217
],
[
217,
218
],
[
217,
219
],
[
210,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
221,
225
],
[
220,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
227,
230
],
[
226,
231
],
[
231,
232
],
[
231,
233
],
[
210,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
234,
239
],
[
239,
240
],
[
239,
241
],
[
234,
242
],
[
242,
243
],
[
243,
244
],
[
243,
245
],
[
234,
246
],
[
247,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
248,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
255,
258
],
[
254,
259
],
[
259,
260
],
[
259,
261
],
[
210,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
262,
266
],
[
266,
267
],
[
267,
268
],
[
266,
269
],
[
210,
270
],
[
270,
271
],
[
208,
272
],
[
272,
273
],
[
848,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
277,
278
],
[
277,
279
],
[
276,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
280,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
287,
288
],
[
287,
289
],
[
284,
290
],
[
290,
291
],
[
290,
292
],
[
276,
293
],
[
293,
294
],
[
274,
295
],
[
295,
296
],
[
848,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
303,
304
],
[
302,
305
],
[
299,
306
],
[
306,
307
],
[
306,
308
],
[
299,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
309,
314
],
[
314,
315
],
[
314,
316
],
[
309,
317
],
[
317,
318
],
[
318,
319
],
[
309,
320
],
[
321,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
324,
325
],
[
324,
326
],
[
323,
327
],
[
322,
328
],
[
321,
329
],
[
329,
330
],
[
329,
331
],
[
321,
332
],
[
332,
333
],
[
332,
334
],
[
334,
335
],
[
334,
336
],
[
321,
337
],
[
337,
338
],
[
338,
339
],
[
337,
340
],
[
321,
341
],
[
341,
342
],
[
342,
343
],
[
342,
344
],
[
341,
345
],
[
345,
346
],
[
321,
347
],
[
347,
348
],
[
348,
349
],
[
347,
350
],
[
350,
351
],
[
350,
352
],
[
299,
353
],
[
353,
354
],
[
297,
355
],
[
355,
356
],
[
848,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
359,
363
],
[
363,
364
],
[
363,
365
],
[
359,
366
],
[
366,
367
],
[
366,
368
],
[
369,
370
],
[
369,
371
],
[
359,
372
],
[
372,
373
],
[
372,
374
],
[
374,
375
],
[
375,
376
],
[
374,
377
],
[
359,
378
],
[
378,
379
],
[
379,
380
],
[
380,
381
],
[
380,
382
],
[
378,
383
],
[
383,
384
],
[
383,
385
],
[
378,
386
],
[
386,
387
],
[
387,
388
],
[
378,
389
],
[
390,
390
],
[
390,
391
],
[
391,
392
],
[
392,
393
],
[
393,
394
],
[
393,
395
],
[
392,
396
],
[
391,
397
],
[
397,
398
],
[
398,
399
],
[
399,
400
],
[
400,
401
],
[
400,
402
],
[
402,
403
],
[
402,
404
],
[
398,
405
],
[
405,
406
],
[
405,
407
],
[
398,
408
],
[
408,
409
],
[
409,
410
],
[
409,
411
],
[
398,
412
],
[
413,
413
],
[
413,
414
],
[
414,
415
],
[
415,
416
],
[
415,
417
],
[
414,
418
],
[
359,
419
],
[
419,
420
],
[
420,
421
],
[
421,
422
],
[
421,
423
],
[
419,
424
],
[
424,
425
],
[
424,
426
],
[
419,
427
],
[
427,
428
],
[
428,
429
],
[
419,
430
],
[
431,
431
],
[
431,
432
],
[
432,
433
],
[
433,
434
],
[
434,
435
],
[
434,
436
],
[
433,
437
],
[
432,
438
],
[
438,
439
],
[
439,
440
],
[
438,
441
],
[
359,
442
],
[
442,
443
],
[
848,
444
],
[
444,
445
],
[
444,
446
],
[
446,
447
],
[
447,
448
],
[
448,
449
],
[
448,
450
],
[
447,
451
],
[
451,
452
],
[
446,
453
],
[
453,
454
],
[
454,
455
],
[
454,
456
],
[
454,
457
],
[
457,
458
],
[
457,
459
],
[
444,
460
],
[
460,
461
],
[
444,
462
],
[
462,
463
],
[
848,
464
],
[
464,
465
],
[
464,
466
],
[
466,
467
],
[
464,
468
],
[
468,
469
],
[
464,
470
],
[
470,
471
],
[
470,
472
],
[
472,
473
],
[
473,
474
],
[
473,
475
],
[
472,
476
],
[
476,
477
],
[
476,
478
],
[
470,
479
],
[
479,
480
],
[
470,
481
],
[
481,
482
],
[
848,
483
],
[
483,
484
],
[
483,
485
],
[
485,
486
],
[
485,
487
],
[
487,
488
],
[
488,
489
],
[
489,
490
],
[
490,
491
],
[
491,
492
],
[
492,
493
],
[
491,
494
],
[
494,
495
],
[
494,
496
],
[
489,
497
],
[
497,
498
],
[
498,
499
],
[
497,
500
],
[
500,
501
],
[
500,
502
],
[
485,
503
],
[
503,
504
],
[
485,
505
],
[
505,
506
],
[
483,
507
],
[
848,
508
],
[
508,
509
],
[
508,
510
],
[
510,
511
],
[
508,
512
],
[
512,
513
],
[
508,
514
],
[
514,
515
],
[
514,
516
],
[
848,
517
],
[
517,
518
],
[
517,
519
],
[
519,
520
],
[
519,
521
],
[
521,
522
],
[
521,
523
],
[
517,
524
],
[
524,
525
],
[
517,
526
],
[
526,
527
],
[
517,
528
],
[
528,
529
],
[
517,
530
],
[
530,
531
],
[
517,
532
],
[
532,
533
],
[
532,
534
],
[
534,
535
],
[
535,
536
],
[
535,
537
],
[
534,
538
],
[
538,
539
],
[
538,
540
],
[
534,
542
],
[
542,
543
],
[
542,
544
],
[
544,
545
],
[
544,
546
],
[
517,
547
],
[
547,
548
],
[
547,
549
],
[
549,
550
],
[
550,
551
],
[
550,
552
],
[
549,
553
],
[
553,
554
],
[
553,
555
],
[
549,
557
],
[
557,
558
],
[
557,
559
],
[
559,
560
],
[
559,
561
],
[
547,
562
],
[
562,
563
],
[
517,
564
],
[
564,
565
],
[
564,
566
],
[
566,
567
],
[
567,
568
],
[
567,
569
],
[
566,
571
],
[
571,
572
],
[
571,
573
],
[
566,
574
],
[
574,
575
],
[
566,
576
],
[
576,
577
],
[
577,
578
],
[
578,
579
],
[
578,
580
],
[
580,
581
],
[
577,
582
],
[
582,
583
],
[
576,
584
],
[
584,
585
],
[
585,
586
],
[
586,
587
],
[
586,
588
],
[
585,
589
],
[
584,
590
],
[
590,
591
],
[
591,
592
],
[
591,
593
],
[
593,
594
],
[
590,
595
],
[
566,
596
],
[
596,
597
],
[
517,
598
],
[
598,
599
],
[
598,
600
],
[
600,
601
],
[
601,
602
],
[
601,
603
],
[
600,
604
],
[
604,
605
],
[
604,
606
],
[
606,
607
],
[
600,
608
],
[
608,
609
],
[
609,
610
],
[
609,
611
],
[
608,
612
],
[
612,
613
],
[
612,
614
],
[
614,
615
],
[
600,
616
],
[
616,
617
],
[
616,
618
],
[
618,
619
],
[
618,
620
],
[
600,
621
],
[
621,
622
],
[
621,
623
],
[
623,
624
],
[
623,
625
],
[
625,
626
],
[
600,
627
],
[
627,
628
],
[
628,
629
],
[
629,
630
],
[
630,
631
],
[
630,
632
],
[
632,
633
],
[
629,
634
],
[
628,
635
],
[
635,
636
],
[
635,
637
],
[
627,
638
],
[
638,
639
],
[
639,
640
],
[
639,
641
],
[
641,
642
],
[
642,
643
],
[
643,
644
],
[
643,
645
],
[
642,
646
],
[
641,
647
],
[
600,
648
],
[
648,
649
],
[
648,
650
],
[
650,
651
],
[
651,
652
],
[
600,
653
],
[
653,
654
],
[
517,
655
],
[
655,
656
],
[
655,
657
],
[
657,
658
],
[
658,
659
],
[
658,
660
],
[
657,
661
],
[
661,
662
],
[
661,
663
],
[
663,
664
],
[
657,
665
],
[
665,
666
],
[
666,
667
],
[
666,
668
],
[
665,
669
],
[
669,
670
],
[
669,
671
],
[
671,
672
],
[
657,
673
],
[
673,
674
],
[
673,
675
],
[
675,
676
],
[
675,
677
],
[
657,
678
],
[
678,
679
],
[
678,
680
],
[
680,
681
],
[
680,
682
],
[
682,
683
],
[
657,
684
],
[
684,
685
],
[
685,
686
],
[
686,
687
],
[
687,
688
],
[
687,
689
],
[
689,
690
],
[
686,
691
],
[
685,
692
],
[
692,
693
],
[
692,
694
],
[
684,
695
],
[
695,
696
],
[
696,
697
],
[
696,
698
],
[
698,
699
],
[
699,
700
],
[
700,
701
],
[
700,
702
],
[
699,
703
],
[
698,
704
],
[
657,
705
],
[
705,
706
],
[
705,
707
],
[
707,
708
],
[
708,
709
],
[
657,
710
],
[
710,
711
],
[
517,
712
],
[
712,
713
],
[
712,
714
],
[
714,
715
],
[
715,
716
],
[
715,
717
],
[
714,
718
],
[
718,
719
],
[
718,
720
],
[
714,
721
],
[
721,
722
],
[
721,
723
],
[
723,
724
],
[
714,
725
],
[
725,
726
],
[
726,
727
],
[
726,
728
],
[
725,
729
],
[
729,
730
],
[
729,
731
],
[
731,
732
],
[
714,
733
],
[
733,
734
],
[
733,
735
],
[
735,
736
],
[
735,
737
],
[
714,
738
],
[
738,
739
],
[
738,
740
],
[
740,
741
],
[
740,
742
],
[
742,
743
],
[
714,
744
],
[
744,
745
],
[
745,
746
],
[
746,
747
],
[
747,
748
],
[
747,
749
],
[
749,
750
],
[
746,
751
],
[
745,
752
],
[
752,
753
],
[
752,
754
],
[
744,
755
],
[
755,
756
],
[
756,
757
],
[
756,
758
],
[
758,
759
],
[
759,
760
],
[
760,
761
],
[
760,
762
],
[
759,
763
],
[
758,
764
],
[
714,
765
],
[
765,
766
],
[
766,
767
],
[
766,
768
],
[
765,
769
],
[
769,
770
],
[
770,
771
],
[
771,
772
],
[
772,
773
],
[
773,
774
],
[
773,
775
],
[
775,
776
],
[
772,
777
],
[
771,
778
],
[
778,
779
],
[
778,
780
],
[
770,
781
],
[
781,
782
],
[
782,
783
],
[
782,
784
],
[
784,
785
],
[
785,
786
],
[
785,
787
],
[
784,
788
],
[
788,
789
],
[
788,
790
],
[
714,
791
],
[
791,
792
],
[
791,
793
],
[
793,
794
],
[
794,
795
],
[
714,
796
],
[
796,
797
],
[
517,
798
],
[
798,
799
],
[
798,
800
],
[
800,
801
],
[
801,
802
],
[
801,
803
],
[
803,
804
],
[
804,
805
],
[
803,
806
],
[
803,
807
],
[
807,
808
],
[
807,
809
],
[
803,
810
],
[
800,
811
],
[
811,
812
],
[
812,
813
],
[
812,
814
],
[
814,
815
],
[
811,
816
],
[
816,
817
],
[
817,
818
],
[
817,
819
],
[
816,
820
],
[
820,
821
],
[
517,
822
],
[
822,
823
],
[
822,
824
],
[
824,
825
],
[
825,
826
],
[
826,
827
],
[
826,
828
],
[
825,
829
],
[
829,
830
],
[
824,
831
],
[
831,
832
],
[
832,
833
],
[
832,
834
],
[
834,
835
],
[
517,
836
],
[
836,
837
],
[
836,
838
],
[
838,
839
],
[
839,
840
],
[
840,
841
],
[
840,
842
],
[
839,
843
],
[
838,
844
],
[
844,
845
],
[
845,
846
],
[
0,
847
],
[
847,
848
],
[
847,
849
]
]
| [
"import java.util.*;\nimport java.io.*;\nimport java.math.*;\npublic class Main{\n\tstatic long mod = (long)(1e9+7);\n\tpublic static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));\n\tpublic static void main(String[] args)throws IOException {\n\t\tScanner sc =new Scanner(System.in);\n\t\t//FastReader sc = new FastReader();\n\t\t\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tlong max = Long.MIN_VALUE;\n\t\tmax = Math.max(max,a*c);\n\t\tmax = Math.max(max,a*d);\n\t\tmax = Math.max(max,b*c);\n\t\tmax = Math.max(max,b*d);\n\t\tSystem.out.println(max);\n\t}\n\t\n\tpublic static void add(HashMap<Integer,Integer> hm, int val){\n\t\tif(!hm.containsKey(val))\n\t\t\thm.put(val,1);\n\t\telse hm.put(val, hm.get(val)+1);\n\t}\n\t\n\tpublic static void remove(HashMap<Integer,Integer> hm, int val){\n\t\thm.put(val, hm.get(val)-1);\n\t\tif(hm.get(val)==0){\n\t\t\thm.remove(val);\n\t\t}\n\t}\n\t\t\t\n\t\t\t\n\tpublic static long power(long a, long b){\n\t\t\n\t\tlong temp = 0;\n\t\tif(b==0)\n\t\t\treturn 1;\n\t\t\n\t\ttemp = power(a, b/2);\n\t\tif(b%2==0)\n\t\t\treturn (temp%mod*temp%mod)%mod;\n\t\treturn (a%mod*(temp%mod*temp%mod)%mod)%mod;\n\t}\n\t\n\tpublic static ArrayList<Integer> primefactor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\twhile(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}\n\t\tfor(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}\n\t\tif(n>2)\n\t\t\tal.add(n);\n\t\treturn al;\n\t}\n\t\n\tpublic static long sum(long val){\n\t\tlong fg =0 ;\n\t\twhile(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}\n\t\treturn fg;\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Long> factor(long n){\n\t\tlong sqrt = (long)Math.sqrt(n);\n\t\tArrayList<Long> al = new ArrayList<>();\n\t\tfor(long i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tlong first = i;\n\t\t\tlong second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}\n\t\treturn al;\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Integer> comp(){\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\t\tint n = (int)2e5;\n\t\t\tboolean arr[] = new boolean[n+1];\n\t\t\tint sqrt = (int)Math.sqrt(n);\n\t\t\tfor(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}\n\t\t\t\n\t\treturn al;\n\t}\n\t\n\tpublic static class pair{\n\t\tlong a;\n\t\tint b;\n\t\tpair(long x, int y){\n\t\t\ta=x;\n\t\t\tb=y;\n\t\t}\n\t}\n\t\n\tpublic static class comp implements Comparator<pair>{\n\t\tpublic int compare(pair o1, pair o2){\n\t\t\treturn Long.valueOf(o1.a).compareTo(Long.valueOf(o2.a));\n\t\t}\n\t}\n\t\n\t\n\t\n\tstatic class Node{\n\t\tint node;\n\t\tint d;\n\t\tArrayList<Integer> al = new ArrayList<>();\t\n\t}\n\t\n\n\tstatic int gcd(int a, int b) \n { \n if (b == 0) \n return a; \n return gcd(b, a % b); \n }\n\t\n\t\t\n\tstatic class FastReader \n\t{ \n\t\tfinal private int BUFFER_SIZE = 1 << 16; \n\t\tprivate DataInputStream din; \n\t\tprivate byte[] buffer; \n\t\tprivate int bufferPointer, bytesRead; \n \n\t\tpublic FastReader() \n\t\t{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic FastReader(String file_name) throws IOException \n\t\t{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic String readLine() throws IOException \n\t\t{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t} \n \n\t\tpublic int nextInt() throws IOException \n\t\t{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic long nextLong() throws IOException \n\t\t{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic double nextDouble() throws IOException \n\t\t{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n\t\t\n\t\t\n \n\t\tprivate void fillBuffer() throws IOException \n\t\t{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t} \n \n\t\tprivate byte read() throws IOException \n\t\t{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t} \n \n\t\tpublic void close() throws IOException \n\t\t{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t} \n\t} \n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main{\n\tstatic long mod = (long)(1e9+7);\n\tpublic static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));\n\tpublic static void main(String[] args)throws IOException {\n\t\tScanner sc =new Scanner(System.in);\n\t\t//FastReader sc = new FastReader();\n\t\t\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tlong max = Long.MIN_VALUE;\n\t\tmax = Math.max(max,a*c);\n\t\tmax = Math.max(max,a*d);\n\t\tmax = Math.max(max,b*c);\n\t\tmax = Math.max(max,b*d);\n\t\tSystem.out.println(max);\n\t}\n\t\n\tpublic static void add(HashMap<Integer,Integer> hm, int val){\n\t\tif(!hm.containsKey(val))\n\t\t\thm.put(val,1);\n\t\telse hm.put(val, hm.get(val)+1);\n\t}\n\t\n\tpublic static void remove(HashMap<Integer,Integer> hm, int val){\n\t\thm.put(val, hm.get(val)-1);\n\t\tif(hm.get(val)==0){\n\t\t\thm.remove(val);\n\t\t}\n\t}\n\t\t\t\n\t\t\t\n\tpublic static long power(long a, long b){\n\t\t\n\t\tlong temp = 0;\n\t\tif(b==0)\n\t\t\treturn 1;\n\t\t\n\t\ttemp = power(a, b/2);\n\t\tif(b%2==0)\n\t\t\treturn (temp%mod*temp%mod)%mod;\n\t\treturn (a%mod*(temp%mod*temp%mod)%mod)%mod;\n\t}\n\t\n\tpublic static ArrayList<Integer> primefactor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\twhile(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}\n\t\tfor(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}\n\t\tif(n>2)\n\t\t\tal.add(n);\n\t\treturn al;\n\t}\n\t\n\tpublic static long sum(long val){\n\t\tlong fg =0 ;\n\t\twhile(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}\n\t\treturn fg;\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Long> factor(long n){\n\t\tlong sqrt = (long)Math.sqrt(n);\n\t\tArrayList<Long> al = new ArrayList<>();\n\t\tfor(long i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tlong first = i;\n\t\t\tlong second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}\n\t\treturn al;\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Integer> comp(){\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\t\tint n = (int)2e5;\n\t\t\tboolean arr[] = new boolean[n+1];\n\t\t\tint sqrt = (int)Math.sqrt(n);\n\t\t\tfor(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}\n\t\t\t\n\t\treturn al;\n\t}\n\t\n\tpublic static class pair{\n\t\tlong a;\n\t\tint b;\n\t\tpair(long x, int y){\n\t\t\ta=x;\n\t\t\tb=y;\n\t\t}\n\t}\n\t\n\tpublic static class comp implements Comparator<pair>{\n\t\tpublic int compare(pair o1, pair o2){\n\t\t\treturn Long.valueOf(o1.a).compareTo(Long.valueOf(o2.a));\n\t\t}\n\t}\n\t\n\t\n\t\n\tstatic class Node{\n\t\tint node;\n\t\tint d;\n\t\tArrayList<Integer> al = new ArrayList<>();\t\n\t}\n\t\n\n\tstatic int gcd(int a, int b) \n { \n if (b == 0) \n return a; \n return gcd(b, a % b); \n }\n\t\n\t\t\n\tstatic class FastReader \n\t{ \n\t\tfinal private int BUFFER_SIZE = 1 << 16; \n\t\tprivate DataInputStream din; \n\t\tprivate byte[] buffer; \n\t\tprivate int bufferPointer, bytesRead; \n \n\t\tpublic FastReader() \n\t\t{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic FastReader(String file_name) throws IOException \n\t\t{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic String readLine() throws IOException \n\t\t{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t} \n \n\t\tpublic int nextInt() throws IOException \n\t\t{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic long nextLong() throws IOException \n\t\t{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic double nextDouble() throws IOException \n\t\t{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n\t\t\n\t\t\n \n\t\tprivate void fillBuffer() throws IOException \n\t\t{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t} \n \n\t\tprivate byte read() throws IOException \n\t\t{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t} \n \n\t\tpublic void close() throws IOException \n\t\t{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t} \n\t} \n}",
"Main",
"static long mod = (long)(1e9+7);",
"mod",
"(long)(1e9+7)",
"1e9",
"7",
"public static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));",
"out",
"new PrintWriter (new BufferedOutputStream(System.out))",
"public static void main(String[] args)throws IOException {\n\t\tScanner sc =new Scanner(System.in);\n\t\t//FastReader sc = new FastReader();\n\t\t\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tlong max = Long.MIN_VALUE;\n\t\tmax = Math.max(max,a*c);\n\t\tmax = Math.max(max,a*d);\n\t\tmax = Math.max(max,b*c);\n\t\tmax = Math.max(max,b*d);\n\t\tSystem.out.println(max);\n\t}",
"main",
"{\n\t\tScanner sc =new Scanner(System.in);\n\t\t//FastReader sc = new FastReader();\n\t\t\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tlong max = Long.MIN_VALUE;\n\t\tmax = Math.max(max,a*c);\n\t\tmax = Math.max(max,a*d);\n\t\tmax = Math.max(max,b*c);\n\t\tmax = Math.max(max,b*d);\n\t\tSystem.out.println(max);\n\t}",
"Scanner sc =new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long max = Long.MIN_VALUE;",
"max",
"Long.MIN_VALUE",
"Long",
"Long.MIN_VALUE",
"max = Math.max(max,a*c)",
"max",
"Math.max(max,a*c)",
"Math.max",
"Math",
"max",
"a*c",
"a",
"c",
"max = Math.max(max,a*d)",
"max",
"Math.max(max,a*d)",
"Math.max",
"Math",
"max",
"a*d",
"a",
"d",
"max = Math.max(max,b*c)",
"max",
"Math.max(max,b*c)",
"Math.max",
"Math",
"max",
"b*c",
"b",
"c",
"max = Math.max(max,b*d)",
"max",
"Math.max(max,b*d)",
"Math.max",
"Math",
"max",
"b*d",
"b",
"d",
"System.out.println(max)",
"System.out.println",
"System.out",
"System",
"System.out",
"max",
"String[] args",
"args",
"public static void add(HashMap<Integer,Integer> hm, int val){\n\t\tif(!hm.containsKey(val))\n\t\t\thm.put(val,1);\n\t\telse hm.put(val, hm.get(val)+1);\n\t}",
"add",
"{\n\t\tif(!hm.containsKey(val))\n\t\t\thm.put(val,1);\n\t\telse hm.put(val, hm.get(val)+1);\n\t}",
"if(!hm.containsKey(val))\n\t\t\thm.put(val,1);\n\t\telse hm.put(val, hm.get(val)+1);",
"!hm.containsKey(val)",
"hm.containsKey(val)",
"hm.containsKey",
"hm",
"val",
"hm.put(val,1)",
"hm.put",
"hm",
"val",
"1",
"hm.put(val, hm.get(val)+1)",
"hm.put",
"hm",
"val",
"hm.get(val)+1",
"hm.get(val)",
"hm.get",
"hm",
"val",
"1",
"HashMap<Integer,Integer> hm",
"hm",
"int val",
"val",
"public static void remove(HashMap<Integer,Integer> hm, int val){\n\t\thm.put(val, hm.get(val)-1);\n\t\tif(hm.get(val)==0){\n\t\t\thm.remove(val);\n\t\t}\n\t}",
"remove",
"{\n\t\thm.put(val, hm.get(val)-1);\n\t\tif(hm.get(val)==0){\n\t\t\thm.remove(val);\n\t\t}\n\t}",
"hm.put(val, hm.get(val)-1)",
"hm.put",
"hm",
"val",
"hm.get(val)-1",
"hm.get(val)",
"hm.get",
"hm",
"val",
"1",
"if(hm.get(val)==0){\n\t\t\thm.remove(val);\n\t\t}",
"hm.get(val)==0",
"hm.get(val)",
"hm.get",
"hm",
"val",
"0",
"{\n\t\t\thm.remove(val);\n\t\t}",
"hm.remove(val)",
"hm.remove",
"hm",
"val",
"HashMap<Integer,Integer> hm",
"hm",
"int val",
"val",
"public static long power(long a, long b){\n\t\t\n\t\tlong temp = 0;\n\t\tif(b==0)\n\t\t\treturn 1;\n\t\t\n\t\ttemp = power(a, b/2);\n\t\tif(b%2==0)\n\t\t\treturn (temp%mod*temp%mod)%mod;\n\t\treturn (a%mod*(temp%mod*temp%mod)%mod)%mod;\n\t}",
"power",
"{\n\t\t\n\t\tlong temp = 0;\n\t\tif(b==0)\n\t\t\treturn 1;\n\t\t\n\t\ttemp = power(a, b/2);\n\t\tif(b%2==0)\n\t\t\treturn (temp%mod*temp%mod)%mod;\n\t\treturn (a%mod*(temp%mod*temp%mod)%mod)%mod;\n\t}",
"long temp = 0;",
"temp",
"0",
"if(b==0)\n\t\t\treturn 1;",
"b==0",
"b",
"0",
"return 1;",
"1",
"temp = power(a, b/2)",
"temp",
"power(a, b/2)",
"power",
"a",
"b/2",
"b",
"2",
"if(b%2==0)\n\t\t\treturn (temp%mod*temp%mod)%mod;",
"b%2==0",
"b%2",
"b",
"2",
"0",
"return (temp%mod*temp%mod)%mod;",
"(temp%mod*temp%mod)%mod",
"(temp%mod*temp%mod)",
"temp%mod*temp",
"temp%mod",
"temp",
"mod",
"temp",
"mod",
"mod",
"return (a%mod*(temp%mod*temp%mod)%mod)%mod;",
"(a%mod*(temp%mod*temp%mod)%mod)%mod",
"(a%mod*(temp%mod*temp%mod)%mod)",
"a%mod*(temp%mod*temp%mod)",
"a%mod",
"a",
"mod",
"(temp%mod*temp%mod)",
"temp%mod*temp",
"temp%mod",
"temp",
"mod",
"temp",
"mod",
"mod",
"mod",
"long a",
"a",
"long b",
"b",
"public static ArrayList<Integer> primefactor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\twhile(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}\n\t\tfor(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}\n\t\tif(n>2)\n\t\t\tal.add(n);\n\t\treturn al;\n\t}",
"primefactor",
"{\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\twhile(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}\n\t\tfor(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}\n\t\tif(n>2)\n\t\t\tal.add(n);\n\t\treturn al;\n\t}",
"int sqrt = (int)Math.sqrt(n);",
"sqrt",
"(int)Math.sqrt(n)",
"Math.sqrt",
"Math",
"n",
"ArrayList<Integer> al = new ArrayList<>();",
"al",
"new ArrayList<>()",
"while(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}",
"n%2==0",
"n%2",
"n",
"2",
"0",
"{\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}",
"al.add(2)",
"al.add",
"al",
"2",
"n/=2",
"n",
"2",
"for(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}",
"int i=3;",
"int i=3;",
"i",
"3",
"i<=sqrt",
"i",
"sqrt",
"i+=2",
"i+=2",
"i",
"2",
"{\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}",
"{\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}",
"while(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}",
"n%i==0",
"n%i",
"n",
"i",
"0",
"{\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}",
"al.add(i)",
"al.add",
"al",
"i",
"n/=i",
"n",
"i",
"if(n>2)\n\t\t\tal.add(n);",
"n>2",
"n",
"2",
"al.add(n)",
"al.add",
"al",
"n",
"return al;",
"al",
"int n",
"n",
"public static long sum(long val){\n\t\tlong fg =0 ;\n\t\twhile(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}\n\t\treturn fg;\n\t}",
"sum",
"{\n\t\tlong fg =0 ;\n\t\twhile(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}\n\t\treturn fg;\n\t}",
"long fg =0 ;",
"fg",
"0",
"while(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}",
"val!=0",
"val",
"0",
"{\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}",
"fg+=val%10",
"fg",
"val%10",
"val",
"10",
"val/=10",
"val",
"10",
"return fg;",
"fg",
"long val",
"val",
"public static ArrayList<Long> factor(long n){\n\t\tlong sqrt = (long)Math.sqrt(n);\n\t\tArrayList<Long> al = new ArrayList<>();\n\t\tfor(long i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tlong first = i;\n\t\t\tlong second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}\n\t\treturn al;\n\t}",
"factor",
"{\n\t\tlong sqrt = (long)Math.sqrt(n);\n\t\tArrayList<Long> al = new ArrayList<>();\n\t\tfor(long i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tlong first = i;\n\t\t\tlong second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}\n\t\treturn al;\n\t}",
"long sqrt = (long)Math.sqrt(n);",
"sqrt",
"(long)Math.sqrt(n)",
"Math.sqrt",
"Math",
"n",
"ArrayList<Long> al = new ArrayList<>();",
"al",
"new ArrayList<>()",
"for(long i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tlong first = i;\n\t\t\tlong second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}",
"long i=1;",
"long i=1;",
"i",
"1",
"i<=sqrt",
"i",
"sqrt",
"i++",
"i++",
"i",
"{\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tlong first = i;\n\t\t\tlong second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}",
"{\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tlong first = i;\n\t\t\tlong second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}",
"if(n%i!=0)\n\t\t\t\tcontinue;",
"n%i!=0",
"n%i",
"n",
"i",
"0",
"continue;",
"long first = i;",
"first",
"i",
"long second = n/i;",
"second",
"n/i",
"n",
"i",
"al.add(i)",
"al.add",
"al",
"i",
"if(first==second){\n\t\t\t\tcontinue;\n\t\t\t}",
"first==second",
"first",
"second",
"{\n\t\t\t\tcontinue;\n\t\t\t}",
"continue;",
"al.add(n/i)",
"al.add",
"al",
"n/i",
"n",
"i",
"return al;",
"al",
"long n",
"n",
"public static ArrayList<Integer> comp(){\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\t\tint n = (int)2e5;\n\t\t\tboolean arr[] = new boolean[n+1];\n\t\t\tint sqrt = (int)Math.sqrt(n);\n\t\t\tfor(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}\n\t\t\t\n\t\treturn al;\n\t}",
"comp",
"{\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\t\tint n = (int)2e5;\n\t\t\tboolean arr[] = new boolean[n+1];\n\t\t\tint sqrt = (int)Math.sqrt(n);\n\t\t\tfor(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}\n\t\t\t\n\t\treturn al;\n\t}",
"ArrayList<Integer> al = new ArrayList<>();",
"al",
"new ArrayList<>()",
"int n = (int)2e5;",
"n",
"(int)2e5",
"boolean arr[] = new boolean[n+1];",
"arr",
"new boolean[n+1]",
"n+1",
"n",
"1",
"int sqrt = (int)Math.sqrt(n);",
"sqrt",
"(int)Math.sqrt(n)",
"Math.sqrt",
"Math",
"n",
"for(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int i=2;",
"int i=2;",
"i",
"2",
"i<=sqrt",
"i",
"sqrt",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"if(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}",
"arr[i]==false",
"arr[i]",
"arr",
"i",
"false",
"{\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}",
"for(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}",
"int j=i*i;",
"int j=i*i;",
"j",
"i*i",
"i",
"i",
"j<=n",
"j",
"n",
"j+=i",
"j+=i",
"j",
"i",
"{\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}",
"arr[j]=true",
"arr[j]",
"arr",
"j",
"true",
"for(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}",
"int i=2;",
"int i=2;",
"i",
"2",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}",
"{\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}",
"if(arr[i]==false)\n\t\t\t\t\tal.add(i);",
"arr[i]==false",
"arr[i]",
"arr",
"i",
"false",
"al.add(i)",
"al.add",
"al",
"i",
"return al;",
"al",
"static int gcd(int a, int b) \n { \n if (b == 0) \n return a; \n return gcd(b, a % b); \n }",
"gcd",
"{ \n if (b == 0) \n return a; \n return gcd(b, a % b); \n }",
"if (b == 0) \n return a;",
"b == 0",
"b",
"0",
"return a;",
"a",
"return gcd(b, a % b);",
"gcd(b, a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"public static class pair{\n\t\tlong a;\n\t\tint b;\n\t\tpair(long x, int y){\n\t\t\ta=x;\n\t\t\tb=y;\n\t\t}\n\t}",
"pair",
"long a;",
"a",
"int b;",
"b",
"pair(long x, int y){\n\t\t\ta=x;\n\t\t\tb=y;\n\t\t}",
"pair",
"{\n\t\t\ta=x;\n\t\t\tb=y;\n\t\t}",
"a=x",
"a",
"x",
"b=y",
"b",
"y",
"long x",
"x",
"int y",
"y",
"public static class comp implements Comparator<pair>{\n\t\tpublic int compare(pair o1, pair o2){\n\t\t\treturn Long.valueOf(o1.a).compareTo(Long.valueOf(o2.a));\n\t\t}\n\t}",
"comp",
"public int compare(pair o1, pair o2){\n\t\t\treturn Long.valueOf(o1.a).compareTo(Long.valueOf(o2.a));\n\t\t}",
"compare",
"{\n\t\t\treturn Long.valueOf(o1.a).compareTo(Long.valueOf(o2.a));\n\t\t}",
"return Long.valueOf(o1.a).compareTo(Long.valueOf(o2.a));",
"Long.valueOf(o1.a).compareTo(Long.valueOf(o2.a))",
"Long.valueOf(o1.a).compareTo",
"Long.valueOf(o1.a)",
"Long.valueOf",
"Long",
"o1.a",
"o1",
"o1.a",
"Long.valueOf(o2.a)",
"Long.valueOf",
"Long",
"o2.a",
"o2",
"o2.a",
"pair o1",
"o1",
"pair o2",
"o2",
"Comparator",
"static class Node{\n\t\tint node;\n\t\tint d;\n\t\tArrayList<Integer> al = new ArrayList<>();\t\n\t}",
"Node",
"int node;",
"node",
"int d;",
"d",
"ArrayList<Integer> al = new ArrayList<>();",
"al",
"new ArrayList<>()",
"static class FastReader \n\t{ \n\t\tfinal private int BUFFER_SIZE = 1 << 16; \n\t\tprivate DataInputStream din; \n\t\tprivate byte[] buffer; \n\t\tprivate int bufferPointer, bytesRead; \n \n\t\tpublic FastReader() \n\t\t{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic FastReader(String file_name) throws IOException \n\t\t{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic String readLine() throws IOException \n\t\t{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t} \n \n\t\tpublic int nextInt() throws IOException \n\t\t{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic long nextLong() throws IOException \n\t\t{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic double nextDouble() throws IOException \n\t\t{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n\t\t\n\t\t\n \n\t\tprivate void fillBuffer() throws IOException \n\t\t{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t} \n \n\t\tprivate byte read() throws IOException \n\t\t{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t} \n \n\t\tpublic void close() throws IOException \n\t\t{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t} \n\t}",
"FastReader",
"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 FastReader() \n\t\t{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t}",
"FastReader",
"{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t}",
"din = new DataInputStream(System.in)",
"din",
"new DataInputStream(System.in)",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"public FastReader(String file_name) throws IOException \n\t\t{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t}",
"FastReader",
"{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t}",
"din = new DataInputStream(new FileInputStream(file_name))",
"din",
"new DataInputStream(new FileInputStream(file_name))",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"String file_name",
"file_name",
"public String readLine() throws IOException \n\t\t{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t}",
"readLine",
"{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t}",
"byte[] buf = new byte[64];",
"buf",
"new byte[64]",
"64",
"int cnt = 0",
"cnt",
"0",
"c;",
"c",
"while ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t}",
"(c = read()) != -1",
"(c = read())",
"c",
"read()",
"read",
"-1",
"1",
"{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t}",
"if (c == '\\n') \n\t\t\t\t\tbreak;",
"c == '\\n'",
"c",
"'\\n'",
"break;",
"buf[cnt++] = (byte) c",
"buf[cnt++]",
"buf",
"cnt++",
"cnt",
"(byte) c",
"return new String(buf, 0, cnt);",
"new String(buf, 0, cnt)",
"public int nextInt() throws IOException \n\t\t{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t}",
"nextInt",
"{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t}",
"int ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n\t\t\t\tc = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n\t\t\t\tc = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t}",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg) \n\t\t\t\treturn -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public long nextLong() throws IOException \n\t\t{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t}",
"nextLong",
"{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t}",
"long ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n\t\t\t\tc = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n\t\t\t\tc = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t}",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg) \n\t\t\t\treturn -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public double nextDouble() throws IOException \n\t\t{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t}",
"nextDouble",
"{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t}",
"double ret = 0",
"ret",
"0",
"div = 1;",
"div",
"1",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n\t\t\t\tc = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n\t\t\t\tc = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t}",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t}",
"c == '.'",
"c",
"'.'",
"{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t}",
"while ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t}",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t}",
"ret += (c - '0') / (div *= 10)",
"ret",
"(c - '0') / (div *= 10)",
"(c - '0')",
"c",
"'0'",
"(div *= 10)",
"div",
"10",
"if (neg) \n\t\t\t\treturn -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"private void fillBuffer() throws IOException \n\t\t{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t}",
"fillBuffer",
"{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t}",
"bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"bytesRead",
"din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"din.read",
"din",
"buffer",
"bufferPointer = 0",
"bufferPointer",
"0",
"BUFFER_SIZE",
"if (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1;",
"bytesRead == -1",
"bytesRead",
"-1",
"1",
"buffer[0] = -1",
"buffer[0]",
"buffer",
"0",
"-1",
"1",
"private byte read() throws IOException \n\t\t{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t}",
"read",
"{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t}",
"if (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer();",
"bufferPointer == bytesRead",
"bufferPointer",
"bytesRead",
"fillBuffer()",
"fillBuffer",
"return buffer[bufferPointer++];",
"buffer[bufferPointer++]",
"buffer",
"bufferPointer++",
"bufferPointer",
"public void close() throws IOException \n\t\t{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t}",
"close",
"{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t}",
"if (din == null) \n\t\t\t\treturn;",
"din == null",
"din",
"null",
"return;",
"din.close()",
"din.close",
"din",
"public class Main{\n\tstatic long mod = (long)(1e9+7);\n\tpublic static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));\n\tpublic static void main(String[] args)throws IOException {\n\t\tScanner sc =new Scanner(System.in);\n\t\t//FastReader sc = new FastReader();\n\t\t\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tlong max = Long.MIN_VALUE;\n\t\tmax = Math.max(max,a*c);\n\t\tmax = Math.max(max,a*d);\n\t\tmax = Math.max(max,b*c);\n\t\tmax = Math.max(max,b*d);\n\t\tSystem.out.println(max);\n\t}\n\t\n\tpublic static void add(HashMap<Integer,Integer> hm, int val){\n\t\tif(!hm.containsKey(val))\n\t\t\thm.put(val,1);\n\t\telse hm.put(val, hm.get(val)+1);\n\t}\n\t\n\tpublic static void remove(HashMap<Integer,Integer> hm, int val){\n\t\thm.put(val, hm.get(val)-1);\n\t\tif(hm.get(val)==0){\n\t\t\thm.remove(val);\n\t\t}\n\t}\n\t\t\t\n\t\t\t\n\tpublic static long power(long a, long b){\n\t\t\n\t\tlong temp = 0;\n\t\tif(b==0)\n\t\t\treturn 1;\n\t\t\n\t\ttemp = power(a, b/2);\n\t\tif(b%2==0)\n\t\t\treturn (temp%mod*temp%mod)%mod;\n\t\treturn (a%mod*(temp%mod*temp%mod)%mod)%mod;\n\t}\n\t\n\tpublic static ArrayList<Integer> primefactor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\twhile(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}\n\t\tfor(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}\n\t\tif(n>2)\n\t\t\tal.add(n);\n\t\treturn al;\n\t}\n\t\n\tpublic static long sum(long val){\n\t\tlong fg =0 ;\n\t\twhile(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}\n\t\treturn fg;\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Long> factor(long n){\n\t\tlong sqrt = (long)Math.sqrt(n);\n\t\tArrayList<Long> al = new ArrayList<>();\n\t\tfor(long i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tlong first = i;\n\t\t\tlong second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}\n\t\treturn al;\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Integer> comp(){\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\t\tint n = (int)2e5;\n\t\t\tboolean arr[] = new boolean[n+1];\n\t\t\tint sqrt = (int)Math.sqrt(n);\n\t\t\tfor(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}\n\t\t\t\n\t\treturn al;\n\t}\n\t\n\tpublic static class pair{\n\t\tlong a;\n\t\tint b;\n\t\tpair(long x, int y){\n\t\t\ta=x;\n\t\t\tb=y;\n\t\t}\n\t}\n\t\n\tpublic static class comp implements Comparator<pair>{\n\t\tpublic int compare(pair o1, pair o2){\n\t\t\treturn Long.valueOf(o1.a).compareTo(Long.valueOf(o2.a));\n\t\t}\n\t}\n\t\n\t\n\t\n\tstatic class Node{\n\t\tint node;\n\t\tint d;\n\t\tArrayList<Integer> al = new ArrayList<>();\t\n\t}\n\t\n\n\tstatic int gcd(int a, int b) \n { \n if (b == 0) \n return a; \n return gcd(b, a % b); \n }\n\t\n\t\t\n\tstatic class FastReader \n\t{ \n\t\tfinal private int BUFFER_SIZE = 1 << 16; \n\t\tprivate DataInputStream din; \n\t\tprivate byte[] buffer; \n\t\tprivate int bufferPointer, bytesRead; \n \n\t\tpublic FastReader() \n\t\t{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic FastReader(String file_name) throws IOException \n\t\t{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic String readLine() throws IOException \n\t\t{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t} \n \n\t\tpublic int nextInt() throws IOException \n\t\t{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic long nextLong() throws IOException \n\t\t{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic double nextDouble() throws IOException \n\t\t{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n\t\t\n\t\t\n \n\t\tprivate void fillBuffer() throws IOException \n\t\t{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t} \n \n\t\tprivate byte read() throws IOException \n\t\t{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t} \n \n\t\tpublic void close() throws IOException \n\t\t{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t} \n\t} \n}",
"public class Main{\n\tstatic long mod = (long)(1e9+7);\n\tpublic static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));\n\tpublic static void main(String[] args)throws IOException {\n\t\tScanner sc =new Scanner(System.in);\n\t\t//FastReader sc = new FastReader();\n\t\t\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tlong max = Long.MIN_VALUE;\n\t\tmax = Math.max(max,a*c);\n\t\tmax = Math.max(max,a*d);\n\t\tmax = Math.max(max,b*c);\n\t\tmax = Math.max(max,b*d);\n\t\tSystem.out.println(max);\n\t}\n\t\n\tpublic static void add(HashMap<Integer,Integer> hm, int val){\n\t\tif(!hm.containsKey(val))\n\t\t\thm.put(val,1);\n\t\telse hm.put(val, hm.get(val)+1);\n\t}\n\t\n\tpublic static void remove(HashMap<Integer,Integer> hm, int val){\n\t\thm.put(val, hm.get(val)-1);\n\t\tif(hm.get(val)==0){\n\t\t\thm.remove(val);\n\t\t}\n\t}\n\t\t\t\n\t\t\t\n\tpublic static long power(long a, long b){\n\t\t\n\t\tlong temp = 0;\n\t\tif(b==0)\n\t\t\treturn 1;\n\t\t\n\t\ttemp = power(a, b/2);\n\t\tif(b%2==0)\n\t\t\treturn (temp%mod*temp%mod)%mod;\n\t\treturn (a%mod*(temp%mod*temp%mod)%mod)%mod;\n\t}\n\t\n\tpublic static ArrayList<Integer> primefactor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\twhile(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}\n\t\tfor(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}\n\t\tif(n>2)\n\t\t\tal.add(n);\n\t\treturn al;\n\t}\n\t\n\tpublic static long sum(long val){\n\t\tlong fg =0 ;\n\t\twhile(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}\n\t\treturn fg;\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Long> factor(long n){\n\t\tlong sqrt = (long)Math.sqrt(n);\n\t\tArrayList<Long> al = new ArrayList<>();\n\t\tfor(long i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tlong first = i;\n\t\t\tlong second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}\n\t\treturn al;\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Integer> comp(){\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\t\tint n = (int)2e5;\n\t\t\tboolean arr[] = new boolean[n+1];\n\t\t\tint sqrt = (int)Math.sqrt(n);\n\t\t\tfor(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}\n\t\t\t\n\t\treturn al;\n\t}\n\t\n\tpublic static class pair{\n\t\tlong a;\n\t\tint b;\n\t\tpair(long x, int y){\n\t\t\ta=x;\n\t\t\tb=y;\n\t\t}\n\t}\n\t\n\tpublic static class comp implements Comparator<pair>{\n\t\tpublic int compare(pair o1, pair o2){\n\t\t\treturn Long.valueOf(o1.a).compareTo(Long.valueOf(o2.a));\n\t\t}\n\t}\n\t\n\t\n\t\n\tstatic class Node{\n\t\tint node;\n\t\tint d;\n\t\tArrayList<Integer> al = new ArrayList<>();\t\n\t}\n\t\n\n\tstatic int gcd(int a, int b) \n { \n if (b == 0) \n return a; \n return gcd(b, a % b); \n }\n\t\n\t\t\n\tstatic class FastReader \n\t{ \n\t\tfinal private int BUFFER_SIZE = 1 << 16; \n\t\tprivate DataInputStream din; \n\t\tprivate byte[] buffer; \n\t\tprivate int bufferPointer, bytesRead; \n \n\t\tpublic FastReader() \n\t\t{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic FastReader(String file_name) throws IOException \n\t\t{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic String readLine() throws IOException \n\t\t{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t} \n \n\t\tpublic int nextInt() throws IOException \n\t\t{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic long nextLong() throws IOException \n\t\t{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic double nextDouble() throws IOException \n\t\t{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n\t\t\n\t\t\n \n\t\tprivate void fillBuffer() throws IOException \n\t\t{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t} \n \n\t\tprivate byte read() throws IOException \n\t\t{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t} \n \n\t\tpublic void close() throws IOException \n\t\t{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t} \n\t} \n}",
"Main"
]
| import java.util.*;
import java.io.*;
import java.math.*;
public class Main{
static long mod = (long)(1e9+7);
public static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));
public static void main(String[] args)throws IOException {
Scanner sc =new Scanner(System.in);
//FastReader sc = new FastReader();
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
long max = Long.MIN_VALUE;
max = Math.max(max,a*c);
max = Math.max(max,a*d);
max = Math.max(max,b*c);
max = Math.max(max,b*d);
System.out.println(max);
}
public static void add(HashMap<Integer,Integer> hm, int val){
if(!hm.containsKey(val))
hm.put(val,1);
else hm.put(val, hm.get(val)+1);
}
public static void remove(HashMap<Integer,Integer> hm, int val){
hm.put(val, hm.get(val)-1);
if(hm.get(val)==0){
hm.remove(val);
}
}
public static long power(long a, long b){
long temp = 0;
if(b==0)
return 1;
temp = power(a, b/2);
if(b%2==0)
return (temp%mod*temp%mod)%mod;
return (a%mod*(temp%mod*temp%mod)%mod)%mod;
}
public static ArrayList<Integer> primefactor(int n){
int sqrt = (int)Math.sqrt(n);
ArrayList<Integer> al = new ArrayList<>();
while(n%2==0){
al.add(2);
n/=2;
}
for(int i=3;i<=sqrt;i+=2){
while(n%i==0){
al.add(i);
n/=i;
}
}
if(n>2)
al.add(n);
return al;
}
public static long sum(long val){
long fg =0 ;
while(val!=0){
fg+=val%10;
val/=10;
}
return fg;
}
public static ArrayList<Long> factor(long n){
long sqrt = (long)Math.sqrt(n);
ArrayList<Long> al = new ArrayList<>();
for(long i=1;i<=sqrt;i++){
if(n%i!=0)
continue;
long first = i;
long second = n/i;
al.add(i);
if(first==second){
continue;
}
al.add(n/i);
}
return al;
}
public static ArrayList<Integer> comp(){
ArrayList<Integer> al = new ArrayList<>();
int n = (int)2e5;
boolean arr[] = new boolean[n+1];
int sqrt = (int)Math.sqrt(n);
for(int i=2;i<=sqrt;i++){
if(arr[i]==false){
for(int j=i*i;j<=n;j+=i){
arr[j]=true;
}
}
}
for(int i=2;i<=n;i++){
if(arr[i]==false)
al.add(i);
}
return al;
}
public static class pair{
long a;
int b;
pair(long x, int y){
a=x;
b=y;
}
}
public static class comp implements Comparator<pair>{
public int compare(pair o1, pair o2){
return Long.valueOf(o1.a).compareTo(Long.valueOf(o2.a));
}
}
static class Node{
int node;
int d;
ArrayList<Integer> al = new ArrayList<>();
}
static int gcd(int a, int b)
{
if (b == 0)
return a;
return gcd(b, a % b);
}
static class FastReader
{
final private int BUFFER_SIZE = 1 << 16;
private DataInputStream din;
private byte[] buffer;
private int bufferPointer, bytesRead;
public FastReader()
{
din = new DataInputStream(System.in);
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public FastReader(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();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
121,
5
],
[
121,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
54,
61
],
[
61,
62
],
[
61,
63
],
[
52,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
52,
71
],
[
71,
72
],
[
72,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
78,
80
],
[
74,
81
],
[
81,
82
],
[
81,
83
],
[
72,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
72,
91
],
[
91,
92
],
[
92,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
94,
101
],
[
101,
102
],
[
101,
103
],
[
92,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
92,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
6,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
]
| [
"import java.util.Scanner;\n \npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n long a=sc.nextLong();\n long b=sc.nextLong();\n long c=sc.nextLong();\n long d=sc.nextLong();\n \n long x=a*c;\n long y=a*d;\n long z=b*c;\n long w=b*d;\n \n if(x>=y&&x>=z&&x>=w)\n {\n \tSystem.out.println(x); \n }else {\n \tif(y>=z&&y>=w&&y>=x) {\n \t\tSystem.out.println(y);\n \t}else {\n \t\tif(z>=w&&z>=y&&z>=x) {\n \t\t\tSystem.out.println(z);\n \t\t}else {\n \t\t\tSystem.out.println(w);\n \t\t}\n \t}\n }\n }\n}\n ",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n long a=sc.nextLong();\n long b=sc.nextLong();\n long c=sc.nextLong();\n long d=sc.nextLong();\n \n long x=a*c;\n long y=a*d;\n long z=b*c;\n long w=b*d;\n \n if(x>=y&&x>=z&&x>=w)\n {\n \tSystem.out.println(x); \n }else {\n \tif(y>=z&&y>=w&&y>=x) {\n \t\tSystem.out.println(y);\n \t}else {\n \t\tif(z>=w&&z>=y&&z>=x) {\n \t\t\tSystem.out.println(z);\n \t\t}else {\n \t\t\tSystem.out.println(w);\n \t\t}\n \t}\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n long a=sc.nextLong();\n long b=sc.nextLong();\n long c=sc.nextLong();\n long d=sc.nextLong();\n \n long x=a*c;\n long y=a*d;\n long z=b*c;\n long w=b*d;\n \n if(x>=y&&x>=z&&x>=w)\n {\n \tSystem.out.println(x); \n }else {\n \tif(y>=z&&y>=w&&y>=x) {\n \t\tSystem.out.println(y);\n \t}else {\n \t\tif(z>=w&&z>=y&&z>=x) {\n \t\t\tSystem.out.println(z);\n \t\t}else {\n \t\t\tSystem.out.println(w);\n \t\t}\n \t}\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long a=sc.nextLong();\n long b=sc.nextLong();\n long c=sc.nextLong();\n long d=sc.nextLong();\n \n long x=a*c;\n long y=a*d;\n long z=b*c;\n long w=b*d;\n \n if(x>=y&&x>=z&&x>=w)\n {\n \tSystem.out.println(x); \n }else {\n \tif(y>=z&&y>=w&&y>=x) {\n \t\tSystem.out.println(y);\n \t}else {\n \t\tif(z>=w&&z>=y&&z>=x) {\n \t\t\tSystem.out.println(z);\n \t\t}else {\n \t\t\tSystem.out.println(w);\n \t\t}\n \t}\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a=sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b=sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c=sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d=sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long x=a*c;",
"x",
"a*c",
"a",
"c",
"long y=a*d;",
"y",
"a*d",
"a",
"d",
"long z=b*c;",
"z",
"b*c",
"b",
"c",
"long w=b*d;",
"w",
"b*d",
"b",
"d",
"if(x>=y&&x>=z&&x>=w)\n {\n \tSystem.out.println(x); \n }else {\n \tif(y>=z&&y>=w&&y>=x) {\n \t\tSystem.out.println(y);\n \t}else {\n \t\tif(z>=w&&z>=y&&z>=x) {\n \t\t\tSystem.out.println(z);\n \t\t}else {\n \t\t\tSystem.out.println(w);\n \t\t}\n \t}\n }",
"x>=y&&x>=z&&x>=w",
"x>=y&&x>=z&&x>=w",
"x>=y",
"x",
"y",
"x>=z",
"x",
"z",
"x>=w",
"x",
"w",
"{\n \tSystem.out.println(x); \n }",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"{\n \tif(y>=z&&y>=w&&y>=x) {\n \t\tSystem.out.println(y);\n \t}else {\n \t\tif(z>=w&&z>=y&&z>=x) {\n \t\t\tSystem.out.println(z);\n \t\t}else {\n \t\t\tSystem.out.println(w);\n \t\t}\n \t}\n }",
"if(y>=z&&y>=w&&y>=x) {\n \t\tSystem.out.println(y);\n \t}else {\n \t\tif(z>=w&&z>=y&&z>=x) {\n \t\t\tSystem.out.println(z);\n \t\t}else {\n \t\t\tSystem.out.println(w);\n \t\t}\n \t}",
"y>=z&&y>=w&&y>=x",
"y>=z&&y>=w&&y>=x",
"y>=z",
"y",
"z",
"y>=w",
"y",
"w",
"y>=x",
"y",
"x",
"{\n \t\tSystem.out.println(y);\n \t}",
"System.out.println(y)",
"System.out.println",
"System.out",
"System",
"System.out",
"y",
"{\n \t\tif(z>=w&&z>=y&&z>=x) {\n \t\t\tSystem.out.println(z);\n \t\t}else {\n \t\t\tSystem.out.println(w);\n \t\t}\n \t}",
"if(z>=w&&z>=y&&z>=x) {\n \t\t\tSystem.out.println(z);\n \t\t}else {\n \t\t\tSystem.out.println(w);\n \t\t}",
"z>=w&&z>=y&&z>=x",
"z>=w&&z>=y&&z>=x",
"z>=w",
"z",
"w",
"z>=y",
"z",
"y",
"z>=x",
"z",
"x",
"{\n \t\t\tSystem.out.println(z);\n \t\t}",
"System.out.println(z)",
"System.out.println",
"System.out",
"System",
"System.out",
"z",
"{\n \t\t\tSystem.out.println(w);\n \t\t}",
"System.out.println(w)",
"System.out.println",
"System.out",
"System",
"System.out",
"w",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n long a=sc.nextLong();\n long b=sc.nextLong();\n long c=sc.nextLong();\n long d=sc.nextLong();\n \n long x=a*c;\n long y=a*d;\n long z=b*c;\n long w=b*d;\n \n if(x>=y&&x>=z&&x>=w)\n {\n \tSystem.out.println(x); \n }else {\n \tif(y>=z&&y>=w&&y>=x) {\n \t\tSystem.out.println(y);\n \t}else {\n \t\tif(z>=w&&z>=y&&z>=x) {\n \t\t\tSystem.out.println(z);\n \t\t}else {\n \t\t\tSystem.out.println(w);\n \t\t}\n \t}\n }\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n long a=sc.nextLong();\n long b=sc.nextLong();\n long c=sc.nextLong();\n long d=sc.nextLong();\n \n long x=a*c;\n long y=a*d;\n long z=b*c;\n long w=b*d;\n \n if(x>=y&&x>=z&&x>=w)\n {\n \tSystem.out.println(x); \n }else {\n \tif(y>=z&&y>=w&&y>=x) {\n \t\tSystem.out.println(y);\n \t}else {\n \t\tif(z>=w&&z>=y&&z>=x) {\n \t\t\tSystem.out.println(z);\n \t\t}else {\n \t\t\tSystem.out.println(w);\n \t\t}\n \t}\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
long a=sc.nextLong();
long b=sc.nextLong();
long c=sc.nextLong();
long d=sc.nextLong();
long x=a*c;
long y=a*d;
long z=b*c;
long w=b*d;
if(x>=y&&x>=z&&x>=w)
{
System.out.println(x);
}else {
if(y>=z&&y>=w&&y>=x) {
System.out.println(y);
}else {
if(z>=w&&z>=y&&z>=x) {
System.out.println(z);
}else {
System.out.println(w);
}
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
85,
8
],
[
85,
9
],
[
9,
10
],
[
9,
11
],
[
85,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
14,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
14,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
14,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
14,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
14,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
14,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
85,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
73,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
]
| [
"import java.util.*;\nimport java.io.*;\n \npublic class Main{\n Scanner sc = new Scanner(System.in);\t\n \n public void run(){\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long max = a*c;\n max = Math.max(max, a*d);\n max = Math.max(max, b*c);\n max = Math.max(max, b*d);\n \n System.out.println(max);\n }\n public static void main(String[] args){\n Main m = new Main();\n m.run();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n Scanner sc = new Scanner(System.in);\t\n \n public void run(){\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long max = a*c;\n max = Math.max(max, a*d);\n max = Math.max(max, b*c);\n max = Math.max(max, b*d);\n \n System.out.println(max);\n }\n public static void main(String[] args){\n Main m = new Main();\n m.run();\n }\n}",
"Main",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public void run(){\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long max = a*c;\n max = Math.max(max, a*d);\n max = Math.max(max, b*c);\n max = Math.max(max, b*d);\n \n System.out.println(max);\n }",
"run",
"{\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long max = a*c;\n max = Math.max(max, a*d);\n max = Math.max(max, b*c);\n max = Math.max(max, b*d);\n \n System.out.println(max);\n }",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long max = a*c;",
"max",
"a*c",
"a",
"c",
"max = Math.max(max, a*d)",
"max",
"Math.max(max, a*d)",
"Math.max",
"Math",
"max",
"a*d",
"a",
"d",
"max = Math.max(max, b*c)",
"max",
"Math.max(max, b*c)",
"Math.max",
"Math",
"max",
"b*c",
"b",
"c",
"max = Math.max(max, b*d)",
"max",
"Math.max(max, b*d)",
"Math.max",
"Math",
"max",
"b*d",
"b",
"d",
"System.out.println(max)",
"System.out.println",
"System.out",
"System",
"System.out",
"max",
"public static void main(String[] args){\n Main m = new Main();\n m.run();\n }",
"main",
"{\n Main m = new Main();\n m.run();\n }",
"Main m = new Main();",
"m",
"new Main()",
"m.run()",
"m.run",
"m",
"String[] args",
"args",
"public class Main{\n Scanner sc = new Scanner(System.in);\t\n \n public void run(){\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long max = a*c;\n max = Math.max(max, a*d);\n max = Math.max(max, b*c);\n max = Math.max(max, b*d);\n \n System.out.println(max);\n }\n public static void main(String[] args){\n Main m = new Main();\n m.run();\n }\n}",
"public class Main{\n Scanner sc = new Scanner(System.in);\t\n \n public void run(){\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long max = a*c;\n max = Math.max(max, a*d);\n max = Math.max(max, b*c);\n max = Math.max(max, b*d);\n \n System.out.println(max);\n }\n public static void main(String[] args){\n Main m = new Main();\n m.run();\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main{
Scanner sc = new Scanner(System.in);
public void run(){
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
long max = a*c;
max = Math.max(max, a*d);
max = Math.max(max, b*c);
max = Math.max(max, b*d);
System.out.println(max);
}
public static void main(String[] args){
Main m = new Main();
m.run();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
41,
13,
2,
18,
13,
17,
18,
13,
17,
41,
13,
17,
14,
2,
2,
18,
13,
17,
17,
2,
18,
13,
17,
17,
30,
0,
13,
2,
18,
13,
17,
18,
13,
17,
14,
2,
2,
18,
13,
17,
17,
2,
18,
13,
17,
17,
30,
0,
13,
2,
18,
13,
17,
18,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
18,
13,
13,
18,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
151,
5
],
[
151,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
13
],
[
13,
14
],
[
13,
15
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
28,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
48,
50
],
[
8,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
54,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
54,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
76,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
76,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
99,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
112,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
131,
133
],
[
124,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
8,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
6,
148
],
[
148,
149
],
[
0,
150
],
[
150,
151
],
[
150,
152
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n int num[] = new int[4];\n Scanner scanner = new Scanner(System.in);\n for (int i = 0; i < 4; i++) {\n num[i] = Integer.parseInt(scanner.next());\n }\n scanner.close();\n long max = (long) num[0] * (long) num[2];\n long tmp = 0;\n\n if (num[0] > 0 && num[2] > 0) {\n max = (long) num[1] * (long) num[3];\n } else if (num[1] < 0 && num[3] < 0) {\n max = (long) num[0] * (long) num[2];\n } else {\n for (int j = 0; j < 2; j++) {\n for (int k = 2; k < 4; k++) {\n tmp = (long) num[j] * (long) num[k];\n if (max < tmp) {\n max = tmp;\n }\n }\n }\n }\n System.out.println(max);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n int num[] = new int[4];\n Scanner scanner = new Scanner(System.in);\n for (int i = 0; i < 4; i++) {\n num[i] = Integer.parseInt(scanner.next());\n }\n scanner.close();\n long max = (long) num[0] * (long) num[2];\n long tmp = 0;\n\n if (num[0] > 0 && num[2] > 0) {\n max = (long) num[1] * (long) num[3];\n } else if (num[1] < 0 && num[3] < 0) {\n max = (long) num[0] * (long) num[2];\n } else {\n for (int j = 0; j < 2; j++) {\n for (int k = 2; k < 4; k++) {\n tmp = (long) num[j] * (long) num[k];\n if (max < tmp) {\n max = tmp;\n }\n }\n }\n }\n System.out.println(max);\n }\n}",
"Main",
"public static void main(String[] args) {\n int num[] = new int[4];\n Scanner scanner = new Scanner(System.in);\n for (int i = 0; i < 4; i++) {\n num[i] = Integer.parseInt(scanner.next());\n }\n scanner.close();\n long max = (long) num[0] * (long) num[2];\n long tmp = 0;\n\n if (num[0] > 0 && num[2] > 0) {\n max = (long) num[1] * (long) num[3];\n } else if (num[1] < 0 && num[3] < 0) {\n max = (long) num[0] * (long) num[2];\n } else {\n for (int j = 0; j < 2; j++) {\n for (int k = 2; k < 4; k++) {\n tmp = (long) num[j] * (long) num[k];\n if (max < tmp) {\n max = tmp;\n }\n }\n }\n }\n System.out.println(max);\n }",
"main",
"{\n int num[] = new int[4];\n Scanner scanner = new Scanner(System.in);\n for (int i = 0; i < 4; i++) {\n num[i] = Integer.parseInt(scanner.next());\n }\n scanner.close();\n long max = (long) num[0] * (long) num[2];\n long tmp = 0;\n\n if (num[0] > 0 && num[2] > 0) {\n max = (long) num[1] * (long) num[3];\n } else if (num[1] < 0 && num[3] < 0) {\n max = (long) num[0] * (long) num[2];\n } else {\n for (int j = 0; j < 2; j++) {\n for (int k = 2; k < 4; k++) {\n tmp = (long) num[j] * (long) num[k];\n if (max < tmp) {\n max = tmp;\n }\n }\n }\n }\n System.out.println(max);\n }",
"int num[] = new int[4];",
"num",
"new int[4]",
"4",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"for (int i = 0; i < 4; i++) {\n num[i] = Integer.parseInt(scanner.next());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n num[i] = Integer.parseInt(scanner.next());\n }",
"{\n num[i] = Integer.parseInt(scanner.next());\n }",
"num[i] = Integer.parseInt(scanner.next())",
"num[i]",
"num",
"i",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"scanner.close()",
"scanner.close",
"scanner",
"long max = (long) num[0] * (long) num[2];",
"max",
"(long) num[0] * (long) num[2]",
"(long) num[0]",
"num",
"0",
"(long) num[2]",
"num",
"2",
"long tmp = 0;",
"tmp",
"0",
"if (num[0] > 0 && num[2] > 0) {\n max = (long) num[1] * (long) num[3];\n } else if (num[1] < 0 && num[3] < 0) {\n max = (long) num[0] * (long) num[2];\n } else {\n for (int j = 0; j < 2; j++) {\n for (int k = 2; k < 4; k++) {\n tmp = (long) num[j] * (long) num[k];\n if (max < tmp) {\n max = tmp;\n }\n }\n }\n }",
"num[0] > 0 && num[2] > 0",
"num[0] > 0",
"num[0]",
"num",
"0",
"0",
"num[2] > 0",
"num[2]",
"num",
"2",
"0",
"{\n max = (long) num[1] * (long) num[3];\n }",
"max = (long) num[1] * (long) num[3]",
"max",
"(long) num[1] * (long) num[3]",
"(long) num[1]",
"num",
"1",
"(long) num[3]",
"num",
"3",
"if (num[1] < 0 && num[3] < 0) {\n max = (long) num[0] * (long) num[2];\n } else {\n for (int j = 0; j < 2; j++) {\n for (int k = 2; k < 4; k++) {\n tmp = (long) num[j] * (long) num[k];\n if (max < tmp) {\n max = tmp;\n }\n }\n }\n }",
"num[1] < 0 && num[3] < 0",
"num[1] < 0",
"num[1]",
"num",
"1",
"0",
"num[3] < 0",
"num[3]",
"num",
"3",
"0",
"{\n max = (long) num[0] * (long) num[2];\n }",
"max = (long) num[0] * (long) num[2]",
"max",
"(long) num[0] * (long) num[2]",
"(long) num[0]",
"num",
"0",
"(long) num[2]",
"num",
"2",
"{\n for (int j = 0; j < 2; j++) {\n for (int k = 2; k < 4; k++) {\n tmp = (long) num[j] * (long) num[k];\n if (max < tmp) {\n max = tmp;\n }\n }\n }\n }",
"for (int j = 0; j < 2; j++) {\n for (int k = 2; k < 4; k++) {\n tmp = (long) num[j] * (long) num[k];\n if (max < tmp) {\n max = tmp;\n }\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 2",
"j",
"2",
"j++",
"j++",
"j",
"{\n for (int k = 2; k < 4; k++) {\n tmp = (long) num[j] * (long) num[k];\n if (max < tmp) {\n max = tmp;\n }\n }\n }",
"{\n for (int k = 2; k < 4; k++) {\n tmp = (long) num[j] * (long) num[k];\n if (max < tmp) {\n max = tmp;\n }\n }\n }",
"for (int k = 2; k < 4; k++) {\n tmp = (long) num[j] * (long) num[k];\n if (max < tmp) {\n max = tmp;\n }\n }",
"int k = 2;",
"int k = 2;",
"k",
"2",
"k < 4",
"k",
"4",
"k++",
"k++",
"k",
"{\n tmp = (long) num[j] * (long) num[k];\n if (max < tmp) {\n max = tmp;\n }\n }",
"{\n tmp = (long) num[j] * (long) num[k];\n if (max < tmp) {\n max = tmp;\n }\n }",
"tmp = (long) num[j] * (long) num[k]",
"tmp",
"(long) num[j] * (long) num[k]",
"(long) num[j]",
"num",
"j",
"(long) num[k]",
"num",
"k",
"if (max < tmp) {\n max = tmp;\n }",
"max < tmp",
"max",
"tmp",
"{\n max = tmp;\n }",
"max = tmp",
"max",
"tmp",
"System.out.println(max)",
"System.out.println",
"System.out",
"System",
"System.out",
"max",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n int num[] = new int[4];\n Scanner scanner = new Scanner(System.in);\n for (int i = 0; i < 4; i++) {\n num[i] = Integer.parseInt(scanner.next());\n }\n scanner.close();\n long max = (long) num[0] * (long) num[2];\n long tmp = 0;\n\n if (num[0] > 0 && num[2] > 0) {\n max = (long) num[1] * (long) num[3];\n } else if (num[1] < 0 && num[3] < 0) {\n max = (long) num[0] * (long) num[2];\n } else {\n for (int j = 0; j < 2; j++) {\n for (int k = 2; k < 4; k++) {\n tmp = (long) num[j] * (long) num[k];\n if (max < tmp) {\n max = tmp;\n }\n }\n }\n }\n System.out.println(max);\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n int num[] = new int[4];\n Scanner scanner = new Scanner(System.in);\n for (int i = 0; i < 4; i++) {\n num[i] = Integer.parseInt(scanner.next());\n }\n scanner.close();\n long max = (long) num[0] * (long) num[2];\n long tmp = 0;\n\n if (num[0] > 0 && num[2] > 0) {\n max = (long) num[1] * (long) num[3];\n } else if (num[1] < 0 && num[3] < 0) {\n max = (long) num[0] * (long) num[2];\n } else {\n for (int j = 0; j < 2; j++) {\n for (int k = 2; k < 4; k++) {\n tmp = (long) num[j] * (long) num[k];\n if (max < tmp) {\n max = tmp;\n }\n }\n }\n }\n System.out.println(max);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int num[] = new int[4];
Scanner scanner = new Scanner(System.in);
for (int i = 0; i < 4; i++) {
num[i] = Integer.parseInt(scanner.next());
}
scanner.close();
long max = (long) num[0] * (long) num[2];
long tmp = 0;
if (num[0] > 0 && num[2] > 0) {
max = (long) num[1] * (long) num[3];
} else if (num[1] < 0 && num[3] < 0) {
max = (long) num[0] * (long) num[2];
} else {
for (int j = 0; j < 2; j++) {
for (int k = 2; k < 4; k++) {
tmp = (long) num[j] * (long) num[k];
if (max < tmp) {
max = tmp;
}
}
}
}
System.out.println(max);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
96,
8
],
[
96,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
17,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
11,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
44,
46
],
[
11,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
52,
53
],
[
52,
54
],
[
11,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
11,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
11,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
11,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
11,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
88,
92
],
[
9,
93
],
[
93,
94
],
[
0,
95
],
[
95,
96
],
[
95,
97
]
]
| [
"//package abc178;\n\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] ip = br.readLine().split(\" \");\n\t\t\n\t\tlong a = Long.parseLong(ip[0]);\n\t\tlong b = Long.parseLong(ip[1]);\n\t\tlong c = Long.parseLong(ip[2]);\n\t\tlong d = Long.parseLong(ip[3]);\n\t\t\n\t\tlong p = a*c;\n\t\tlong q = a*d;\n\t\tlong r = b*c;\n\t\tlong s = b*d;\n\t\t\n\t\tSystem.out.println(Math.max(p, Math.max(r, Math.max(q,s))));\t\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] ip = br.readLine().split(\" \");\n\t\t\n\t\tlong a = Long.parseLong(ip[0]);\n\t\tlong b = Long.parseLong(ip[1]);\n\t\tlong c = Long.parseLong(ip[2]);\n\t\tlong d = Long.parseLong(ip[3]);\n\t\t\n\t\tlong p = a*c;\n\t\tlong q = a*d;\n\t\tlong r = b*c;\n\t\tlong s = b*d;\n\t\t\n\t\tSystem.out.println(Math.max(p, Math.max(r, Math.max(q,s))));\t\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] ip = br.readLine().split(\" \");\n\t\t\n\t\tlong a = Long.parseLong(ip[0]);\n\t\tlong b = Long.parseLong(ip[1]);\n\t\tlong c = Long.parseLong(ip[2]);\n\t\tlong d = Long.parseLong(ip[3]);\n\t\t\n\t\tlong p = a*c;\n\t\tlong q = a*d;\n\t\tlong r = b*c;\n\t\tlong s = b*d;\n\t\t\n\t\tSystem.out.println(Math.max(p, Math.max(r, Math.max(q,s))));\t\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] ip = br.readLine().split(\" \");\n\t\t\n\t\tlong a = Long.parseLong(ip[0]);\n\t\tlong b = Long.parseLong(ip[1]);\n\t\tlong c = Long.parseLong(ip[2]);\n\t\tlong d = Long.parseLong(ip[3]);\n\t\t\n\t\tlong p = a*c;\n\t\tlong q = a*d;\n\t\tlong r = b*c;\n\t\tlong s = b*d;\n\t\t\n\t\tSystem.out.println(Math.max(p, Math.max(r, Math.max(q,s))));\t\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] ip = br.readLine().split(\" \");",
"ip",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"long a = Long.parseLong(ip[0]);",
"a",
"Long.parseLong(ip[0])",
"Long.parseLong",
"Long",
"ip[0]",
"ip",
"0",
"long b = Long.parseLong(ip[1]);",
"b",
"Long.parseLong(ip[1])",
"Long.parseLong",
"Long",
"ip[1]",
"ip",
"1",
"long c = Long.parseLong(ip[2]);",
"c",
"Long.parseLong(ip[2])",
"Long.parseLong",
"Long",
"ip[2]",
"ip",
"2",
"long d = Long.parseLong(ip[3]);",
"d",
"Long.parseLong(ip[3])",
"Long.parseLong",
"Long",
"ip[3]",
"ip",
"3",
"long p = a*c;",
"p",
"a*c",
"a",
"c",
"long q = a*d;",
"q",
"a*d",
"a",
"d",
"long r = b*c;",
"r",
"b*c",
"b",
"c",
"long s = b*d;",
"s",
"b*d",
"b",
"d",
"System.out.println(Math.max(p, Math.max(r, Math.max(q,s))))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.max(p, Math.max(r, Math.max(q,s)))",
"Math.max",
"Math",
"p",
"Math.max(r, Math.max(q,s))",
"Math.max",
"Math",
"r",
"Math.max(q,s)",
"Math.max",
"Math",
"q",
"s",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] ip = br.readLine().split(\" \");\n\t\t\n\t\tlong a = Long.parseLong(ip[0]);\n\t\tlong b = Long.parseLong(ip[1]);\n\t\tlong c = Long.parseLong(ip[2]);\n\t\tlong d = Long.parseLong(ip[3]);\n\t\t\n\t\tlong p = a*c;\n\t\tlong q = a*d;\n\t\tlong r = b*c;\n\t\tlong s = b*d;\n\t\t\n\t\tSystem.out.println(Math.max(p, Math.max(r, Math.max(q,s))));\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] ip = br.readLine().split(\" \");\n\t\t\n\t\tlong a = Long.parseLong(ip[0]);\n\t\tlong b = Long.parseLong(ip[1]);\n\t\tlong c = Long.parseLong(ip[2]);\n\t\tlong d = Long.parseLong(ip[3]);\n\t\t\n\t\tlong p = a*c;\n\t\tlong q = a*d;\n\t\tlong r = b*c;\n\t\tlong s = b*d;\n\t\t\n\t\tSystem.out.println(Math.max(p, Math.max(r, Math.max(q,s))));\t\n\t}\n}",
"Main"
]
| //package abc178;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] ip = br.readLine().split(" ");
long a = Long.parseLong(ip[0]);
long b = Long.parseLong(ip[1]);
long c = Long.parseLong(ip[2]);
long d = Long.parseLong(ip[3]);
long p = a*c;
long q = a*d;
long r = b*c;
long s = b*d;
System.out.println(Math.max(p, Math.max(r, Math.max(q,s))));
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
13,
13,
13,
13,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
2,
13,
13,
0,
13,
4,
13,
13,
2,
13,
13,
0,
13,
4,
13,
13,
2,
13,
13,
0,
13,
4,
13,
13,
2,
13,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
4,
13,
13,
17,
29,
13,
23,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
141,
14
],
[
141,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
17,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
17,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
17,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
46,
49
],
[
46,
50
],
[
46,
51
],
[
17,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
17,
56
],
[
56,
57
],
[
57,
58
],
[
15,
59
],
[
59,
60
],
[
141,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
63,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
71,
74
],
[
74,
75
],
[
74,
76
],
[
63,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
79,
82
],
[
82,
83
],
[
82,
84
],
[
63,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
87,
90
],
[
90,
91
],
[
90,
92
],
[
63,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
106,
108
],
[
93,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
112,
114
],
[
112,
115
],
[
63,
116
],
[
116,
117
],
[
61,
118
],
[
118,
119
],
[
61,
120
],
[
120,
121
],
[
61,
122
],
[
122,
123
],
[
61,
124
],
[
124,
125
],
[
141,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
126,
138
],
[
138,
139
],
[
0,
140
],
[
140,
141
],
[
140,
142
]
]
| [
"//Created by Amaxul on 9/13/2020.\n\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.Scanner;\n\nimport static java.lang.Math.max;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner in = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n long a = in.nextInt(), b = in.nextInt();\n long c = in.nextInt(), d = in.nextInt();\n\n long max = getMin(a, b, c, d);\n pw.println(max);\n\n pw.close();\n }\n\n static long getMin(long a, long b, long c, long d) {\n long max = a * c;\n max = max(max, a * d);\n max = max(max, b * c);\n max = max(max, b * d);\n if ((a <= 0 && b >= 0) || (c <= 0 && d >= 0)) {\n max = max(max, 0);\n }\n return max;\n }\n\n static void debug(Object... obj) {\n System.err.println(Arrays.deepToString(obj));\n }\n}",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import static java.lang.Math.max;",
"import static java.lang.Math.max;",
"import static java.lang.Math.max;",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner in = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n long a = in.nextInt(), b = in.nextInt();\n long c = in.nextInt(), d = in.nextInt();\n\n long max = getMin(a, b, c, d);\n pw.println(max);\n\n pw.close();\n }\n\n static long getMin(long a, long b, long c, long d) {\n long max = a * c;\n max = max(max, a * d);\n max = max(max, b * c);\n max = max(max, b * d);\n if ((a <= 0 && b >= 0) || (c <= 0 && d >= 0)) {\n max = max(max, 0);\n }\n return max;\n }\n\n static void debug(Object... obj) {\n System.err.println(Arrays.deepToString(obj));\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner in = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n long a = in.nextInt(), b = in.nextInt();\n long c = in.nextInt(), d = in.nextInt();\n\n long max = getMin(a, b, c, d);\n pw.println(max);\n\n pw.close();\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n long a = in.nextInt(), b = in.nextInt();\n long c = in.nextInt(), d = in.nextInt();\n\n long max = getMin(a, b, c, d);\n pw.println(max);\n\n pw.close();\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"long a = in.nextInt()",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"b = in.nextInt();",
"b",
"in.nextInt()",
"in.nextInt",
"in",
"long c = in.nextInt()",
"c",
"in.nextInt()",
"in.nextInt",
"in",
"d = in.nextInt();",
"d",
"in.nextInt()",
"in.nextInt",
"in",
"long max = getMin(a, b, c, d);",
"max",
"getMin(a, b, c, d)",
"getMin",
"a",
"b",
"c",
"d",
"pw.println(max)",
"pw.println",
"pw",
"max",
"pw.close()",
"pw.close",
"pw",
"String[] args",
"args",
"static long getMin(long a, long b, long c, long d) {\n long max = a * c;\n max = max(max, a * d);\n max = max(max, b * c);\n max = max(max, b * d);\n if ((a <= 0 && b >= 0) || (c <= 0 && d >= 0)) {\n max = max(max, 0);\n }\n return max;\n }",
"getMin",
"{\n long max = a * c;\n max = max(max, a * d);\n max = max(max, b * c);\n max = max(max, b * d);\n if ((a <= 0 && b >= 0) || (c <= 0 && d >= 0)) {\n max = max(max, 0);\n }\n return max;\n }",
"long max = a * c;",
"max",
"a * c",
"a",
"c",
"max = max(max, a * d)",
"max",
"max(max, a * d)",
"max",
"max",
"a * d",
"a",
"d",
"max = max(max, b * c)",
"max",
"max(max, b * c)",
"max",
"max",
"b * c",
"b",
"c",
"max = max(max, b * d)",
"max",
"max(max, b * d)",
"max",
"max",
"b * d",
"b",
"d",
"if ((a <= 0 && b >= 0) || (c <= 0 && d >= 0)) {\n max = max(max, 0);\n }",
"(a <= 0 && b >= 0) || (c <= 0 && d >= 0)",
"(a <= 0 && b >= 0)",
"a <= 0",
"a",
"0",
"b >= 0",
"b",
"0",
"(c <= 0 && d >= 0)",
"c <= 0",
"c",
"0",
"d >= 0",
"d",
"0",
"{\n max = max(max, 0);\n }",
"max = max(max, 0)",
"max",
"max(max, 0)",
"max",
"max",
"0",
"return max;",
"max",
"long a",
"a",
"long b",
"b",
"long c",
"c",
"long d",
"d",
"static void debug(Object... obj) {\n System.err.println(Arrays.deepToString(obj));\n }",
"debug",
"{\n System.err.println(Arrays.deepToString(obj));\n }",
"System.err.println(Arrays.deepToString(obj))",
"System.err.println",
"System.err",
"System",
"System.err",
"Arrays.deepToString(obj)",
"Arrays.deepToString",
"Arrays",
"obj",
"Object... obj",
"obj",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner in = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n long a = in.nextInt(), b = in.nextInt();\n long c = in.nextInt(), d = in.nextInt();\n\n long max = getMin(a, b, c, d);\n pw.println(max);\n\n pw.close();\n }\n\n static long getMin(long a, long b, long c, long d) {\n long max = a * c;\n max = max(max, a * d);\n max = max(max, b * c);\n max = max(max, b * d);\n if ((a <= 0 && b >= 0) || (c <= 0 && d >= 0)) {\n max = max(max, 0);\n }\n return max;\n }\n\n static void debug(Object... obj) {\n System.err.println(Arrays.deepToString(obj));\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner in = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n long a = in.nextInt(), b = in.nextInt();\n long c = in.nextInt(), d = in.nextInt();\n\n long max = getMin(a, b, c, d);\n pw.println(max);\n\n pw.close();\n }\n\n static long getMin(long a, long b, long c, long d) {\n long max = a * c;\n max = max(max, a * d);\n max = max(max, b * c);\n max = max(max, b * d);\n if ((a <= 0 && b >= 0) || (c <= 0 && d >= 0)) {\n max = max(max, 0);\n }\n return max;\n }\n\n static void debug(Object... obj) {\n System.err.println(Arrays.deepToString(obj));\n }\n}",
"Main"
]
| //Created by Amaxul on 9/13/2020.
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;
import static java.lang.Math.max;
public class Main {
public static void main(String[] args) throws Exception {
Scanner in = new Scanner(System.in);
PrintWriter pw = new PrintWriter(System.out);
long a = in.nextInt(), b = in.nextInt();
long c = in.nextInt(), d = in.nextInt();
long max = getMin(a, b, c, d);
pw.println(max);
pw.close();
}
static long getMin(long a, long b, long c, long d) {
long max = a * c;
max = max(max, a * d);
max = max(max, b * c);
max = max(max, b * d);
if ((a <= 0 && b >= 0) || (c <= 0 && d >= 0)) {
max = max(max, 0);
}
return max;
}
static void debug(Object... obj) {
System.err.println(Arrays.deepToString(obj));
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
13,
13,
13,
4,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
60,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
65,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
]
| [
"import java.util.*;\n\npublic class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long A = sc.nextLong();\n long B = sc.nextLong(); \n long C = sc.nextLong(); \n long D = sc.nextLong();\n long AC = A*C;\n long AD = A*D;\n long BC = B*C;\n long BD = B*D;\n System.out.println(Math.max(Math.max(AC, AD), Math.max(BC, BD)));\n }\n \n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long A = sc.nextLong();\n long B = sc.nextLong(); \n long C = sc.nextLong(); \n long D = sc.nextLong();\n long AC = A*C;\n long AD = A*D;\n long BC = B*C;\n long BD = B*D;\n System.out.println(Math.max(Math.max(AC, AD), Math.max(BC, BD)));\n }\n \n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long A = sc.nextLong();\n long B = sc.nextLong(); \n long C = sc.nextLong(); \n long D = sc.nextLong();\n long AC = A*C;\n long AD = A*D;\n long BC = B*C;\n long BD = B*D;\n System.out.println(Math.max(Math.max(AC, AD), Math.max(BC, BD)));\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long A = sc.nextLong();\n long B = sc.nextLong(); \n long C = sc.nextLong(); \n long D = sc.nextLong();\n long AC = A*C;\n long AD = A*D;\n long BC = B*C;\n long BD = B*D;\n System.out.println(Math.max(Math.max(AC, AD), Math.max(BC, BD)));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long A = sc.nextLong();",
"A",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long B = sc.nextLong();",
"B",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long C = sc.nextLong();",
"C",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long D = sc.nextLong();",
"D",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long AC = A*C;",
"AC",
"A*C",
"A",
"C",
"long AD = A*D;",
"AD",
"A*D",
"A",
"D",
"long BC = B*C;",
"BC",
"B*C",
"B",
"C",
"long BD = B*D;",
"BD",
"B*D",
"B",
"D",
"System.out.println(Math.max(Math.max(AC, AD), Math.max(BC, BD)))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.max(Math.max(AC, AD), Math.max(BC, BD))",
"Math.max",
"Math",
"Math.max(AC, AD)",
"Math.max",
"Math",
"AC",
"AD",
"Math.max(BC, BD)",
"Math.max",
"Math",
"BC",
"BD",
"String[] args",
"args",
"public class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long A = sc.nextLong();\n long B = sc.nextLong(); \n long C = sc.nextLong(); \n long D = sc.nextLong();\n long AC = A*C;\n long AD = A*D;\n long BC = B*C;\n long BD = B*D;\n System.out.println(Math.max(Math.max(AC, AD), Math.max(BC, BD)));\n }\n \n}",
"public class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long A = sc.nextLong();\n long B = sc.nextLong(); \n long C = sc.nextLong(); \n long D = sc.nextLong();\n long AC = A*C;\n long AD = A*D;\n long BC = B*C;\n long BD = B*D;\n System.out.println(Math.max(Math.max(AC, AD), Math.max(BC, BD)));\n }\n \n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long A = sc.nextLong();
long B = sc.nextLong();
long C = sc.nextLong();
long D = sc.nextLong();
long AC = A*C;
long AD = A*D;
long BC = B*C;
long BD = B*D;
System.out.println(Math.max(Math.max(AC, AD), Math.max(BC, BD)));
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
20,
23,
13,
12,
13,
30,
4,
18,
20,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
94,
11
],
[
94,
12
],
[
12,
13
],
[
12,
14
],
[
94,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
15,
19
],
[
19,
20
],
[
94,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
94,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
31,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
31,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
31,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
31,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
31,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
31,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
78,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
82,
86
],
[
31,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
0,
93
],
[
93,
94
],
[
93,
95
]
]
| [
"import java.awt.*;\nimport java.io.*;\nimport java.util.*;\n \npublic class Main {\n\tScanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args){\n\t\tnew Main();\n\t}\n\tpublic Main(){\n\t\tnew TestB().doIt();\n\t}\n\tclass TestB{\n\t\tvoid doIt() {\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tlong c = sc.nextLong();\n\t\t\tlong d = sc.nextLong();\n\t\t\tlong ac = a*c;\n\t\t\tlong ad = a*d;\n\t\t\tlong bc = b*c;\n\t\t\tlong bd = b*d;\n\t\t\tlong max = Math.max(ac, Math.max(ad, Math.max(bc, bd)));\n\t\t\tSystem.out.println(max);\n\t\t}\n\t}\n}",
"import java.awt.*;",
"awt.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tScanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args){\n\t\tnew Main();\n\t}\n\tpublic Main(){\n\t\tnew TestB().doIt();\n\t}\n\tclass TestB{\n\t\tvoid doIt() {\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tlong c = sc.nextLong();\n\t\t\tlong d = sc.nextLong();\n\t\t\tlong ac = a*c;\n\t\t\tlong ad = a*d;\n\t\t\tlong bc = b*c;\n\t\t\tlong bd = b*d;\n\t\t\tlong max = Math.max(ac, Math.max(ad, Math.max(bc, bd)));\n\t\t\tSystem.out.println(max);\n\t\t}\n\t}\n}",
"Main",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args){\n\t\tnew Main();\n\t}",
"main",
"{\n\t\tnew Main();\n\t}",
"new Main()",
"String[] args",
"args",
"public Main(){\n\t\tnew TestB().doIt();\n\t}",
"Main",
"{\n\t\tnew TestB().doIt();\n\t}",
"new TestB().doIt()",
"new TestB().doIt",
"new TestB()",
"class TestB{\n\t\tvoid doIt() {\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tlong c = sc.nextLong();\n\t\t\tlong d = sc.nextLong();\n\t\t\tlong ac = a*c;\n\t\t\tlong ad = a*d;\n\t\t\tlong bc = b*c;\n\t\t\tlong bd = b*d;\n\t\t\tlong max = Math.max(ac, Math.max(ad, Math.max(bc, bd)));\n\t\t\tSystem.out.println(max);\n\t\t}\n\t}",
"TestB",
"void doIt() {\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tlong c = sc.nextLong();\n\t\t\tlong d = sc.nextLong();\n\t\t\tlong ac = a*c;\n\t\t\tlong ad = a*d;\n\t\t\tlong bc = b*c;\n\t\t\tlong bd = b*d;\n\t\t\tlong max = Math.max(ac, Math.max(ad, Math.max(bc, bd)));\n\t\t\tSystem.out.println(max);\n\t\t}",
"doIt",
"{\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tlong c = sc.nextLong();\n\t\t\tlong d = sc.nextLong();\n\t\t\tlong ac = a*c;\n\t\t\tlong ad = a*d;\n\t\t\tlong bc = b*c;\n\t\t\tlong bd = b*d;\n\t\t\tlong max = Math.max(ac, Math.max(ad, Math.max(bc, bd)));\n\t\t\tSystem.out.println(max);\n\t\t}",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long ac = a*c;",
"ac",
"a*c",
"a",
"c",
"long ad = a*d;",
"ad",
"a*d",
"a",
"d",
"long bc = b*c;",
"bc",
"b*c",
"b",
"c",
"long bd = b*d;",
"bd",
"b*d",
"b",
"d",
"long max = Math.max(ac, Math.max(ad, Math.max(bc, bd)));",
"max",
"Math.max(ac, Math.max(ad, Math.max(bc, bd)))",
"Math.max",
"Math",
"ac",
"Math.max(ad, Math.max(bc, bd))",
"Math.max",
"Math",
"ad",
"Math.max(bc, bd)",
"Math.max",
"Math",
"bc",
"bd",
"System.out.println(max)",
"System.out.println",
"System.out",
"System",
"System.out",
"max",
"public class Main {\n\tScanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args){\n\t\tnew Main();\n\t}\n\tpublic Main(){\n\t\tnew TestB().doIt();\n\t}\n\tclass TestB{\n\t\tvoid doIt() {\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tlong c = sc.nextLong();\n\t\t\tlong d = sc.nextLong();\n\t\t\tlong ac = a*c;\n\t\t\tlong ad = a*d;\n\t\t\tlong bc = b*c;\n\t\t\tlong bd = b*d;\n\t\t\tlong max = Math.max(ac, Math.max(ad, Math.max(bc, bd)));\n\t\t\tSystem.out.println(max);\n\t\t}\n\t}\n}",
"public class Main {\n\tScanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args){\n\t\tnew Main();\n\t}\n\tpublic Main(){\n\t\tnew TestB().doIt();\n\t}\n\tclass TestB{\n\t\tvoid doIt() {\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tlong c = sc.nextLong();\n\t\t\tlong d = sc.nextLong();\n\t\t\tlong ac = a*c;\n\t\t\tlong ad = a*d;\n\t\t\tlong bc = b*c;\n\t\t\tlong bd = b*d;\n\t\t\tlong max = Math.max(ac, Math.max(ad, Math.max(bc, bd)));\n\t\t\tSystem.out.println(max);\n\t\t}\n\t}\n}",
"Main"
]
| import java.awt.*;
import java.io.*;
import java.util.*;
public class Main {
Scanner sc = new Scanner(System.in);
public static void main(String[] args){
new Main();
}
public Main(){
new TestB().doIt();
}
class TestB{
void doIt() {
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
long ac = a*c;
long ad = a*d;
long bc = b*c;
long bd = b*d;
long max = Math.max(ac, Math.max(ad, Math.max(bc, bd)));
System.out.println(max);
}
}
} |
[
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,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
29,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
29,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
29,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
29,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
243,
20
],
[
243,
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
],
[
23,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
23,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
23,
47
],
[
47,
48
],
[
47,
49
],
[
23,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
58,
70
],
[
23,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
85,
87
],
[
82,
88
],
[
88,
89
],
[
88,
90
],
[
79,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
79,
97
],
[
23,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
103,
105
],
[
98,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
112,
114
],
[
109,
115
],
[
115,
116
],
[
115,
117
],
[
106,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
106,
124
],
[
23,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
139,
140
],
[
139,
141
],
[
136,
142
],
[
142,
143
],
[
142,
144
],
[
133,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
133,
151
],
[
21,
152
],
[
152,
153
],
[
243,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
154,
158
],
[
158,
159
],
[
154,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
154,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
169,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
179,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
168,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
154,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
198,
201
],
[
201,
202
],
[
154,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
207,
210
],
[
210,
211
],
[
154,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
216,
219
],
[
219,
220
],
[
154,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
223,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
227,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
237,
238
],
[
238,
239
],
[
223,
240
],
[
240,
241
],
[
0,
242
],
[
242,
243
],
[
242,
244
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.StringTokenizer;\nimport java.util.*;\npublic class Main {\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\t\n\t\tFastScanner fs = new FastScanner();\n\t\tint a=fs.nextInt(), b=fs.nextInt(), c=fs.nextInt(), d=fs.nextInt();\n\t\tlong product=0l;\n\t\tif(b<=0 && d<=0)\n\t\t{\n\t\t\tproduct = (long)a*c;\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\tif(b>=0 && d>=0)\n\t\t{\n\t\t\tproduct = Math.max((long)a*c, (long)b*d);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\tif(b>=0 && c<=0)\n\t\t{\n\t\t\tproduct = Math.max((long)d*a,(long)c*a);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\tif(a<=0 && d>=0)\n\t\t{\n\t\t\tproduct = Math.max((long)b*c,(long)a*c);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\t\n\t}\n\t\n\t\n\t\n\tstatic class FastScanner \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastScanner() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }\n\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.Arrays;",
"Arrays",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\t\n\t\tFastScanner fs = new FastScanner();\n\t\tint a=fs.nextInt(), b=fs.nextInt(), c=fs.nextInt(), d=fs.nextInt();\n\t\tlong product=0l;\n\t\tif(b<=0 && d<=0)\n\t\t{\n\t\t\tproduct = (long)a*c;\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\tif(b>=0 && d>=0)\n\t\t{\n\t\t\tproduct = Math.max((long)a*c, (long)b*d);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\tif(b>=0 && c<=0)\n\t\t{\n\t\t\tproduct = Math.max((long)d*a,(long)c*a);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\tif(a<=0 && d>=0)\n\t\t{\n\t\t\tproduct = Math.max((long)b*c,(long)a*c);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\t\n\t}\n\t\n\t\n\t\n\tstatic class FastScanner \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastScanner() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }\n\t\n\t\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\tFastScanner fs = new FastScanner();\n\t\tint a=fs.nextInt(), b=fs.nextInt(), c=fs.nextInt(), d=fs.nextInt();\n\t\tlong product=0l;\n\t\tif(b<=0 && d<=0)\n\t\t{\n\t\t\tproduct = (long)a*c;\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\tif(b>=0 && d>=0)\n\t\t{\n\t\t\tproduct = Math.max((long)a*c, (long)b*d);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\tif(b>=0 && c<=0)\n\t\t{\n\t\t\tproduct = Math.max((long)d*a,(long)c*a);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\tif(a<=0 && d>=0)\n\t\t{\n\t\t\tproduct = Math.max((long)b*c,(long)a*c);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\t\n\t\tFastScanner fs = new FastScanner();\n\t\tint a=fs.nextInt(), b=fs.nextInt(), c=fs.nextInt(), d=fs.nextInt();\n\t\tlong product=0l;\n\t\tif(b<=0 && d<=0)\n\t\t{\n\t\t\tproduct = (long)a*c;\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\tif(b>=0 && d>=0)\n\t\t{\n\t\t\tproduct = Math.max((long)a*c, (long)b*d);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\tif(b>=0 && c<=0)\n\t\t{\n\t\t\tproduct = Math.max((long)d*a,(long)c*a);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\tif(a<=0 && d>=0)\n\t\t{\n\t\t\tproduct = Math.max((long)b*c,(long)a*c);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\t\n\t}",
"FastScanner fs = new FastScanner();",
"fs",
"new FastScanner()",
"int a=fs.nextInt()",
"a",
"fs.nextInt()",
"fs.nextInt",
"fs",
"b=fs.nextInt()",
"b",
"fs.nextInt()",
"fs.nextInt",
"fs",
"c=fs.nextInt()",
"c",
"fs.nextInt()",
"fs.nextInt",
"fs",
"d=fs.nextInt();",
"d",
"fs.nextInt()",
"fs.nextInt",
"fs",
"long product=0l;",
"product",
"0l",
"if(b<=0 && d<=0)\n\t\t{\n\t\t\tproduct = (long)a*c;\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}",
"b<=0 && d<=0",
"b<=0",
"b",
"0",
"d<=0",
"d",
"0",
"{\n\t\t\tproduct = (long)a*c;\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}",
"product = (long)a*c",
"product",
"(long)a*c",
"(long)a",
"c",
"System.out.println(product)",
"System.out.println",
"System.out",
"System",
"System.out",
"product",
"return;",
"if(b>=0 && d>=0)\n\t\t{\n\t\t\tproduct = Math.max((long)a*c, (long)b*d);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}",
"b>=0 && d>=0",
"b>=0",
"b",
"0",
"d>=0",
"d",
"0",
"{\n\t\t\tproduct = Math.max((long)a*c, (long)b*d);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}",
"product = Math.max((long)a*c, (long)b*d)",
"product",
"Math.max((long)a*c, (long)b*d)",
"Math.max",
"Math",
"(long)a*c",
"(long)a",
"c",
"(long)b*d",
"(long)b",
"d",
"System.out.println(product)",
"System.out.println",
"System.out",
"System",
"System.out",
"product",
"return;",
"if(b>=0 && c<=0)\n\t\t{\n\t\t\tproduct = Math.max((long)d*a,(long)c*a);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}",
"b>=0 && c<=0",
"b>=0",
"b",
"0",
"c<=0",
"c",
"0",
"{\n\t\t\tproduct = Math.max((long)d*a,(long)c*a);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}",
"product = Math.max((long)d*a,(long)c*a)",
"product",
"Math.max((long)d*a,(long)c*a)",
"Math.max",
"Math",
"(long)d*a",
"(long)d",
"a",
"(long)c*a",
"(long)c",
"a",
"System.out.println(product)",
"System.out.println",
"System.out",
"System",
"System.out",
"product",
"return;",
"if(a<=0 && d>=0)\n\t\t{\n\t\t\tproduct = Math.max((long)b*c,(long)a*c);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}",
"a<=0 && d>=0",
"a<=0",
"a",
"0",
"d>=0",
"d",
"0",
"{\n\t\t\tproduct = Math.max((long)b*c,(long)a*c);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}",
"product = Math.max((long)b*c,(long)a*c)",
"product",
"Math.max((long)b*c,(long)a*c)",
"Math.max",
"Math",
"(long)b*c",
"(long)b",
"c",
"(long)a*c",
"(long)a",
"c",
"System.out.println(product)",
"System.out.println",
"System.out",
"System",
"System.out",
"product",
"return;",
"String[] args",
"args",
"static class FastScanner \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastScanner() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }",
"FastScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastScanner() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n }",
"FastScanner",
"{ \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n }",
"br = new BufferedReader(new\n InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n InputStreamReader(System.in))",
"String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }",
"next",
"{ \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }",
"while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{ \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }",
"try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }",
"catch (IOException e) \n { \n e.printStackTrace(); \n }",
"IOException e",
"{ \n e.printStackTrace(); \n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ \n st = new StringTokenizer(br.readLine()); \n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() \n { \n return Integer.parseInt(next()); \n }",
"nextInt",
"{ \n return Integer.parseInt(next()); \n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() \n { \n return Long.parseLong(next()); \n }",
"nextLong",
"{ \n return Long.parseLong(next()); \n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() \n { \n return Double.parseDouble(next()); \n }",
"nextDouble",
"{ \n return Double.parseDouble(next()); \n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }",
"nextLine",
"{ \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }",
"String str = \"\";",
"str",
"\"\"",
"try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }",
"catch (IOException e) \n { \n e.printStackTrace(); \n }",
"IOException e",
"{ \n e.printStackTrace(); \n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ \n str = br.readLine(); \n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\t\n\t\tFastScanner fs = new FastScanner();\n\t\tint a=fs.nextInt(), b=fs.nextInt(), c=fs.nextInt(), d=fs.nextInt();\n\t\tlong product=0l;\n\t\tif(b<=0 && d<=0)\n\t\t{\n\t\t\tproduct = (long)a*c;\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\tif(b>=0 && d>=0)\n\t\t{\n\t\t\tproduct = Math.max((long)a*c, (long)b*d);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\tif(b>=0 && c<=0)\n\t\t{\n\t\t\tproduct = Math.max((long)d*a,(long)c*a);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\tif(a<=0 && d>=0)\n\t\t{\n\t\t\tproduct = Math.max((long)b*c,(long)a*c);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\t\n\t}\n\t\n\t\n\t\n\tstatic class FastScanner \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastScanner() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }\n\t\n\t\n\n}",
"public class Main {\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\t\n\t\tFastScanner fs = new FastScanner();\n\t\tint a=fs.nextInt(), b=fs.nextInt(), c=fs.nextInt(), d=fs.nextInt();\n\t\tlong product=0l;\n\t\tif(b<=0 && d<=0)\n\t\t{\n\t\t\tproduct = (long)a*c;\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\tif(b>=0 && d>=0)\n\t\t{\n\t\t\tproduct = Math.max((long)a*c, (long)b*d);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\tif(b>=0 && c<=0)\n\t\t{\n\t\t\tproduct = Math.max((long)d*a,(long)c*a);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\tif(a<=0 && d>=0)\n\t\t{\n\t\t\tproduct = Math.max((long)b*c,(long)a*c);\n\t\t\tSystem.out.println(product);\n\t\t\treturn;\n\t\t}\n\t\t\n\t}\n\t\n\t\n\t\n\tstatic class FastScanner \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastScanner() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }\n\t\n\t\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;
import java.util.*;
public class Main {
public static void main(String[] args) {
FastScanner fs = new FastScanner();
int a=fs.nextInt(), b=fs.nextInt(), c=fs.nextInt(), d=fs.nextInt();
long product=0l;
if(b<=0 && d<=0)
{
product = (long)a*c;
System.out.println(product);
return;
}
if(b>=0 && d>=0)
{
product = Math.max((long)a*c, (long)b*d);
System.out.println(product);
return;
}
if(b>=0 && c<=0)
{
product = Math.max((long)d*a,(long)c*a);
System.out.println(product);
return;
}
if(a<=0 && d>=0)
{
product = Math.max((long)b*c,(long)a*c);
System.out.println(product);
return;
}
}
static class FastScanner
{
BufferedReader br;
StringTokenizer st;
public FastScanner()
{
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next()
{
while (st == null || !st.hasMoreElements())
{
try
{
st = new StringTokenizer(br.readLine());
}
catch (IOException e)
{
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt()
{
return Integer.parseInt(next());
}
long nextLong()
{
return Long.parseLong(next());
}
double nextDouble()
{
return Double.parseDouble(next());
}
String nextLine()
{
String str = "";
try
{
str = br.readLine();
}
catch (IOException e)
{
e.printStackTrace();
}
return str;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
2,
13,
17,
2,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
4,
18,
18,
13,
13,
2,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
41,
13,
17,
0,
13,
2,
2,
4,
13,
13,
13,
13,
4,
13,
13,
13,
13,
17,
29,
13,
23,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
2,
13,
17,
42,
2,
13,
13,
30,
41,
13,
2,
2,
13,
13,
17,
14,
2,
18,
13,
13,
13,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
29,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
2,
13,
17,
42,
2,
13,
13,
30,
41,
13,
2,
2,
13,
13,
17,
14,
2,
18,
13,
13,
13,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
29,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
17,
29,
13,
41,
13,
20,
42,
2,
13,
17,
30,
4,
18,
13,
2,
13,
17,
0,
13,
17,
0,
13,
4,
18,
13,
41,
13,
20,
41,
13,
4,
18,
13,
42,
2,
13,
17,
30,
4,
18,
13,
17,
40,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
40,
17,
41,
13,
17,
41,
13,
13,
42,
2,
13,
13,
30,
0,
13,
2,
2,
13,
13,
17,
14,
2,
13,
13,
30,
29,
13,
14,
2,
13,
18,
13,
13,
30,
0,
13,
2,
13,
17,
14,
2,
13,
18,
13,
13,
30,
0,
13,
2,
13,
17,
30,
29,
13,
29,
40,
13,
23,
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
],
[
724,
11
],
[
724,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
21,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
26,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
26,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
47,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
71,
73
],
[
68,
74
],
[
74,
75
],
[
74,
76
],
[
47,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
77,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
93,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
12,
116
],
[
116,
117
],
[
724,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
128,
131
],
[
128,
132
],
[
127,
133
],
[
133,
134
],
[
133,
135
],
[
133,
136
],
[
133,
137
],
[
126,
138
],
[
120,
139
],
[
139,
140
],
[
118,
141
],
[
141,
142
],
[
118,
143
],
[
143,
144
],
[
118,
145
],
[
145,
146
],
[
118,
147
],
[
147,
148
],
[
724,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
157,
159
],
[
151,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
164,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
172,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
180,
182
],
[
172,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
185,
187
],
[
151,
188
],
[
188,
189
],
[
149,
190
],
[
190,
191
],
[
149,
192
],
[
192,
193
],
[
149,
194
],
[
194,
195
],
[
724,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
204,
206
],
[
198,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
211,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
219,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
227,
229
],
[
219,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
232,
234
],
[
198,
235
],
[
235,
236
],
[
196,
237
],
[
237,
238
],
[
196,
239
],
[
239,
240
],
[
196,
241
],
[
241,
242
],
[
724,
243
],
[
243,
244
],
[
243,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
246,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
250,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
254,
259
],
[
259,
260
],
[
259,
261
],
[
254,
262
],
[
262,
263
],
[
263,
264
],
[
254,
265
],
[
266,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
267,
270
],
[
250,
271
],
[
271,
272
],
[
245,
273
],
[
273,
274
],
[
273,
275
],
[
245,
276
],
[
276,
277
],
[
277,
278
],
[
277,
279
],
[
276,
280
],
[
280,
281
],
[
281,
282
],
[
282,
283
],
[
281,
284
],
[
284,
285
],
[
284,
286
],
[
280,
287
],
[
287,
288
],
[
287,
289
],
[
245,
290
],
[
290,
291
],
[
290,
292
],
[
292,
293
],
[
293,
294
],
[
245,
295
],
[
295,
296
],
[
295,
297
],
[
245,
298
],
[
298,
299
],
[
298,
300
],
[
300,
301
],
[
301,
302
],
[
245,
303
],
[
303,
304
],
[
304,
305
],
[
304,
306
],
[
303,
307
],
[
307,
308
],
[
308,
309
],
[
309,
310
],
[
308,
311
],
[
307,
312
],
[
312,
313
],
[
245,
314
],
[
314,
315
],
[
315,
316
],
[
314,
317
],
[
245,
318
],
[
318,
319
],
[
243,
320
],
[
320,
321
],
[
724,
322
],
[
322,
323
],
[
322,
324
],
[
324,
325
],
[
325,
326
],
[
325,
327
],
[
327,
328
],
[
327,
329
],
[
324,
330
],
[
330,
331
],
[
330,
332
],
[
332,
333
],
[
324,
334
],
[
334,
335
],
[
334,
336
],
[
324,
337
],
[
337,
338
],
[
337,
339
],
[
324,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
340,
344
],
[
344,
345
],
[
345,
346
],
[
345,
347
],
[
347,
348
],
[
348,
349
],
[
348,
350
],
[
347,
351
],
[
344,
352
],
[
352,
353
],
[
353,
354
],
[
353,
355
],
[
352,
356
],
[
356,
357
],
[
357,
358
],
[
344,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
362,
363
],
[
362,
364
],
[
359,
365
],
[
365,
366
],
[
366,
367
],
[
366,
368
],
[
368,
369
],
[
368,
370
],
[
359,
371
],
[
371,
372
],
[
372,
373
],
[
372,
374
],
[
374,
375
],
[
374,
376
],
[
371,
377
],
[
377,
378
],
[
378,
379
],
[
378,
380
],
[
380,
381
],
[
380,
382
],
[
371,
383
],
[
383,
384
],
[
384,
385
],
[
324,
386
],
[
386,
387
],
[
387,
388
],
[
322,
389
],
[
389,
390
],
[
322,
391
],
[
391,
392
],
[
724,
393
],
[
393,
394
],
[
393,
395
],
[
395,
396
],
[
395,
397
],
[
397,
398
],
[
397,
399
],
[
393,
400
],
[
400,
401
],
[
393,
402
],
[
402,
403
],
[
393,
404
],
[
404,
405
],
[
393,
406
],
[
406,
407
],
[
393,
408
],
[
408,
409
],
[
408,
410
],
[
410,
411
],
[
411,
412
],
[
411,
413
],
[
410,
414
],
[
414,
415
],
[
414,
416
],
[
410,
418
],
[
418,
419
],
[
418,
420
],
[
420,
421
],
[
420,
422
],
[
393,
423
],
[
423,
424
],
[
423,
425
],
[
425,
426
],
[
426,
427
],
[
426,
428
],
[
425,
429
],
[
429,
430
],
[
429,
431
],
[
425,
433
],
[
433,
434
],
[
433,
435
],
[
435,
436
],
[
435,
437
],
[
423,
438
],
[
438,
439
],
[
393,
440
],
[
440,
441
],
[
440,
442
],
[
442,
443
],
[
443,
444
],
[
443,
445
],
[
442,
447
],
[
447,
448
],
[
447,
449
],
[
442,
450
],
[
450,
451
],
[
442,
452
],
[
452,
453
],
[
453,
454
],
[
454,
455
],
[
454,
456
],
[
456,
457
],
[
453,
458
],
[
458,
459
],
[
452,
460
],
[
460,
461
],
[
461,
462
],
[
462,
463
],
[
462,
464
],
[
461,
465
],
[
460,
466
],
[
466,
467
],
[
467,
468
],
[
467,
469
],
[
469,
470
],
[
466,
471
],
[
442,
472
],
[
472,
473
],
[
393,
474
],
[
474,
475
],
[
474,
476
],
[
476,
477
],
[
477,
478
],
[
477,
479
],
[
476,
480
],
[
480,
481
],
[
480,
482
],
[
482,
483
],
[
476,
484
],
[
484,
485
],
[
485,
486
],
[
485,
487
],
[
484,
488
],
[
488,
489
],
[
488,
490
],
[
490,
491
],
[
476,
492
],
[
492,
493
],
[
492,
494
],
[
494,
495
],
[
494,
496
],
[
476,
497
],
[
497,
498
],
[
497,
499
],
[
499,
500
],
[
499,
501
],
[
501,
502
],
[
476,
503
],
[
503,
504
],
[
504,
505
],
[
505,
506
],
[
506,
507
],
[
506,
508
],
[
508,
509
],
[
505,
510
],
[
504,
511
],
[
511,
512
],
[
511,
513
],
[
503,
514
],
[
514,
515
],
[
515,
516
],
[
515,
517
],
[
517,
518
],
[
518,
519
],
[
519,
520
],
[
519,
521
],
[
518,
522
],
[
517,
523
],
[
476,
524
],
[
524,
525
],
[
524,
526
],
[
526,
527
],
[
527,
528
],
[
476,
529
],
[
529,
530
],
[
393,
531
],
[
531,
532
],
[
531,
533
],
[
533,
534
],
[
534,
535
],
[
534,
536
],
[
533,
537
],
[
537,
538
],
[
537,
539
],
[
539,
540
],
[
533,
541
],
[
541,
542
],
[
542,
543
],
[
542,
544
],
[
541,
545
],
[
545,
546
],
[
545,
547
],
[
547,
548
],
[
533,
549
],
[
549,
550
],
[
549,
551
],
[
551,
552
],
[
551,
553
],
[
533,
554
],
[
554,
555
],
[
554,
556
],
[
556,
557
],
[
556,
558
],
[
558,
559
],
[
533,
560
],
[
560,
561
],
[
561,
562
],
[
562,
563
],
[
563,
564
],
[
563,
565
],
[
565,
566
],
[
562,
567
],
[
561,
568
],
[
568,
569
],
[
568,
570
],
[
560,
571
],
[
571,
572
],
[
572,
573
],
[
572,
574
],
[
574,
575
],
[
575,
576
],
[
576,
577
],
[
576,
578
],
[
575,
579
],
[
574,
580
],
[
533,
581
],
[
581,
582
],
[
581,
583
],
[
583,
584
],
[
584,
585
],
[
533,
586
],
[
586,
587
],
[
393,
588
],
[
588,
589
],
[
588,
590
],
[
590,
591
],
[
591,
592
],
[
591,
593
],
[
590,
594
],
[
594,
595
],
[
594,
596
],
[
590,
597
],
[
597,
598
],
[
597,
599
],
[
599,
600
],
[
590,
601
],
[
601,
602
],
[
602,
603
],
[
602,
604
],
[
601,
605
],
[
605,
606
],
[
605,
607
],
[
607,
608
],
[
590,
609
],
[
609,
610
],
[
609,
611
],
[
611,
612
],
[
611,
613
],
[
590,
614
],
[
614,
615
],
[
614,
616
],
[
616,
617
],
[
616,
618
],
[
618,
619
],
[
590,
620
],
[
620,
621
],
[
621,
622
],
[
622,
623
],
[
623,
624
],
[
623,
625
],
[
625,
626
],
[
622,
627
],
[
621,
628
],
[
628,
629
],
[
628,
630
],
[
620,
631
],
[
631,
632
],
[
632,
633
],
[
632,
634
],
[
634,
635
],
[
635,
636
],
[
636,
637
],
[
636,
638
],
[
635,
639
],
[
634,
640
],
[
590,
641
],
[
641,
642
],
[
642,
643
],
[
642,
644
],
[
641,
645
],
[
645,
646
],
[
646,
647
],
[
647,
648
],
[
648,
649
],
[
649,
650
],
[
649,
651
],
[
651,
652
],
[
648,
653
],
[
647,
654
],
[
654,
655
],
[
654,
656
],
[
646,
657
],
[
657,
658
],
[
658,
659
],
[
658,
660
],
[
660,
661
],
[
661,
662
],
[
661,
663
],
[
660,
664
],
[
664,
665
],
[
664,
666
],
[
590,
667
],
[
667,
668
],
[
667,
669
],
[
669,
670
],
[
670,
671
],
[
590,
672
],
[
672,
673
],
[
393,
674
],
[
674,
675
],
[
674,
676
],
[
676,
677
],
[
677,
678
],
[
677,
679
],
[
679,
680
],
[
680,
681
],
[
679,
682
],
[
679,
683
],
[
683,
684
],
[
683,
685
],
[
679,
686
],
[
676,
687
],
[
687,
688
],
[
688,
689
],
[
688,
690
],
[
690,
691
],
[
687,
692
],
[
692,
693
],
[
693,
694
],
[
693,
695
],
[
692,
696
],
[
696,
697
],
[
393,
698
],
[
698,
699
],
[
698,
700
],
[
700,
701
],
[
701,
702
],
[
702,
703
],
[
702,
704
],
[
701,
705
],
[
705,
706
],
[
700,
707
],
[
707,
708
],
[
708,
709
],
[
708,
710
],
[
710,
711
],
[
393,
712
],
[
712,
713
],
[
712,
714
],
[
714,
715
],
[
715,
716
],
[
716,
717
],
[
716,
718
],
[
715,
719
],
[
714,
720
],
[
720,
721
],
[
721,
722
],
[
0,
723
],
[
723,
724
],
[
723,
725
]
]
| [
"\nimport java.io.*;\nimport java.util.*;\nimport java.math.*;\n\npublic class Main { \n \n public static void main(String[] args) throws java.lang.Exception { \n Reader pm =new Reader(); \n //Scanner pm = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n int t = 1;\n while(t-- > 0){\n long a = pm.nextLong();\n long b = pm.nextLong();\n long c = pm.nextLong();\n long d = pm.nextLong();\n\n if((b > 0 && d > 0) || (a < 0 && c < 0))\n System.out.println(Math.max(b * d, a * c));\n else if(b > 0 && c < 0) \n System.out.println(a * d);\n else if(d > 0 && a < 0) {\n System.out.println(c * b);\n }\n else\n System.out.println(0);\n\n }\n //end of tests\n \n }\n //end of main class\n\n static int countInRange(int arr[], int n, int x, int y) { \n // initialize result \n int count = 0; \n count = upperIndex(arr, n, y) - \n lowerIndex(arr, n, x) + 1; \n return count; \n } \n \n \n static int lowerIndex(int arr[], int n, int x) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] >= x) \n h = mid - 1; \n else\n l = mid + 1; \n } \n return l; \n } \n \n // function to find last index <= y \n static int upperIndex(int arr[], int n, int y) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] <= y) \n l = mid + 1; \n else\n h = mid - 1; \n } \n return h; \n }\n \n public static StringBuilder dec_to_bin(long n) {\n // decimal to binary upto 30 binaries\n if(n==0) {\n StringBuilder str=new StringBuilder(\"\");\n for(int i=0;i<30;i++) {\n str.append(\"0\");\n }\n return str;\n }\n StringBuilder str=new StringBuilder(\"\");\n while(n!=0) {\n str.append(n%2L);\n n/=2L;\n }\n str=str.reverse();\n StringBuilder tmp_str=new StringBuilder(\"\");\n int len=str.length();\n while(len!=30) {\n tmp_str.append(\"0\");\n len++;\n }\n tmp_str.append(str);\n return tmp_str;\n }\n \n private static int binarySearchPM(int[] arr, int key){\n int n = arr.length;\n int mid = -1;\n int begin = 0,end=n;\n while(begin <= end){\n mid = (begin+end) / 2;\n if(mid == n){\n return n;\n }\n if(key < arr[mid]){\n end = mid-1;\n } else if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }\n }\n //System.out.println(begin+\" \"+end);\n return -begin; //expected Index\n }\n \n static class Reader { \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} ",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main { \n \n public static void main(String[] args) throws java.lang.Exception { \n Reader pm =new Reader(); \n //Scanner pm = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n int t = 1;\n while(t-- > 0){\n long a = pm.nextLong();\n long b = pm.nextLong();\n long c = pm.nextLong();\n long d = pm.nextLong();\n\n if((b > 0 && d > 0) || (a < 0 && c < 0))\n System.out.println(Math.max(b * d, a * c));\n else if(b > 0 && c < 0) \n System.out.println(a * d);\n else if(d > 0 && a < 0) {\n System.out.println(c * b);\n }\n else\n System.out.println(0);\n\n }\n //end of tests\n \n }\n //end of main class\n\n static int countInRange(int arr[], int n, int x, int y) { \n // initialize result \n int count = 0; \n count = upperIndex(arr, n, y) - \n lowerIndex(arr, n, x) + 1; \n return count; \n } \n \n \n static int lowerIndex(int arr[], int n, int x) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] >= x) \n h = mid - 1; \n else\n l = mid + 1; \n } \n return l; \n } \n \n // function to find last index <= y \n static int upperIndex(int arr[], int n, int y) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] <= y) \n l = mid + 1; \n else\n h = mid - 1; \n } \n return h; \n }\n \n public static StringBuilder dec_to_bin(long n) {\n // decimal to binary upto 30 binaries\n if(n==0) {\n StringBuilder str=new StringBuilder(\"\");\n for(int i=0;i<30;i++) {\n str.append(\"0\");\n }\n return str;\n }\n StringBuilder str=new StringBuilder(\"\");\n while(n!=0) {\n str.append(n%2L);\n n/=2L;\n }\n str=str.reverse();\n StringBuilder tmp_str=new StringBuilder(\"\");\n int len=str.length();\n while(len!=30) {\n tmp_str.append(\"0\");\n len++;\n }\n tmp_str.append(str);\n return tmp_str;\n }\n \n private static int binarySearchPM(int[] arr, int key){\n int n = arr.length;\n int mid = -1;\n int begin = 0,end=n;\n while(begin <= end){\n mid = (begin+end) / 2;\n if(mid == n){\n return n;\n }\n if(key < arr[mid]){\n end = mid-1;\n } else if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }\n }\n //System.out.println(begin+\" \"+end);\n return -begin; //expected Index\n }\n \n static class Reader { \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}",
"Main",
"public static void main(String[] args) throws java.lang.Exception { \n Reader pm =new Reader(); \n //Scanner pm = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n int t = 1;\n while(t-- > 0){\n long a = pm.nextLong();\n long b = pm.nextLong();\n long c = pm.nextLong();\n long d = pm.nextLong();\n\n if((b > 0 && d > 0) || (a < 0 && c < 0))\n System.out.println(Math.max(b * d, a * c));\n else if(b > 0 && c < 0) \n System.out.println(a * d);\n else if(d > 0 && a < 0) {\n System.out.println(c * b);\n }\n else\n System.out.println(0);\n\n }\n //end of tests\n \n }",
"main",
"{ \n Reader pm =new Reader(); \n //Scanner pm = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n int t = 1;\n while(t-- > 0){\n long a = pm.nextLong();\n long b = pm.nextLong();\n long c = pm.nextLong();\n long d = pm.nextLong();\n\n if((b > 0 && d > 0) || (a < 0 && c < 0))\n System.out.println(Math.max(b * d, a * c));\n else if(b > 0 && c < 0) \n System.out.println(a * d);\n else if(d > 0 && a < 0) {\n System.out.println(c * b);\n }\n else\n System.out.println(0);\n\n }\n //end of tests\n \n }",
"Reader pm =new Reader();",
"pm",
"new Reader()",
"int t = 1;",
"t",
"1",
"while(t-- > 0){\n long a = pm.nextLong();\n long b = pm.nextLong();\n long c = pm.nextLong();\n long d = pm.nextLong();\n\n if((b > 0 && d > 0) || (a < 0 && c < 0))\n System.out.println(Math.max(b * d, a * c));\n else if(b > 0 && c < 0) \n System.out.println(a * d);\n else if(d > 0 && a < 0) {\n System.out.println(c * b);\n }\n else\n System.out.println(0);\n\n }",
"t-- > 0",
"t--",
"t",
"0",
"{\n long a = pm.nextLong();\n long b = pm.nextLong();\n long c = pm.nextLong();\n long d = pm.nextLong();\n\n if((b > 0 && d > 0) || (a < 0 && c < 0))\n System.out.println(Math.max(b * d, a * c));\n else if(b > 0 && c < 0) \n System.out.println(a * d);\n else if(d > 0 && a < 0) {\n System.out.println(c * b);\n }\n else\n System.out.println(0);\n\n }",
"long a = pm.nextLong();",
"a",
"pm.nextLong()",
"pm.nextLong",
"pm",
"long b = pm.nextLong();",
"b",
"pm.nextLong()",
"pm.nextLong",
"pm",
"long c = pm.nextLong();",
"c",
"pm.nextLong()",
"pm.nextLong",
"pm",
"long d = pm.nextLong();",
"d",
"pm.nextLong()",
"pm.nextLong",
"pm",
"if((b > 0 && d > 0) || (a < 0 && c < 0))\n System.out.println(Math.max(b * d, a * c));\n else if(b > 0 && c < 0) \n System.out.println(a * d);\n else if(d > 0 && a < 0) {\n System.out.println(c * b);\n }\n else\n System.out.println(0);",
"(b > 0 && d > 0) || (a < 0 && c < 0)",
"(b > 0 && d > 0)",
"b > 0",
"b",
"0",
"d > 0",
"d",
"0",
"(a < 0 && c < 0)",
"a < 0",
"a",
"0",
"c < 0",
"c",
"0",
"System.out.println(Math.max(b * d, a * c))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.max(b * d, a * c)",
"Math.max",
"Math",
"b * d",
"b",
"d",
"a * c",
"a",
"c",
"if(b > 0 && c < 0) \n System.out.println(a * d);\n else if(d > 0 && a < 0) {\n System.out.println(c * b);\n }\n else\n System.out.println(0);",
"b > 0 && c < 0",
"b > 0",
"b",
"0",
"c < 0",
"c",
"0",
"System.out.println(a * d)",
"System.out.println",
"System.out",
"System",
"System.out",
"a * d",
"a",
"d",
"if(d > 0 && a < 0) {\n System.out.println(c * b);\n }\n else\n System.out.println(0);",
"d > 0 && a < 0",
"d > 0",
"d",
"0",
"a < 0",
"a",
"0",
"{\n System.out.println(c * b);\n }",
"System.out.println(c * b)",
"System.out.println",
"System.out",
"System",
"System.out",
"c * b",
"c",
"b",
"System.out.println(0)",
"System.out.println",
"System.out",
"System",
"System.out",
"0",
"String[] args",
"args",
"static int countInRange(int arr[], int n, int x, int y) { \n // initialize result \n int count = 0; \n count = upperIndex(arr, n, y) - \n lowerIndex(arr, n, x) + 1; \n return count; \n }",
"countInRange",
"{ \n // initialize result \n int count = 0; \n count = upperIndex(arr, n, y) - \n lowerIndex(arr, n, x) + 1; \n return count; \n }",
"int count = 0;",
"count",
"0",
"count = upperIndex(arr, n, y) - \n lowerIndex(arr, n, x) + 1",
"count",
"upperIndex(arr, n, y) - \n lowerIndex(arr, n, x) + 1",
"upperIndex(arr, n, y) - \n lowerIndex(arr, n, x)",
"upperIndex(arr, n, y)",
"upperIndex",
"arr",
"n",
"y",
"lowerIndex(arr, n, x)",
"lowerIndex",
"arr",
"n",
"x",
"1",
"return count;",
"count",
"int arr[]",
"arr",
"int n",
"n",
"int x",
"x",
"int y",
"y",
"static int lowerIndex(int arr[], int n, int x) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] >= x) \n h = mid - 1; \n else\n l = mid + 1; \n } \n return l; \n }",
"lowerIndex",
"{ \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] >= x) \n h = mid - 1; \n else\n l = mid + 1; \n } \n return l; \n }",
"int l = 0",
"l",
"0",
"h = n - 1;",
"h",
"n - 1",
"n",
"1",
"while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] >= x) \n h = mid - 1; \n else\n l = mid + 1; \n }",
"l <= h",
"l",
"h",
"{ \n int mid = (l + h) / 2; \n if (arr[mid] >= x) \n h = mid - 1; \n else\n l = mid + 1; \n }",
"int mid = (l + h) / 2;",
"mid",
"(l + h) / 2",
"(l + h)",
"l",
"h",
"2",
"if (arr[mid] >= x) \n h = mid - 1; \n else\n l = mid + 1;",
"arr[mid] >= x",
"arr[mid]",
"arr",
"mid",
"x",
"h = mid - 1",
"h",
"mid - 1",
"mid",
"1",
"l = mid + 1",
"l",
"mid + 1",
"mid",
"1",
"return l;",
"l",
"int arr[]",
"arr",
"int n",
"n",
"int x",
"x",
"// function to find last index <= y \n static int upperIndex(int arr[], int n, int y) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] <= y) \n l = mid + 1; \n else\n h = mid - 1; \n } \n return h; \n }",
"upperIndex",
"{ \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] <= y) \n l = mid + 1; \n else\n h = mid - 1; \n } \n return h; \n }",
"int l = 0",
"l",
"0",
"h = n - 1;",
"h",
"n - 1",
"n",
"1",
"while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] <= y) \n l = mid + 1; \n else\n h = mid - 1; \n }",
"l <= h",
"l",
"h",
"{ \n int mid = (l + h) / 2; \n if (arr[mid] <= y) \n l = mid + 1; \n else\n h = mid - 1; \n }",
"int mid = (l + h) / 2;",
"mid",
"(l + h) / 2",
"(l + h)",
"l",
"h",
"2",
"if (arr[mid] <= y) \n l = mid + 1; \n else\n h = mid - 1;",
"arr[mid] <= y",
"arr[mid]",
"arr",
"mid",
"y",
"l = mid + 1",
"l",
"mid + 1",
"mid",
"1",
"h = mid - 1",
"h",
"mid - 1",
"mid",
"1",
"return h;",
"h",
"int arr[]",
"arr",
"int n",
"n",
"int y",
"y",
"public static StringBuilder dec_to_bin(long n) {\n // decimal to binary upto 30 binaries\n if(n==0) {\n StringBuilder str=new StringBuilder(\"\");\n for(int i=0;i<30;i++) {\n str.append(\"0\");\n }\n return str;\n }\n StringBuilder str=new StringBuilder(\"\");\n while(n!=0) {\n str.append(n%2L);\n n/=2L;\n }\n str=str.reverse();\n StringBuilder tmp_str=new StringBuilder(\"\");\n int len=str.length();\n while(len!=30) {\n tmp_str.append(\"0\");\n len++;\n }\n tmp_str.append(str);\n return tmp_str;\n }",
"dec_to_bin",
"{\n // decimal to binary upto 30 binaries\n if(n==0) {\n StringBuilder str=new StringBuilder(\"\");\n for(int i=0;i<30;i++) {\n str.append(\"0\");\n }\n return str;\n }\n StringBuilder str=new StringBuilder(\"\");\n while(n!=0) {\n str.append(n%2L);\n n/=2L;\n }\n str=str.reverse();\n StringBuilder tmp_str=new StringBuilder(\"\");\n int len=str.length();\n while(len!=30) {\n tmp_str.append(\"0\");\n len++;\n }\n tmp_str.append(str);\n return tmp_str;\n }",
"if(n==0) {\n StringBuilder str=new StringBuilder(\"\");\n for(int i=0;i<30;i++) {\n str.append(\"0\");\n }\n return str;\n }",
"n==0",
"n",
"0",
"{\n StringBuilder str=new StringBuilder(\"\");\n for(int i=0;i<30;i++) {\n str.append(\"0\");\n }\n return str;\n }",
"StringBuilder str=new StringBuilder(\"\");",
"str",
"new StringBuilder(\"\")",
"for(int i=0;i<30;i++) {\n str.append(\"0\");\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<30",
"i",
"30",
"i++",
"i++",
"i",
"{\n str.append(\"0\");\n }",
"{\n str.append(\"0\");\n }",
"str.append(\"0\")",
"str.append",
"str",
"\"0\"",
"return str;",
"str",
"StringBuilder str=new StringBuilder(\"\");",
"str",
"new StringBuilder(\"\")",
"while(n!=0) {\n str.append(n%2L);\n n/=2L;\n }",
"n!=0",
"n",
"0",
"{\n str.append(n%2L);\n n/=2L;\n }",
"str.append(n%2L)",
"str.append",
"str",
"n%2L",
"n",
"2L",
"n/=2L",
"n",
"2L",
"str=str.reverse()",
"str",
"str.reverse()",
"str.reverse",
"str",
"StringBuilder tmp_str=new StringBuilder(\"\");",
"tmp_str",
"new StringBuilder(\"\")",
"int len=str.length();",
"len",
"str.length()",
"str.length",
"str",
"while(len!=30) {\n tmp_str.append(\"0\");\n len++;\n }",
"len!=30",
"len",
"30",
"{\n tmp_str.append(\"0\");\n len++;\n }",
"tmp_str.append(\"0\")",
"tmp_str.append",
"tmp_str",
"\"0\"",
"len++",
"len",
"tmp_str.append(str)",
"tmp_str.append",
"tmp_str",
"str",
"return tmp_str;",
"tmp_str",
"long n",
"n",
"private static int binarySearchPM(int[] arr, int key){\n int n = arr.length;\n int mid = -1;\n int begin = 0,end=n;\n while(begin <= end){\n mid = (begin+end) / 2;\n if(mid == n){\n return n;\n }\n if(key < arr[mid]){\n end = mid-1;\n } else if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }\n }\n //System.out.println(begin+\" \"+end);\n return -begin; //expected Index\n }",
"binarySearchPM",
"{\n int n = arr.length;\n int mid = -1;\n int begin = 0,end=n;\n while(begin <= end){\n mid = (begin+end) / 2;\n if(mid == n){\n return n;\n }\n if(key < arr[mid]){\n end = mid-1;\n } else if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }\n }\n //System.out.println(begin+\" \"+end);\n return -begin; //expected Index\n }",
"int n = arr.length;",
"n",
"arr.length",
"arr",
"arr.length",
"int mid = -1;",
"mid",
"-1",
"1",
"int begin = 0",
"begin",
"0",
"end=n;",
"end",
"n",
"while(begin <= end){\n mid = (begin+end) / 2;\n if(mid == n){\n return n;\n }\n if(key < arr[mid]){\n end = mid-1;\n } else if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }\n }",
"begin <= end",
"begin",
"end",
"{\n mid = (begin+end) / 2;\n if(mid == n){\n return n;\n }\n if(key < arr[mid]){\n end = mid-1;\n } else if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }\n }",
"mid = (begin+end) / 2",
"mid",
"(begin+end) / 2",
"(begin+end)",
"begin",
"end",
"2",
"if(mid == n){\n return n;\n }",
"mid == n",
"mid",
"n",
"{\n return n;\n }",
"return n;",
"n",
"if(key < arr[mid]){\n end = mid-1;\n } else if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }",
"key < arr[mid]",
"key",
"arr[mid]",
"arr",
"mid",
"{\n end = mid-1;\n }",
"end = mid-1",
"end",
"mid-1",
"mid",
"1",
"if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }",
"key > arr[mid]",
"key",
"arr[mid]",
"arr",
"mid",
"{\n begin = mid+1;\n }",
"begin = mid+1",
"begin",
"mid+1",
"mid",
"1",
"{\n return mid;\n }",
"return mid;",
"mid",
"return -begin; //expected Index",
"-begin",
"begin",
"int[] arr",
"arr",
"int key",
"key",
"static class Reader { \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 \n public static void main(String[] args) throws java.lang.Exception { \n Reader pm =new Reader(); \n //Scanner pm = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n int t = 1;\n while(t-- > 0){\n long a = pm.nextLong();\n long b = pm.nextLong();\n long c = pm.nextLong();\n long d = pm.nextLong();\n\n if((b > 0 && d > 0) || (a < 0 && c < 0))\n System.out.println(Math.max(b * d, a * c));\n else if(b > 0 && c < 0) \n System.out.println(a * d);\n else if(d > 0 && a < 0) {\n System.out.println(c * b);\n }\n else\n System.out.println(0);\n\n }\n //end of tests\n \n }\n //end of main class\n\n static int countInRange(int arr[], int n, int x, int y) { \n // initialize result \n int count = 0; \n count = upperIndex(arr, n, y) - \n lowerIndex(arr, n, x) + 1; \n return count; \n } \n \n \n static int lowerIndex(int arr[], int n, int x) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] >= x) \n h = mid - 1; \n else\n l = mid + 1; \n } \n return l; \n } \n \n // function to find last index <= y \n static int upperIndex(int arr[], int n, int y) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] <= y) \n l = mid + 1; \n else\n h = mid - 1; \n } \n return h; \n }\n \n public static StringBuilder dec_to_bin(long n) {\n // decimal to binary upto 30 binaries\n if(n==0) {\n StringBuilder str=new StringBuilder(\"\");\n for(int i=0;i<30;i++) {\n str.append(\"0\");\n }\n return str;\n }\n StringBuilder str=new StringBuilder(\"\");\n while(n!=0) {\n str.append(n%2L);\n n/=2L;\n }\n str=str.reverse();\n StringBuilder tmp_str=new StringBuilder(\"\");\n int len=str.length();\n while(len!=30) {\n tmp_str.append(\"0\");\n len++;\n }\n tmp_str.append(str);\n return tmp_str;\n }\n \n private static int binarySearchPM(int[] arr, int key){\n int n = arr.length;\n int mid = -1;\n int begin = 0,end=n;\n while(begin <= end){\n mid = (begin+end) / 2;\n if(mid == n){\n return n;\n }\n if(key < arr[mid]){\n end = mid-1;\n } else if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }\n }\n //System.out.println(begin+\" \"+end);\n return -begin; //expected Index\n }\n \n static class Reader { \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}",
"public class Main { \n \n public static void main(String[] args) throws java.lang.Exception { \n Reader pm =new Reader(); \n //Scanner pm = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n int t = 1;\n while(t-- > 0){\n long a = pm.nextLong();\n long b = pm.nextLong();\n long c = pm.nextLong();\n long d = pm.nextLong();\n\n if((b > 0 && d > 0) || (a < 0 && c < 0))\n System.out.println(Math.max(b * d, a * c));\n else if(b > 0 && c < 0) \n System.out.println(a * d);\n else if(d > 0 && a < 0) {\n System.out.println(c * b);\n }\n else\n System.out.println(0);\n\n }\n //end of tests\n \n }\n //end of main class\n\n static int countInRange(int arr[], int n, int x, int y) { \n // initialize result \n int count = 0; \n count = upperIndex(arr, n, y) - \n lowerIndex(arr, n, x) + 1; \n return count; \n } \n \n \n static int lowerIndex(int arr[], int n, int x) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] >= x) \n h = mid - 1; \n else\n l = mid + 1; \n } \n return l; \n } \n \n // function to find last index <= y \n static int upperIndex(int arr[], int n, int y) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] <= y) \n l = mid + 1; \n else\n h = mid - 1; \n } \n return h; \n }\n \n public static StringBuilder dec_to_bin(long n) {\n // decimal to binary upto 30 binaries\n if(n==0) {\n StringBuilder str=new StringBuilder(\"\");\n for(int i=0;i<30;i++) {\n str.append(\"0\");\n }\n return str;\n }\n StringBuilder str=new StringBuilder(\"\");\n while(n!=0) {\n str.append(n%2L);\n n/=2L;\n }\n str=str.reverse();\n StringBuilder tmp_str=new StringBuilder(\"\");\n int len=str.length();\n while(len!=30) {\n tmp_str.append(\"0\");\n len++;\n }\n tmp_str.append(str);\n return tmp_str;\n }\n \n private static int binarySearchPM(int[] arr, int key){\n int n = arr.length;\n int mid = -1;\n int begin = 0,end=n;\n while(begin <= end){\n mid = (begin+end) / 2;\n if(mid == n){\n return n;\n }\n if(key < arr[mid]){\n end = mid-1;\n } else if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }\n }\n //System.out.println(begin+\" \"+end);\n return -begin; //expected Index\n }\n \n static class Reader { \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}",
"Main"
]
|
import java.io.*;
import java.util.*;
import java.math.*;
public class Main {
public static void main(String[] args) throws java.lang.Exception {
Reader pm =new Reader();
//Scanner pm = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
int t = 1;
while(t-- > 0){
long a = pm.nextLong();
long b = pm.nextLong();
long c = pm.nextLong();
long d = pm.nextLong();
if((b > 0 && d > 0) || (a < 0 && c < 0))
System.out.println(Math.max(b * d, a * c));
else if(b > 0 && c < 0)
System.out.println(a * d);
else if(d > 0 && a < 0) {
System.out.println(c * b);
}
else
System.out.println(0);
}
//end of tests
}
//end of main class
static int countInRange(int arr[], int n, int x, int y) {
// initialize result
int count = 0;
count = upperIndex(arr, n, y) -
lowerIndex(arr, n, x) + 1;
return count;
}
static int lowerIndex(int arr[], int n, int x) {
int l = 0, h = n - 1;
while (l <= h)
{
int mid = (l + h) / 2;
if (arr[mid] >= x)
h = mid - 1;
else
l = mid + 1;
}
return l;
}
// function to find last index <= y
static int upperIndex(int arr[], int n, int y) {
int l = 0, h = n - 1;
while (l <= h)
{
int mid = (l + h) / 2;
if (arr[mid] <= y)
l = mid + 1;
else
h = mid - 1;
}
return h;
}
public static StringBuilder dec_to_bin(long n) {
// decimal to binary upto 30 binaries
if(n==0) {
StringBuilder str=new StringBuilder("");
for(int i=0;i<30;i++) {
str.append("0");
}
return str;
}
StringBuilder str=new StringBuilder("");
while(n!=0) {
str.append(n%2L);
n/=2L;
}
str=str.reverse();
StringBuilder tmp_str=new StringBuilder("");
int len=str.length();
while(len!=30) {
tmp_str.append("0");
len++;
}
tmp_str.append(str);
return tmp_str;
}
private static int binarySearchPM(int[] arr, int key){
int n = arr.length;
int mid = -1;
int begin = 0,end=n;
while(begin <= end){
mid = (begin+end) / 2;
if(mid == n){
return n;
}
if(key < arr[mid]){
end = mid-1;
} else if(key > arr[mid]){
begin = mid+1;
} else {
return mid;
}
}
//System.out.println(begin+" "+end);
return -begin; //expected Index
}
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();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
0,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
13,
41,
13,
13,
41,
13,
13,
41,
13,
13,
41,
13,
18,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
4,
18,
13,
13,
2,
2,
17,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
4,
18,
13,
13,
2,
2,
17,
13,
13,
0,
13,
4,
18,
13,
13,
2,
2,
17,
13,
13,
0,
13,
4,
18,
13,
13,
2,
2,
17,
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
],
[
149,
14
],
[
149,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
17,
23
],
[
23,
24
],
[
23,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
35,
36
],
[
17,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
17,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
51,
52
],
[
17,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
59,
60
],
[
17,
61
],
[
61,
62
],
[
61,
63
],
[
17,
64
],
[
64,
65
],
[
64,
66
],
[
17,
67
],
[
67,
68
],
[
67,
69
],
[
17,
70
],
[
70,
71
],
[
70,
72
],
[
17,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
17,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
89,
93
],
[
94,
94
],
[
94,
95
],
[
94,
96
],
[
94,
97
],
[
17,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
103,
105
],
[
98,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
109,
113
],
[
114,
114
],
[
114,
115
],
[
114,
116
],
[
114,
117
],
[
17,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
120,
124
],
[
125,
125
],
[
125,
126
],
[
125,
127
],
[
125,
128
],
[
17,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
131,
135
],
[
136,
136
],
[
136,
137
],
[
136,
138
],
[
136,
139
],
[
17,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
15,
146
],
[
146,
147
],
[
0,
148
],
[
148,
149
],
[
148,
150
]
]
| [
"\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args)throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n StringBuilder print=new StringBuilder();\n st=new StringTokenizer(br.readLine());\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int c=Integer.parseInt(st.nextToken());\n int d=Integer.parseInt(st.nextToken());\n int maxxneg=a;\n int maxxpos=b;\n int maxypos=d;\n int maxyneg=c;\n long ans=Long.MIN_VALUE;\n if(maxxpos>0&&maxypos>0){\n ans=Math.max(ans,1l*maxxpos*maxypos);\n }\n if(maxxneg<0&&maxyneg<0){\n ans=Math.max(ans,1l*maxxneg*maxyneg);\n }\n ans=Math.max(ans,1l*a*d);\n ans=Math.max(ans,1l*b*c);\n System.out.println(ans);\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n public static void main(String[] args)throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n StringBuilder print=new StringBuilder();\n st=new StringTokenizer(br.readLine());\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int c=Integer.parseInt(st.nextToken());\n int d=Integer.parseInt(st.nextToken());\n int maxxneg=a;\n int maxxpos=b;\n int maxypos=d;\n int maxyneg=c;\n long ans=Long.MIN_VALUE;\n if(maxxpos>0&&maxypos>0){\n ans=Math.max(ans,1l*maxxpos*maxypos);\n }\n if(maxxneg<0&&maxyneg<0){\n ans=Math.max(ans,1l*maxxneg*maxyneg);\n }\n ans=Math.max(ans,1l*a*d);\n ans=Math.max(ans,1l*b*c);\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args)throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n StringBuilder print=new StringBuilder();\n st=new StringTokenizer(br.readLine());\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int c=Integer.parseInt(st.nextToken());\n int d=Integer.parseInt(st.nextToken());\n int maxxneg=a;\n int maxxpos=b;\n int maxypos=d;\n int maxyneg=c;\n long ans=Long.MIN_VALUE;\n if(maxxpos>0&&maxypos>0){\n ans=Math.max(ans,1l*maxxpos*maxypos);\n }\n if(maxxneg<0&&maxyneg<0){\n ans=Math.max(ans,1l*maxxneg*maxyneg);\n }\n ans=Math.max(ans,1l*a*d);\n ans=Math.max(ans,1l*b*c);\n System.out.println(ans);\n }",
"main",
"{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n StringBuilder print=new StringBuilder();\n st=new StringTokenizer(br.readLine());\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int c=Integer.parseInt(st.nextToken());\n int d=Integer.parseInt(st.nextToken());\n int maxxneg=a;\n int maxxpos=b;\n int maxypos=d;\n int maxyneg=c;\n long ans=Long.MIN_VALUE;\n if(maxxpos>0&&maxypos>0){\n ans=Math.max(ans,1l*maxxpos*maxypos);\n }\n if(maxxneg<0&&maxyneg<0){\n ans=Math.max(ans,1l*maxxneg*maxyneg);\n }\n ans=Math.max(ans,1l*a*d);\n ans=Math.max(ans,1l*b*c);\n System.out.println(ans);\n }",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st;",
"st",
"StringBuilder print=new StringBuilder();",
"print",
"new StringBuilder()",
"st=new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"int a=Integer.parseInt(st.nextToken());",
"a",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int b=Integer.parseInt(st.nextToken());",
"b",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int c=Integer.parseInt(st.nextToken());",
"c",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int d=Integer.parseInt(st.nextToken());",
"d",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int maxxneg=a;",
"maxxneg",
"a",
"int maxxpos=b;",
"maxxpos",
"b",
"int maxypos=d;",
"maxypos",
"d",
"int maxyneg=c;",
"maxyneg",
"c",
"long ans=Long.MIN_VALUE;",
"ans",
"Long.MIN_VALUE",
"Long",
"Long.MIN_VALUE",
"if(maxxpos>0&&maxypos>0){\n ans=Math.max(ans,1l*maxxpos*maxypos);\n }",
"maxxpos>0&&maxypos>0",
"maxxpos>0",
"maxxpos",
"0",
"maxypos>0",
"maxypos",
"0",
"{\n ans=Math.max(ans,1l*maxxpos*maxypos);\n }",
"ans=Math.max(ans,1l*maxxpos*maxypos)",
"ans",
"Math.max(ans,1l*maxxpos*maxypos)",
"Math.max",
"Math",
"ans",
"1l*maxxpos*maxypos",
"1l*maxxpos*maxypos",
"1l",
"maxxpos",
"maxypos",
"if(maxxneg<0&&maxyneg<0){\n ans=Math.max(ans,1l*maxxneg*maxyneg);\n }",
"maxxneg<0&&maxyneg<0",
"maxxneg<0",
"maxxneg",
"0",
"maxyneg<0",
"maxyneg",
"0",
"{\n ans=Math.max(ans,1l*maxxneg*maxyneg);\n }",
"ans=Math.max(ans,1l*maxxneg*maxyneg)",
"ans",
"Math.max(ans,1l*maxxneg*maxyneg)",
"Math.max",
"Math",
"ans",
"1l*maxxneg*maxyneg",
"1l*maxxneg*maxyneg",
"1l",
"maxxneg",
"maxyneg",
"ans=Math.max(ans,1l*a*d)",
"ans",
"Math.max(ans,1l*a*d)",
"Math.max",
"Math",
"ans",
"1l*a*d",
"1l*a*d",
"1l",
"a",
"d",
"ans=Math.max(ans,1l*b*c)",
"ans",
"Math.max(ans,1l*b*c)",
"Math.max",
"Math",
"ans",
"1l*b*c",
"1l*b*c",
"1l",
"b",
"c",
"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)throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n StringBuilder print=new StringBuilder();\n st=new StringTokenizer(br.readLine());\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int c=Integer.parseInt(st.nextToken());\n int d=Integer.parseInt(st.nextToken());\n int maxxneg=a;\n int maxxpos=b;\n int maxypos=d;\n int maxyneg=c;\n long ans=Long.MIN_VALUE;\n if(maxxpos>0&&maxypos>0){\n ans=Math.max(ans,1l*maxxpos*maxypos);\n }\n if(maxxneg<0&&maxyneg<0){\n ans=Math.max(ans,1l*maxxneg*maxyneg);\n }\n ans=Math.max(ans,1l*a*d);\n ans=Math.max(ans,1l*b*c);\n System.out.println(ans);\n }\n}",
"public class Main {\n public static void main(String[] args)throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n StringBuilder print=new StringBuilder();\n st=new StringTokenizer(br.readLine());\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int c=Integer.parseInt(st.nextToken());\n int d=Integer.parseInt(st.nextToken());\n int maxxneg=a;\n int maxxpos=b;\n int maxypos=d;\n int maxyneg=c;\n long ans=Long.MIN_VALUE;\n if(maxxpos>0&&maxypos>0){\n ans=Math.max(ans,1l*maxxpos*maxypos);\n }\n if(maxxneg<0&&maxyneg<0){\n ans=Math.max(ans,1l*maxxneg*maxyneg);\n }\n ans=Math.max(ans,1l*a*d);\n ans=Math.max(ans,1l*b*c);\n System.out.println(ans);\n }\n}",
"Main"
]
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args)throws IOException {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st;
StringBuilder print=new StringBuilder();
st=new StringTokenizer(br.readLine());
int a=Integer.parseInt(st.nextToken());
int b=Integer.parseInt(st.nextToken());
int c=Integer.parseInt(st.nextToken());
int d=Integer.parseInt(st.nextToken());
int maxxneg=a;
int maxxpos=b;
int maxypos=d;
int maxyneg=c;
long ans=Long.MIN_VALUE;
if(maxxpos>0&&maxypos>0){
ans=Math.max(ans,1l*maxxpos*maxypos);
}
if(maxxneg<0&&maxyneg<0){
ans=Math.max(ans,1l*maxxneg*maxyneg);
}
ans=Math.max(ans,1l*a*d);
ans=Math.max(ans,1l*b*c);
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
20,
17,
0,
18,
13,
17,
13,
0,
18,
13,
17,
13,
0,
18,
13,
17,
13,
0,
18,
13,
17,
13,
41,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
13,
30,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
8,
76
],
[
76,
77
],
[
76,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
79,
87
],
[
87,
88
],
[
88,
89
],
[
79,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
8,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
6,
110
],
[
110,
111
]
]
| [
" import java.util.*;\n class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long x = a * c;\n long y = a * d;\n long z = b * c;\n long w = b * d;\n long[] aa = new long[4];\n \n aa[0] = x;\n aa[1] = y;\n aa[2] = z;\n aa[3] = w;\n long max = x;\n \n for(int i = 0; i < 4; i++){\n if(aa[i] > max){\n max = aa[i];\n }\n }\n System.out.println(max);\n }\n }",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long x = a * c;\n long y = a * d;\n long z = b * c;\n long w = b * d;\n long[] aa = new long[4];\n \n aa[0] = x;\n aa[1] = y;\n aa[2] = z;\n aa[3] = w;\n long max = x;\n \n for(int i = 0; i < 4; i++){\n if(aa[i] > max){\n max = aa[i];\n }\n }\n System.out.println(max);\n }\n }",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long x = a * c;\n long y = a * d;\n long z = b * c;\n long w = b * d;\n long[] aa = new long[4];\n \n aa[0] = x;\n aa[1] = y;\n aa[2] = z;\n aa[3] = w;\n long max = x;\n \n for(int i = 0; i < 4; i++){\n if(aa[i] > max){\n max = aa[i];\n }\n }\n System.out.println(max);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long x = a * c;\n long y = a * d;\n long z = b * c;\n long w = b * d;\n long[] aa = new long[4];\n \n aa[0] = x;\n aa[1] = y;\n aa[2] = z;\n aa[3] = w;\n long max = x;\n \n for(int i = 0; i < 4; i++){\n if(aa[i] > max){\n max = aa[i];\n }\n }\n System.out.println(max);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long x = a * c;",
"x",
"a * c",
"a",
"c",
"long y = a * d;",
"y",
"a * d",
"a",
"d",
"long z = b * c;",
"z",
"b * c",
"b",
"c",
"long w = b * d;",
"w",
"b * d",
"b",
"d",
"long[] aa = new long[4];",
"aa",
"new long[4]",
"4",
"aa[0] = x",
"aa[0]",
"aa",
"0",
"x",
"aa[1] = y",
"aa[1]",
"aa",
"1",
"y",
"aa[2] = z",
"aa[2]",
"aa",
"2",
"z",
"aa[3] = w",
"aa[3]",
"aa",
"3",
"w",
"long max = x;",
"max",
"x",
"for(int i = 0; i < 4; i++){\n if(aa[i] > max){\n max = aa[i];\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n if(aa[i] > max){\n max = aa[i];\n }\n }",
"{\n if(aa[i] > max){\n max = aa[i];\n }\n }",
"if(aa[i] > max){\n max = aa[i];\n }",
"aa[i] > max",
"aa[i]",
"aa",
"i",
"max",
"{\n max = aa[i];\n }",
"max = aa[i]",
"max",
"aa[i]",
"aa",
"i",
"System.out.println(max)",
"System.out.println",
"System.out",
"System",
"System.out",
"max",
"String[] args",
"args"
]
| import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
long x = a * c;
long y = a * d;
long z = b * c;
long w = b * d;
long[] aa = new long[4];
aa[0] = x;
aa[1] = y;
aa[2] = z;
aa[3] = w;
long max = x;
for(int i = 0; i < 4; i++){
if(aa[i] > max){
max = aa[i];
}
}
System.out.println(max);
}
} |
[
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,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
13,
14,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
30,
4,
18,
13,
2,
2,
13,
13,
17,
14,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
30,
4,
18,
13,
2,
2,
13,
13,
17,
30,
4,
18,
13,
2,
4,
18,
13,
2,
13,
13,
2,
13,
13,
17,
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,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
161,
8
],
[
161,
9
],
[
9,
10
],
[
161,
11
],
[
11,
12
],
[
161,
13
],
[
13,
14
],
[
161,
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
],
[
33,
35
],
[
35,
36
],
[
17,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
17,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
17,
45
],
[
45,
46
],
[
48,
47
],
[
55,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
55,
55
],
[
55,
56
],
[
55,
57
],
[
48,
58
],
[
58,
59
],
[
58,
60
],
[
45,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
45,
70
],
[
70,
71
],
[
73,
72
],
[
80,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
80,
80
],
[
80,
81
],
[
80,
82
],
[
73,
83
],
[
83,
84
],
[
83,
85
],
[
70,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
70,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
103,
104
],
[
103,
105
],
[
100,
106
],
[
106,
107
],
[
106,
108
],
[
99,
109
],
[
17,
110
],
[
110,
111
],
[
111,
112
],
[
15,
113
],
[
113,
114
],
[
161,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
161,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
128,
129
],
[
129,
130
],
[
161,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
138,
139
],
[
139,
140
],
[
161,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
148,
149
],
[
149,
150
],
[
161,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
0,
160
],
[
160,
161
],
[
160,
162
]
]
| [
"//package atcoder.beginner_178;\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 = \"-1000000000 0 -1000000000 0\";\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(); long a = nlo(), b=nlo(), c=nlo(), d=nlo();\n if (a<=0 && b<=0 && c>=0 && d>=0) {\n bw.write( (b*c) + \"\\n\");\n } else if (a>=0 && b>=0 && c<=0 && d<=0) {\n bw.write( (a*d) + \"\\n\");\n } else {\n bw.write( Math.max(a*c, b*d) + \"\\n\");\n }\n bw.flush();\n }\n\n static BufferedReader br; static BufferedWriter bw; static StringTokenizer st;\n static void rl() throws Exception{ st = new StringTokenizer(br.readLine()); }\n static long nlo(){ return Long.parseLong(st.nextToken()); }\n static int nin(){ return Integer.parseInt(st.nextToken()); }\n /*private static void te(){}*/\n static double ndo(){ return Double.parseDouble(st.nextToken()); }\n static char[] nca(){ return st.nextToken().toCharArray(); }\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 = \"-1000000000 0 -1000000000 0\";\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(); long a = nlo(), b=nlo(), c=nlo(), d=nlo();\n if (a<=0 && b<=0 && c>=0 && d>=0) {\n bw.write( (b*c) + \"\\n\");\n } else if (a>=0 && b>=0 && c<=0 && d<=0) {\n bw.write( (a*d) + \"\\n\");\n } else {\n bw.write( Math.max(a*c, b*d) + \"\\n\");\n }\n bw.flush();\n }\n\n static BufferedReader br; static BufferedWriter bw; static StringTokenizer st;\n static void rl() throws Exception{ st = new StringTokenizer(br.readLine()); }\n static long nlo(){ return Long.parseLong(st.nextToken()); }\n static int nin(){ return Integer.parseInt(st.nextToken()); }\n /*private static void te(){}*/\n static double ndo(){ return Double.parseDouble(st.nextToken()); }\n static char[] nca(){ return st.nextToken().toCharArray(); }\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 = \"-1000000000 0 -1000000000 0\";\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(); long a = nlo(), b=nlo(), c=nlo(), d=nlo();\n if (a<=0 && b<=0 && c>=0 && d>=0) {\n bw.write( (b*c) + \"\\n\");\n } else if (a>=0 && b>=0 && c<=0 && d<=0) {\n bw.write( (a*d) + \"\\n\");\n } else {\n bw.write( Math.max(a*c, b*d) + \"\\n\");\n }\n bw.flush();\n }",
"main",
"{\n\n String s = \"-1000000000 0 -1000000000 0\";\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(); long a = nlo(), b=nlo(), c=nlo(), d=nlo();\n if (a<=0 && b<=0 && c>=0 && d>=0) {\n bw.write( (b*c) + \"\\n\");\n } else if (a>=0 && b>=0 && c<=0 && d<=0) {\n bw.write( (a*d) + \"\\n\");\n } else {\n bw.write( Math.max(a*c, b*d) + \"\\n\");\n }\n bw.flush();\n }",
"String s = \"-1000000000 0 -1000000000 0\";",
"s",
"\"-1000000000 0 -1000000000 0\"",
"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",
"long a = nlo()",
"a",
"nlo()",
"nlo",
"b=nlo()",
"b",
"nlo()",
"nlo",
"c=nlo()",
"c",
"nlo()",
"nlo",
"d=nlo();",
"d",
"nlo()",
"nlo",
"if (a<=0 && b<=0 && c>=0 && d>=0) {\n bw.write( (b*c) + \"\\n\");\n } else if (a>=0 && b>=0 && c<=0 && d<=0) {\n bw.write( (a*d) + \"\\n\");\n } else {\n bw.write( Math.max(a*c, b*d) + \"\\n\");\n }",
"a<=0 && b<=0 && c>=0 && d>=0",
"c>=0",
"a<=0 && b<=0 && c>=0 && d>=0",
"a<=0",
"a",
"0",
"b<=0",
"b",
"0",
"c>=0",
"c",
"0",
"d>=0",
"d",
"0",
"{\n bw.write( (b*c) + \"\\n\");\n }",
"bw.write( (b*c) + \"\\n\")",
"bw.write",
"bw",
"(b*c) + \"\\n\"",
"(b*c)",
"b",
"c",
"\"\\n\"",
"if (a>=0 && b>=0 && c<=0 && d<=0) {\n bw.write( (a*d) + \"\\n\");\n } else {\n bw.write( Math.max(a*c, b*d) + \"\\n\");\n }",
"a>=0 && b>=0 && c<=0 && d<=0",
"c<=0",
"a>=0 && b>=0 && c<=0 && d<=0",
"a>=0",
"a",
"0",
"b>=0",
"b",
"0",
"c<=0",
"c",
"0",
"d<=0",
"d",
"0",
"{\n bw.write( (a*d) + \"\\n\");\n }",
"bw.write( (a*d) + \"\\n\")",
"bw.write",
"bw",
"(a*d) + \"\\n\"",
"(a*d)",
"a",
"d",
"\"\\n\"",
"{\n bw.write( Math.max(a*c, b*d) + \"\\n\");\n }",
"bw.write( Math.max(a*c, b*d) + \"\\n\")",
"bw.write",
"bw",
"Math.max(a*c, b*d) + \"\\n\"",
"Math.max(a*c, b*d)",
"Math.max",
"Math",
"a*c",
"a",
"c",
"b*d",
"b",
"d",
"\"\\n\"",
"bw.flush()",
"bw.flush",
"bw",
"String[] args",
"args",
"static void rl() throws Exception{ st = new StringTokenizer(br.readLine()); }",
"rl",
"{ st = new StringTokenizer(br.readLine()); }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"static long nlo(){ return Long.parseLong(st.nextToken()); }",
"nlo",
"{ return Long.parseLong(st.nextToken()); }",
"return Long.parseLong(st.nextToken());",
"Long.parseLong(st.nextToken())",
"Long.parseLong",
"Long",
"st.nextToken()",
"st.nextToken",
"st",
"static int nin(){ return Integer.parseInt(st.nextToken()); }",
"nin",
"{ return Integer.parseInt(st.nextToken()); }",
"return Integer.parseInt(st.nextToken());",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"/*private static void te(){}*/\n static double ndo(){ return Double.parseDouble(st.nextToken()); }",
"ndo",
"{ return Double.parseDouble(st.nextToken()); }",
"return Double.parseDouble(st.nextToken());",
"Double.parseDouble(st.nextToken())",
"Double.parseDouble",
"Double",
"st.nextToken()",
"st.nextToken",
"st",
"static char[] nca(){ return st.nextToken().toCharArray(); }",
"nca",
"{ return st.nextToken().toCharArray(); }",
"return st.nextToken().toCharArray();",
"st.nextToken().toCharArray()",
"st.nextToken().toCharArray",
"st.nextToken()",
"st.nextToken",
"st",
"public class Main {\n\n public static void main (String[] args) throws Exception {\n\n String s = \"-1000000000 0 -1000000000 0\";\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(); long a = nlo(), b=nlo(), c=nlo(), d=nlo();\n if (a<=0 && b<=0 && c>=0 && d>=0) {\n bw.write( (b*c) + \"\\n\");\n } else if (a>=0 && b>=0 && c<=0 && d<=0) {\n bw.write( (a*d) + \"\\n\");\n } else {\n bw.write( Math.max(a*c, b*d) + \"\\n\");\n }\n bw.flush();\n }\n\n static BufferedReader br; static BufferedWriter bw; static StringTokenizer st;\n static void rl() throws Exception{ st = new StringTokenizer(br.readLine()); }\n static long nlo(){ return Long.parseLong(st.nextToken()); }\n static int nin(){ return Integer.parseInt(st.nextToken()); }\n /*private static void te(){}*/\n static double ndo(){ return Double.parseDouble(st.nextToken()); }\n static char[] nca(){ return st.nextToken().toCharArray(); }\n}",
"public class Main {\n\n public static void main (String[] args) throws Exception {\n\n String s = \"-1000000000 0 -1000000000 0\";\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(); long a = nlo(), b=nlo(), c=nlo(), d=nlo();\n if (a<=0 && b<=0 && c>=0 && d>=0) {\n bw.write( (b*c) + \"\\n\");\n } else if (a>=0 && b>=0 && c<=0 && d<=0) {\n bw.write( (a*d) + \"\\n\");\n } else {\n bw.write( Math.max(a*c, b*d) + \"\\n\");\n }\n bw.flush();\n }\n\n static BufferedReader br; static BufferedWriter bw; static StringTokenizer st;\n static void rl() throws Exception{ st = new StringTokenizer(br.readLine()); }\n static long nlo(){ return Long.parseLong(st.nextToken()); }\n static int nin(){ return Integer.parseInt(st.nextToken()); }\n /*private static void te(){}*/\n static double ndo(){ return Double.parseDouble(st.nextToken()); }\n static char[] nca(){ return st.nextToken().toCharArray(); }\n}",
"Main"
]
| //package atcoder.beginner_178;
import java.io.*;
import java.util.StringTokenizer;
public class Main {
public static void main (String[] args) throws Exception {
String s = "-1000000000 0 -1000000000 0";
// br = new BufferedReader(new StringReader(s));
br = new BufferedReader(new InputStreamReader(System.in));
bw = new BufferedWriter(new OutputStreamWriter(System.out));
rl(); long a = nlo(), b=nlo(), c=nlo(), d=nlo();
if (a<=0 && b<=0 && c>=0 && d>=0) {
bw.write( (b*c) + "\n");
} else if (a>=0 && b>=0 && c<=0 && d<=0) {
bw.write( (a*d) + "\n");
} else {
bw.write( Math.max(a*c, b*d) + "\n");
}
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(); }
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
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
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
45,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
8,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
8,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
72,
76
],
[
76,
77
],
[
76,
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 public static void main(String[] args) {\n int mod = 1000000007;\n Scanner sc = new Scanner(System.in);\n long a = Long.parseLong(sc.next());\n long b = Long.parseLong(sc.next());\n long c = Long.parseLong(sc.next());\n long d = Long.parseLong(sc.next());\n\n long max = (a * c);\n max = Math.max(max, (b * c));\n max = Math.max(max, (a * d));\n max = Math.max(max, (b * d));\n System.out.println(max);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n int mod = 1000000007;\n Scanner sc = new Scanner(System.in);\n long a = Long.parseLong(sc.next());\n long b = Long.parseLong(sc.next());\n long c = Long.parseLong(sc.next());\n long d = Long.parseLong(sc.next());\n\n long max = (a * c);\n max = Math.max(max, (b * c));\n max = Math.max(max, (a * d));\n max = Math.max(max, (b * d));\n System.out.println(max);\n }\n}",
"Main",
"public static void main(String[] args) {\n int mod = 1000000007;\n Scanner sc = new Scanner(System.in);\n long a = Long.parseLong(sc.next());\n long b = Long.parseLong(sc.next());\n long c = Long.parseLong(sc.next());\n long d = Long.parseLong(sc.next());\n\n long max = (a * c);\n max = Math.max(max, (b * c));\n max = Math.max(max, (a * d));\n max = Math.max(max, (b * d));\n System.out.println(max);\n }",
"main",
"{\n int mod = 1000000007;\n Scanner sc = new Scanner(System.in);\n long a = Long.parseLong(sc.next());\n long b = Long.parseLong(sc.next());\n long c = Long.parseLong(sc.next());\n long d = Long.parseLong(sc.next());\n\n long max = (a * c);\n max = Math.max(max, (b * c));\n max = Math.max(max, (a * d));\n max = Math.max(max, (b * d));\n System.out.println(max);\n }",
"int mod = 1000000007;",
"mod",
"1000000007",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = Long.parseLong(sc.next());",
"a",
"Long.parseLong(sc.next())",
"Long.parseLong",
"Long",
"sc.next()",
"sc.next",
"sc",
"long b = Long.parseLong(sc.next());",
"b",
"Long.parseLong(sc.next())",
"Long.parseLong",
"Long",
"sc.next()",
"sc.next",
"sc",
"long c = Long.parseLong(sc.next());",
"c",
"Long.parseLong(sc.next())",
"Long.parseLong",
"Long",
"sc.next()",
"sc.next",
"sc",
"long d = Long.parseLong(sc.next());",
"d",
"Long.parseLong(sc.next())",
"Long.parseLong",
"Long",
"sc.next()",
"sc.next",
"sc",
"long max = (a * c);",
"max",
"(a * c)",
"a",
"c",
"max = Math.max(max, (b * c))",
"max",
"Math.max(max, (b * c))",
"Math.max",
"Math",
"max",
"(b * c)",
"b",
"c",
"max = Math.max(max, (a * d))",
"max",
"Math.max(max, (a * d))",
"Math.max",
"Math",
"max",
"(a * d)",
"a",
"d",
"max = Math.max(max, (b * d))",
"max",
"Math.max(max, (b * d))",
"Math.max",
"Math",
"max",
"(b * d)",
"b",
"d",
"System.out.println(max)",
"System.out.println",
"System.out",
"System",
"System.out",
"max",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n int mod = 1000000007;\n Scanner sc = new Scanner(System.in);\n long a = Long.parseLong(sc.next());\n long b = Long.parseLong(sc.next());\n long c = Long.parseLong(sc.next());\n long d = Long.parseLong(sc.next());\n\n long max = (a * c);\n max = Math.max(max, (b * c));\n max = Math.max(max, (a * d));\n max = Math.max(max, (b * d));\n System.out.println(max);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n int mod = 1000000007;\n Scanner sc = new Scanner(System.in);\n long a = Long.parseLong(sc.next());\n long b = Long.parseLong(sc.next());\n long c = Long.parseLong(sc.next());\n long d = Long.parseLong(sc.next());\n\n long max = (a * c);\n max = Math.max(max, (b * c));\n max = Math.max(max, (a * d));\n max = Math.max(max, (b * d));\n System.out.println(max);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int mod = 1000000007;
Scanner sc = new Scanner(System.in);
long a = Long.parseLong(sc.next());
long b = Long.parseLong(sc.next());
long c = Long.parseLong(sc.next());
long d = Long.parseLong(sc.next());
long max = (a * c);
max = Math.max(max, (b * c));
max = Math.max(max, (a * d));
max = Math.max(max, (b * d));
System.out.println(max);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
13,
2,
13,
13,
29,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
13,
2,
13,
13,
29,
41,
13,
18,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
4,
18,
13,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
4,
18,
13,
13,
17,
4,
18,
13,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
41,
13,
17,
42,
2,
40,
13,
17,
4,
13,
4,
18,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
2,
13,
17,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
2,
13,
17,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
4,
13,
13,
4,
18,
13,
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,
4,
13,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
4,
13,
17,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
4,
18,
13,
17,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
548,
8
],
[
548,
9
],
[
9,
10
],
[
548,
11
],
[
11,
12
],
[
548,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
15,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
15,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
15,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
15,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
48,
50
],
[
44,
51
],
[
15,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
60,
67
],
[
15,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
15,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
75,
79
],
[
79,
80
],
[
79,
81
],
[
15,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
84,
88
],
[
88,
89
],
[
88,
90
],
[
15,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
93,
97
],
[
97,
98
],
[
97,
99
],
[
15,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
102,
106
],
[
106,
107
],
[
106,
108
],
[
15,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
114,
116
],
[
109,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
120,
124
],
[
15,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
136,
140
],
[
15,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
548,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
151,
153
],
[
147,
154
],
[
154,
155
],
[
154,
156
],
[
147,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
158,
161
],
[
157,
162
],
[
162,
163
],
[
147,
164
],
[
164,
165
],
[
165,
166
],
[
145,
167
],
[
167,
168
],
[
548,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
172,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
179,
181
],
[
172,
182
],
[
182,
183
],
[
183,
184
],
[
172,
185
],
[
186,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
189,
193
],
[
193,
194
],
[
193,
195
],
[
186,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
198,
200
],
[
186,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
205,
206
],
[
205,
207
],
[
186,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
169,
213
],
[
213,
214
],
[
548,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
218,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
225,
227
],
[
218,
228
],
[
228,
229
],
[
229,
230
],
[
218,
231
],
[
232,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
235,
239
],
[
239,
240
],
[
239,
241
],
[
232,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
244,
246
],
[
232,
247
],
[
247,
248
],
[
248,
249
],
[
248,
250
],
[
247,
251
],
[
251,
252
],
[
251,
253
],
[
232,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
254,
258
],
[
215,
259
],
[
259,
260
],
[
548,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
261,
265
],
[
265,
266
],
[
261,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
267,
273
],
[
273,
274
],
[
261,
275
],
[
275,
276
],
[
275,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
275,
281
],
[
281,
282
],
[
261,
283
],
[
283,
284
],
[
283,
285
],
[
285,
286
],
[
286,
287
],
[
287,
288
],
[
288,
289
],
[
288,
290
],
[
287,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
286,
295
],
[
295,
296
],
[
295,
297
],
[
285,
298
],
[
298,
299
],
[
299,
300
],
[
300,
301
],
[
261,
302
],
[
302,
303
],
[
302,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
304,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
309,
314
],
[
314,
315
],
[
314,
316
],
[
309,
317
],
[
317,
318
],
[
318,
319
],
[
309,
320
],
[
320,
321
],
[
321,
322
],
[
322,
323
],
[
322,
324
],
[
321,
325
],
[
325,
326
],
[
304,
327
],
[
327,
328
],
[
302,
329
],
[
329,
330
],
[
261,
331
],
[
331,
332
],
[
331,
333
],
[
333,
334
],
[
334,
335
],
[
334,
336
],
[
333,
338
],
[
338,
339
],
[
339,
340
],
[
340,
341
],
[
340,
342
],
[
338,
343
],
[
343,
344
],
[
343,
345
],
[
338,
346
],
[
346,
347
],
[
347,
348
],
[
338,
349
],
[
349,
350
],
[
350,
351
],
[
351,
352
],
[
351,
353
],
[
350,
354
],
[
354,
355
],
[
333,
356
],
[
356,
357
],
[
331,
358
],
[
358,
359
],
[
261,
360
],
[
360,
361
],
[
360,
362
],
[
362,
363
],
[
363,
364
],
[
363,
365
],
[
362,
367
],
[
367,
368
],
[
368,
369
],
[
369,
370
],
[
369,
371
],
[
367,
372
],
[
372,
373
],
[
372,
374
],
[
367,
375
],
[
375,
376
],
[
376,
377
],
[
367,
378
],
[
378,
379
],
[
379,
380
],
[
380,
381
],
[
380,
382
],
[
379,
383
],
[
383,
384
],
[
362,
385
],
[
385,
386
],
[
385,
387
],
[
362,
388
],
[
388,
389
],
[
389,
390
],
[
388,
391
],
[
362,
392
],
[
392,
393
],
[
360,
394
],
[
394,
395
],
[
261,
396
],
[
396,
397
],
[
396,
398
],
[
398,
399
],
[
399,
400
],
[
399,
401
],
[
398,
403
],
[
403,
404
],
[
404,
405
],
[
405,
406
],
[
405,
407
],
[
403,
408
],
[
408,
409
],
[
408,
410
],
[
403,
411
],
[
411,
412
],
[
412,
413
],
[
403,
414
],
[
414,
415
],
[
415,
416
],
[
416,
417
],
[
416,
418
],
[
415,
419
],
[
419,
420
],
[
398,
421
],
[
421,
422
],
[
421,
423
],
[
398,
424
],
[
424,
425
],
[
425,
426
],
[
424,
427
],
[
398,
428
],
[
428,
429
],
[
396,
430
],
[
430,
431
],
[
261,
432
],
[
432,
433
],
[
432,
434
],
[
434,
435
],
[
435,
436
],
[
435,
437
],
[
434,
439
],
[
439,
440
],
[
440,
441
],
[
441,
442
],
[
441,
443
],
[
439,
444
],
[
444,
445
],
[
444,
446
],
[
439,
447
],
[
447,
448
],
[
448,
449
],
[
439,
450
],
[
450,
451
],
[
451,
452
],
[
452,
453
],
[
452,
454
],
[
451,
455
],
[
455,
456
],
[
434,
457
],
[
457,
458
],
[
432,
459
],
[
459,
460
],
[
261,
461
],
[
461,
462
],
[
461,
463
],
[
463,
464
],
[
464,
465
],
[
464,
466
],
[
463,
468
],
[
468,
469
],
[
469,
470
],
[
470,
471
],
[
470,
472
],
[
468,
473
],
[
473,
474
],
[
473,
475
],
[
468,
476
],
[
476,
477
],
[
477,
478
],
[
468,
479
],
[
479,
480
],
[
480,
481
],
[
481,
482
],
[
481,
483
],
[
480,
484
],
[
484,
485
],
[
463,
486
],
[
486,
487
],
[
461,
488
],
[
488,
489
],
[
261,
490
],
[
490,
491
],
[
490,
492
],
[
492,
493
],
[
493,
494
],
[
494,
495
],
[
495,
496
],
[
261,
497
],
[
497,
498
],
[
497,
499
],
[
499,
500
],
[
500,
501
],
[
501,
502
],
[
502,
503
],
[
501,
504
],
[
504,
505
],
[
261,
506
],
[
506,
507
],
[
506,
508
],
[
508,
509
],
[
509,
510
],
[
510,
511
],
[
511,
512
],
[
510,
513
],
[
513,
514
],
[
261,
515
],
[
515,
516
],
[
515,
517
],
[
517,
518
],
[
518,
519
],
[
519,
520
],
[
520,
521
],
[
521,
522
],
[
519,
523
],
[
261,
524
],
[
524,
525
],
[
524,
526
],
[
526,
527
],
[
527,
528
],
[
528,
529
],
[
529,
530
],
[
528,
531
],
[
531,
532
],
[
261,
533
],
[
533,
534
],
[
533,
535
],
[
535,
536
],
[
536,
537
],
[
537,
538
],
[
538,
539
],
[
261,
540
],
[
540,
541
],
[
540,
542
],
[
542,
543
],
[
543,
544
],
[
544,
545
],
[
543,
546
],
[
0,
547
],
[
547,
548
],
[
547,
549
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main{\n\tstatic void main() throws Exception{\n\t\tlong a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt(),d=sc.nextInt();\n\t\tif(a>=0 && c>=0) {\n\t\t\tpw.println(b*d);\n\t\t\treturn;\n\t\t}\n\t\tif(b<=0 && d<=0) {\n\t\t\tpw.println(a*c);\n\t\t\treturn;\n\t\t}\n\t\tlong ans=Long.MIN_VALUE;\n\t\t\n\t\tans=Math.max(ans, a*c);\n\t\tans=Math.max(ans, a*d);\n\t\tans=Math.max(ans, b*c);\n\t\tans=Math.max(ans, b*d);\n\t\tif(a<=0 && b>=0) {\n\t\t\tans=Math.max(ans, 0);\n\t\t}\n\t\tif(c<=0 && d>=0) {\n\t\t\tans=Math.max(ans, 0);\n\t\t}\n\t\tpw.println(ans);\n\t}\n\tpublic static void main(String[] args) throws Exception{\n\t\tsc=new MScanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t\tint tc=1;\n//\t\ttc=sc.nextInt();\n\t\twhile(tc-->0)\n\t\t\tmain();\n\t\tpw.flush();\n\t}\n\tstatic PrintWriter pw;\n\tstatic MScanner sc;\n\tstatic class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n \n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int[] intArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic long[] longArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n \n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n\tstatic void shuffle(int[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*(i+1));\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n\tstatic void shuffle(long[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*(i+1));\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tstatic void main() throws Exception{\n\t\tlong a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt(),d=sc.nextInt();\n\t\tif(a>=0 && c>=0) {\n\t\t\tpw.println(b*d);\n\t\t\treturn;\n\t\t}\n\t\tif(b<=0 && d<=0) {\n\t\t\tpw.println(a*c);\n\t\t\treturn;\n\t\t}\n\t\tlong ans=Long.MIN_VALUE;\n\t\t\n\t\tans=Math.max(ans, a*c);\n\t\tans=Math.max(ans, a*d);\n\t\tans=Math.max(ans, b*c);\n\t\tans=Math.max(ans, b*d);\n\t\tif(a<=0 && b>=0) {\n\t\t\tans=Math.max(ans, 0);\n\t\t}\n\t\tif(c<=0 && d>=0) {\n\t\t\tans=Math.max(ans, 0);\n\t\t}\n\t\tpw.println(ans);\n\t}\n\tpublic static void main(String[] args) throws Exception{\n\t\tsc=new MScanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t\tint tc=1;\n//\t\ttc=sc.nextInt();\n\t\twhile(tc-->0)\n\t\t\tmain();\n\t\tpw.flush();\n\t}\n\tstatic PrintWriter pw;\n\tstatic MScanner sc;\n\tstatic class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n \n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int[] intArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic long[] longArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n \n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n\tstatic void shuffle(int[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*(i+1));\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n\tstatic void shuffle(long[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*(i+1));\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n}",
"Main",
"static PrintWriter pw;",
"pw",
"static MScanner sc;",
"sc",
"static void main() throws Exception{\n\t\tlong a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt(),d=sc.nextInt();\n\t\tif(a>=0 && c>=0) {\n\t\t\tpw.println(b*d);\n\t\t\treturn;\n\t\t}\n\t\tif(b<=0 && d<=0) {\n\t\t\tpw.println(a*c);\n\t\t\treturn;\n\t\t}\n\t\tlong ans=Long.MIN_VALUE;\n\t\t\n\t\tans=Math.max(ans, a*c);\n\t\tans=Math.max(ans, a*d);\n\t\tans=Math.max(ans, b*c);\n\t\tans=Math.max(ans, b*d);\n\t\tif(a<=0 && b>=0) {\n\t\t\tans=Math.max(ans, 0);\n\t\t}\n\t\tif(c<=0 && d>=0) {\n\t\t\tans=Math.max(ans, 0);\n\t\t}\n\t\tpw.println(ans);\n\t}",
"main",
"{\n\t\tlong a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt(),d=sc.nextInt();\n\t\tif(a>=0 && c>=0) {\n\t\t\tpw.println(b*d);\n\t\t\treturn;\n\t\t}\n\t\tif(b<=0 && d<=0) {\n\t\t\tpw.println(a*c);\n\t\t\treturn;\n\t\t}\n\t\tlong ans=Long.MIN_VALUE;\n\t\t\n\t\tans=Math.max(ans, a*c);\n\t\tans=Math.max(ans, a*d);\n\t\tans=Math.max(ans, b*c);\n\t\tans=Math.max(ans, b*d);\n\t\tif(a<=0 && b>=0) {\n\t\t\tans=Math.max(ans, 0);\n\t\t}\n\t\tif(c<=0 && d>=0) {\n\t\t\tans=Math.max(ans, 0);\n\t\t}\n\t\tpw.println(ans);\n\t}",
"long a=sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"b=sc.nextInt()",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"c=sc.nextInt()",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"d=sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(a>=0 && c>=0) {\n\t\t\tpw.println(b*d);\n\t\t\treturn;\n\t\t}",
"a>=0 && c>=0",
"a>=0",
"a",
"0",
"c>=0",
"c",
"0",
"{\n\t\t\tpw.println(b*d);\n\t\t\treturn;\n\t\t}",
"pw.println(b*d)",
"pw.println",
"pw",
"b*d",
"b",
"d",
"return;",
"if(b<=0 && d<=0) {\n\t\t\tpw.println(a*c);\n\t\t\treturn;\n\t\t}",
"b<=0 && d<=0",
"b<=0",
"b",
"0",
"d<=0",
"d",
"0",
"{\n\t\t\tpw.println(a*c);\n\t\t\treturn;\n\t\t}",
"pw.println(a*c)",
"pw.println",
"pw",
"a*c",
"a",
"c",
"return;",
"long ans=Long.MIN_VALUE;",
"ans",
"Long.MIN_VALUE",
"Long",
"Long.MIN_VALUE",
"ans=Math.max(ans, a*c)",
"ans",
"Math.max(ans, a*c)",
"Math.max",
"Math",
"ans",
"a*c",
"a",
"c",
"ans=Math.max(ans, a*d)",
"ans",
"Math.max(ans, a*d)",
"Math.max",
"Math",
"ans",
"a*d",
"a",
"d",
"ans=Math.max(ans, b*c)",
"ans",
"Math.max(ans, b*c)",
"Math.max",
"Math",
"ans",
"b*c",
"b",
"c",
"ans=Math.max(ans, b*d)",
"ans",
"Math.max(ans, b*d)",
"Math.max",
"Math",
"ans",
"b*d",
"b",
"d",
"if(a<=0 && b>=0) {\n\t\t\tans=Math.max(ans, 0);\n\t\t}",
"a<=0 && b>=0",
"a<=0",
"a",
"0",
"b>=0",
"b",
"0",
"{\n\t\t\tans=Math.max(ans, 0);\n\t\t}",
"ans=Math.max(ans, 0)",
"ans",
"Math.max(ans, 0)",
"Math.max",
"Math",
"ans",
"0",
"if(c<=0 && d>=0) {\n\t\t\tans=Math.max(ans, 0);\n\t\t}",
"c<=0 && d>=0",
"c<=0",
"c",
"0",
"d>=0",
"d",
"0",
"{\n\t\t\tans=Math.max(ans, 0);\n\t\t}",
"ans=Math.max(ans, 0)",
"ans",
"Math.max(ans, 0)",
"Math.max",
"Math",
"ans",
"0",
"pw.println(ans)",
"pw.println",
"pw",
"ans",
"public static void main(String[] args) throws Exception{\n\t\tsc=new MScanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t\tint tc=1;\n//\t\ttc=sc.nextInt();\n\t\twhile(tc-->0)\n\t\t\tmain();\n\t\tpw.flush();\n\t}",
"main",
"{\n\t\tsc=new MScanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t\tint tc=1;\n//\t\ttc=sc.nextInt();\n\t\twhile(tc-->0)\n\t\t\tmain();\n\t\tpw.flush();\n\t}",
"sc=new MScanner(System.in)",
"sc",
"new MScanner(System.in)",
"pw = new PrintWriter(System.out)",
"pw",
"new PrintWriter(System.out)",
"int tc=1;",
"tc",
"1",
"while(tc-->0)\n\t\t\tmain();",
"tc-->0",
"tc--",
"tc",
"0",
"main()",
"main",
"pw.flush()",
"pw.flush",
"pw",
"String[] args",
"args",
"static void shuffle(int[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*(i+1));\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}",
"shuffle",
"{\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*(i+1));\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}",
"for(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*(i+1));\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<in.length",
"i",
"in.length",
"in",
"in.length",
"i++",
"i++",
"i",
"{\n\t\t\tint idx=(int)(Math.random()*(i+1));\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}",
"{\n\t\t\tint idx=(int)(Math.random()*(i+1));\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}",
"int idx=(int)(Math.random()*(i+1));",
"idx",
"(int)(Math.random()*(i+1))",
"Math.random()",
"Math.random",
"Math",
"(i+1)",
"i",
"1",
"int tmp=in[i];",
"tmp",
"in[i]",
"in",
"i",
"in[i]=in[idx]",
"in[i]",
"in",
"i",
"in[idx]",
"in",
"idx",
"in[idx]=tmp",
"in[idx]",
"in",
"idx",
"tmp",
"int[]in",
"in",
"static void shuffle(long[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*(i+1));\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}",
"shuffle",
"{\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*(i+1));\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}",
"for(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*(i+1));\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<in.length",
"i",
"in.length",
"in",
"in.length",
"i++",
"i++",
"i",
"{\n\t\t\tint idx=(int)(Math.random()*(i+1));\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}",
"{\n\t\t\tint idx=(int)(Math.random()*(i+1));\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}",
"int idx=(int)(Math.random()*(i+1));",
"idx",
"(int)(Math.random()*(i+1))",
"Math.random()",
"Math.random",
"Math",
"(i+1)",
"i",
"1",
"long tmp=in[i];",
"tmp",
"in[i]",
"in",
"i",
"in[i]=in[idx]",
"in[i]",
"in",
"i",
"in[idx]",
"in",
"idx",
"in[idx]=tmp",
"in[idx]",
"in",
"idx",
"tmp",
"long[]in",
"in",
"static class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n \n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int[] intArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic long[] longArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n \n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}",
"MScanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}",
"MScanner",
"{\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}",
"br = new BufferedReader(new InputStreamReader(system))",
"br",
"new BufferedReader(new InputStreamReader(system))",
"InputStream system",
"system",
"public MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}",
"MScanner",
"{\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}",
"br = new BufferedReader(new FileReader(file))",
"br",
"new BufferedReader(new FileReader(file))",
"String file",
"file",
"public String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"while (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int[] intArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}",
"intArr",
"{\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}",
"int[]in=new int[n];",
"in",
"new int[n]",
"n",
"for(int i=0;i<n;i++)in[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"in[i]=nextInt();",
"in[i]=nextInt()",
"in[i]",
"in",
"i",
"nextInt()",
"nextInt",
"return in;",
"in",
"int n",
"n",
"public long[] longArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}",
"longArr",
"{\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}",
"long[]in=new long[n];",
"in",
"new long[n]",
"n",
"for(int i=0;i<n;i++)in[i]=nextLong();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"in[i]=nextLong();",
"in[i]=nextLong()",
"in[i]",
"in",
"i",
"nextLong()",
"nextLong",
"return in;",
"in",
"int n",
"n",
"public int[] intSortedArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}",
"intSortedArr",
"{\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}",
"int[]in=new int[n];",
"in",
"new int[n]",
"n",
"for(int i=0;i<n;i++)in[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"in[i]=nextInt();",
"in[i]=nextInt()",
"in[i]",
"in",
"i",
"nextInt()",
"nextInt",
"shuffle(in)",
"shuffle",
"in",
"Arrays.sort(in)",
"Arrays.sort",
"Arrays",
"in",
"return in;",
"in",
"int n",
"n",
"public long[] longSortedArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}",
"longSortedArr",
"{\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}",
"long[]in=new long[n];",
"in",
"new long[n]",
"n",
"for(int i=0;i<n;i++)in[i]=nextLong();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"in[i]=nextLong();",
"in[i]=nextLong()",
"in[i]",
"in",
"i",
"nextLong()",
"nextLong",
"shuffle(in)",
"shuffle",
"in",
"Arrays.sort(in)",
"Arrays.sort",
"Arrays",
"in",
"return in;",
"in",
"int n",
"n",
"public Integer[] IntegerArr(int n) throws IOException {\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}",
"IntegerArr",
"{\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}",
"Integer[]in=new Integer[n];",
"in",
"new Integer[n]",
"n",
"for(int i=0;i<n;i++)in[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"in[i]=nextInt();",
"in[i]=nextInt()",
"in[i]",
"in",
"i",
"nextInt()",
"nextInt",
"return in;",
"in",
"int n",
"n",
"public Long[] LongArr(int n) throws IOException {\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}",
"LongArr",
"{\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}",
"Long[]in=new Long[n];",
"in",
"new Long[n]",
"n",
"for(int i=0;i<n;i++)in[i]=nextLong();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"in[i]=nextLong();",
"in[i]=nextLong()",
"in[i]",
"in",
"i",
"nextLong()",
"nextLong",
"return in;",
"in",
"int n",
"n",
"public String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}",
"nextLine",
"{\n\t\t\treturn br.readLine();\n\t\t}",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"nextDouble",
"{\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}",
"nextChar",
"{\n\t\t\treturn next().charAt(0);\n\t\t}",
"return next().charAt(0);",
"next().charAt(0)",
"next().charAt",
"next()",
"next",
"0",
"public long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}",
"ready",
"{\n\t\t\treturn br.ready();\n\t\t}",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}",
"waitForInput",
"{\n\t\t\tThread.sleep(3000);\n\t\t}",
"Thread.sleep(3000)",
"Thread.sleep",
"Thread",
"3000",
"public class Main{\n\tstatic void main() throws Exception{\n\t\tlong a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt(),d=sc.nextInt();\n\t\tif(a>=0 && c>=0) {\n\t\t\tpw.println(b*d);\n\t\t\treturn;\n\t\t}\n\t\tif(b<=0 && d<=0) {\n\t\t\tpw.println(a*c);\n\t\t\treturn;\n\t\t}\n\t\tlong ans=Long.MIN_VALUE;\n\t\t\n\t\tans=Math.max(ans, a*c);\n\t\tans=Math.max(ans, a*d);\n\t\tans=Math.max(ans, b*c);\n\t\tans=Math.max(ans, b*d);\n\t\tif(a<=0 && b>=0) {\n\t\t\tans=Math.max(ans, 0);\n\t\t}\n\t\tif(c<=0 && d>=0) {\n\t\t\tans=Math.max(ans, 0);\n\t\t}\n\t\tpw.println(ans);\n\t}\n\tpublic static void main(String[] args) throws Exception{\n\t\tsc=new MScanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t\tint tc=1;\n//\t\ttc=sc.nextInt();\n\t\twhile(tc-->0)\n\t\t\tmain();\n\t\tpw.flush();\n\t}\n\tstatic PrintWriter pw;\n\tstatic MScanner sc;\n\tstatic class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n \n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int[] intArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic long[] longArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n \n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n\tstatic void shuffle(int[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*(i+1));\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n\tstatic void shuffle(long[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*(i+1));\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n}",
"public class Main{\n\tstatic void main() throws Exception{\n\t\tlong a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt(),d=sc.nextInt();\n\t\tif(a>=0 && c>=0) {\n\t\t\tpw.println(b*d);\n\t\t\treturn;\n\t\t}\n\t\tif(b<=0 && d<=0) {\n\t\t\tpw.println(a*c);\n\t\t\treturn;\n\t\t}\n\t\tlong ans=Long.MIN_VALUE;\n\t\t\n\t\tans=Math.max(ans, a*c);\n\t\tans=Math.max(ans, a*d);\n\t\tans=Math.max(ans, b*c);\n\t\tans=Math.max(ans, b*d);\n\t\tif(a<=0 && b>=0) {\n\t\t\tans=Math.max(ans, 0);\n\t\t}\n\t\tif(c<=0 && d>=0) {\n\t\t\tans=Math.max(ans, 0);\n\t\t}\n\t\tpw.println(ans);\n\t}\n\tpublic static void main(String[] args) throws Exception{\n\t\tsc=new MScanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t\tint tc=1;\n//\t\ttc=sc.nextInt();\n\t\twhile(tc-->0)\n\t\t\tmain();\n\t\tpw.flush();\n\t}\n\tstatic PrintWriter pw;\n\tstatic MScanner sc;\n\tstatic class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n \n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int[] intArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic long[] longArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n \n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n\tstatic void shuffle(int[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*(i+1));\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n\tstatic void shuffle(long[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*(i+1));\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main{
static void main() throws Exception{
long a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt(),d=sc.nextInt();
if(a>=0 && c>=0) {
pw.println(b*d);
return;
}
if(b<=0 && d<=0) {
pw.println(a*c);
return;
}
long ans=Long.MIN_VALUE;
ans=Math.max(ans, a*c);
ans=Math.max(ans, a*d);
ans=Math.max(ans, b*c);
ans=Math.max(ans, b*d);
if(a<=0 && b>=0) {
ans=Math.max(ans, 0);
}
if(c<=0 && d>=0) {
ans=Math.max(ans, 0);
}
pw.println(ans);
}
public static void main(String[] args) throws Exception{
sc=new MScanner(System.in);
pw = new PrintWriter(System.out);
int tc=1;
// tc=sc.nextInt();
while(tc-->0)
main();
pw.flush();
}
static PrintWriter pw;
static MScanner sc;
static class MScanner {
StringTokenizer st;
BufferedReader br;
public MScanner(InputStream system) {
br = new BufferedReader(new InputStreamReader(system));
}
public MScanner(String file) throws Exception {
br = new BufferedReader(new FileReader(file));
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public int[] intArr(int n) throws IOException {
int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();
return in;
}
public long[] longArr(int n) throws IOException {
long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();
return in;
}
public int[] intSortedArr(int n) throws IOException {
int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();
shuffle(in);
Arrays.sort(in);
return in;
}
public long[] longSortedArr(int n) throws IOException {
long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();
shuffle(in);
Arrays.sort(in);
return in;
}
public Integer[] IntegerArr(int n) throws IOException {
Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();
return in;
}
public Long[] LongArr(int n) throws IOException {
Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();
return in;
}
public String nextLine() throws IOException {
return br.readLine();
}
public int nextInt() throws IOException {
return Integer.parseInt(next());
}
public double nextDouble() throws IOException {
return Double.parseDouble(next());
}
public char nextChar() throws IOException {
return next().charAt(0);
}
public long nextLong() throws IOException {
return Long.parseLong(next());
}
public boolean ready() throws IOException {
return br.ready();
}
public void waitForInput() throws InterruptedException {
Thread.sleep(3000);
}
}
static void shuffle(int[]in) {
for(int i=0;i<in.length;i++) {
int idx=(int)(Math.random()*(i+1));
int tmp=in[i];
in[i]=in[idx];
in[idx]=tmp;
}
}
static void shuffle(long[]in) {
for(int i=0;i<in.length;i++) {
int idx=(int)(Math.random()*(i+1));
long tmp=in[i];
in[i]=in[idx];
in[idx]=tmp;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
14,
2,
13,
18,
13,
13,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
52,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
6,
69
],
[
69,
70
]
]
| [
"import java.util.Scanner;\n \nclass Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n long a = (long)scanner.nextInt();\n long b = (long)scanner.nextInt();\n long c = (long)scanner.nextInt();\n long d = (long)scanner.nextInt();\n \n long[] e= new long[]{a*c,a*d,b*c,b*d};\n \n long num = e[0];\n \n for(int i=1;i<4;i++) if(num < e[i]) num = e[i];\n \n System.out.println(num);\n \n }\n \n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n long a = (long)scanner.nextInt();\n long b = (long)scanner.nextInt();\n long c = (long)scanner.nextInt();\n long d = (long)scanner.nextInt();\n \n long[] e= new long[]{a*c,a*d,b*c,b*d};\n \n long num = e[0];\n \n for(int i=1;i<4;i++) if(num < e[i]) num = e[i];\n \n System.out.println(num);\n \n }\n \n}",
"Main",
"public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n long a = (long)scanner.nextInt();\n long b = (long)scanner.nextInt();\n long c = (long)scanner.nextInt();\n long d = (long)scanner.nextInt();\n \n long[] e= new long[]{a*c,a*d,b*c,b*d};\n \n long num = e[0];\n \n for(int i=1;i<4;i++) if(num < e[i]) num = e[i];\n \n System.out.println(num);\n \n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n long a = (long)scanner.nextInt();\n long b = (long)scanner.nextInt();\n long c = (long)scanner.nextInt();\n long d = (long)scanner.nextInt();\n \n long[] e= new long[]{a*c,a*d,b*c,b*d};\n \n long num = e[0];\n \n for(int i=1;i<4;i++) if(num < e[i]) num = e[i];\n \n System.out.println(num);\n \n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"long a = (long)scanner.nextInt();",
"a",
"(long)scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long b = (long)scanner.nextInt();",
"b",
"(long)scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long c = (long)scanner.nextInt();",
"c",
"(long)scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long d = (long)scanner.nextInt();",
"d",
"(long)scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long[] e= new long[]{a*c,a*d,b*c,b*d};",
"e",
"new long[]{a*c,a*d,b*c,b*d}",
"long num = e[0];",
"num",
"e[0]",
"e",
"0",
"for(int i=1;i<4;i++) if(num < e[i]) num = e[i];",
"int i=1;",
"int i=1;",
"i",
"1",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"if(num < e[i]) num = e[i];",
"if(num < e[i]) num = e[i];",
"num < e[i]",
"num",
"e[i]",
"e",
"i",
"num = e[i]",
"num",
"e[i]",
"e",
"i",
"System.out.println(num)",
"System.out.println",
"System.out",
"System",
"System.out",
"num",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
long a = (long)scanner.nextInt();
long b = (long)scanner.nextInt();
long c = (long)scanner.nextInt();
long d = (long)scanner.nextInt();
long[] e= new long[]{a*c,a*d,b*c,b*d};
long num = e[0];
for(int i=1;i<4;i++) if(num < e[i]) num = e[i];
System.out.println(num);
}
} |
[
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,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
18,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
2,
13,
17,
2,
13,
17,
0,
13,
4,
18,
13,
13,
17,
4,
18,
13,
13,
4,
13,
23,
13,
12,
13,
30,
4,
18,
13,
4,
18,
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
],
[
610,
17
],
[
610,
18
],
[
18,
19
],
[
18,
20
],
[
610,
21
],
[
21,
22
],
[
21,
23
],
[
610,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
610,
29
],
[
29,
30
],
[
29,
31
],
[
610,
32
],
[
32,
33
],
[
610,
34
],
[
34,
35
],
[
34,
36
],
[
610,
37
],
[
37,
38
],
[
37,
39
],
[
610,
40
],
[
40,
41
],
[
610,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
44,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
44,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
44,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
44,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
44,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
44,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
44,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
44,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
115,
116
],
[
115,
117
],
[
102,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
120,
124
],
[
44,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
44,
129
],
[
129,
130
],
[
42,
131
],
[
131,
132
],
[
610,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
135,
139
],
[
139,
140
],
[
140,
141
],
[
610,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
150,
155
],
[
144,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
158,
160
],
[
610,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
169,
174
],
[
163,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
177,
179
],
[
610,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
183,
187
],
[
187,
188
],
[
182,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
190,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
610,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
204,
205
],
[
199,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
207,
210
],
[
210,
211
],
[
210,
212
],
[
212,
213
],
[
610,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
217,
221
],
[
221,
222
],
[
216,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
224,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
610,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
238,
239
],
[
233,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
610,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
248,
249
],
[
248,
250
],
[
247,
251
],
[
251,
252
],
[
252,
253
],
[
251,
254
],
[
254,
255
],
[
255,
256
],
[
254,
257
],
[
245,
258
],
[
258,
259
],
[
610,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
262,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
266,
270
],
[
270,
271
],
[
271,
272
],
[
271,
273
],
[
273,
274
],
[
273,
275
],
[
270,
276
],
[
276,
277
],
[
262,
278
],
[
278,
279
],
[
260,
280
],
[
280,
281
],
[
610,
282
],
[
282,
283
],
[
282,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
284,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
291,
293
],
[
289,
294
],
[
294,
295
],
[
294,
296
],
[
289,
297
],
[
297,
298
],
[
298,
299
],
[
289,
300
],
[
300,
301
],
[
301,
302
],
[
302,
303
],
[
302,
304
],
[
301,
305
],
[
282,
306
],
[
306,
307
],
[
610,
308
],
[
308,
309
],
[
308,
310
],
[
310,
311
],
[
311,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
311,
316
],
[
308,
317
],
[
317,
318
],
[
308,
319
],
[
319,
320
],
[
610,
321
],
[
321,
322
],
[
321,
323
],
[
323,
324
],
[
324,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
324,
329
],
[
329,
330
],
[
330,
331
],
[
329,
332
],
[
321,
333
],
[
333,
334
],
[
610,
335
],
[
335,
336
],
[
335,
337
],
[
337,
338
],
[
338,
339
],
[
338,
340
],
[
337,
341
],
[
341,
342
],
[
341,
343
],
[
343,
344
],
[
343,
345
],
[
337,
346
],
[
346,
347
],
[
347,
348
],
[
347,
349
],
[
346,
350
],
[
350,
351
],
[
351,
352
],
[
352,
353
],
[
353,
354
],
[
353,
355
],
[
352,
356
],
[
351,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
359,
363
],
[
350,
364
],
[
364,
365
],
[
364,
366
],
[
366,
367
],
[
367,
368
],
[
367,
369
],
[
366,
370
],
[
350,
371
],
[
371,
372
],
[
371,
373
],
[
373,
374
],
[
373,
375
],
[
337,
376
],
[
376,
377
],
[
377,
378
],
[
377,
379
],
[
335,
380
],
[
380,
381
],
[
335,
382
],
[
382,
383
],
[
335,
384
],
[
384,
385
],
[
610,
386
],
[
386,
387
],
[
386,
388
],
[
388,
389
],
[
389,
390
],
[
390,
391
],
[
390,
392
],
[
389,
393
],
[
393,
394
],
[
388,
395
],
[
395,
396
],
[
396,
397
],
[
396,
398
],
[
395,
399
],
[
399,
400
],
[
388,
401
],
[
401,
402
],
[
401,
403
],
[
388,
404
],
[
404,
405
],
[
388,
406
],
[
406,
407
],
[
388,
408
],
[
408,
409
],
[
408,
410
],
[
410,
411
],
[
411,
412
],
[
411,
413
],
[
410,
414
],
[
410,
415
],
[
388,
416
],
[
416,
417
],
[
416,
418
],
[
418,
419
],
[
419,
420
],
[
419,
421
],
[
418,
422
],
[
418,
423
],
[
388,
424
],
[
424,
425
],
[
424,
426
],
[
388,
427
],
[
427,
428
],
[
428,
429
],
[
429,
430
],
[
429,
431
],
[
428,
432
],
[
427,
433
],
[
433,
434
],
[
434,
435
],
[
434,
436
],
[
436,
437
],
[
436,
438
],
[
433,
439
],
[
439,
440
],
[
439,
441
],
[
433,
442
],
[
442,
443
],
[
442,
444
],
[
388,
445
],
[
445,
446
],
[
386,
447
],
[
447,
448
],
[
386,
449
],
[
449,
450
],
[
610,
451
],
[
451,
452
],
[
451,
453
],
[
453,
454
],
[
451,
455
],
[
455,
456
],
[
451,
457
],
[
457,
458
],
[
457,
459
],
[
459,
460
],
[
460,
461
],
[
461,
462
],
[
461,
463
],
[
460,
464
],
[
459,
465
],
[
465,
466
],
[
466,
467
],
[
466,
468
],
[
465,
469
],
[
457,
470
],
[
470,
471
],
[
457,
472
],
[
472,
473
],
[
451,
474
],
[
474,
475
],
[
474,
476
],
[
476,
477
],
[
477,
478
],
[
477,
479
],
[
479,
480
],
[
479,
481
],
[
481,
482
],
[
481,
483
],
[
476,
484
],
[
484,
485
],
[
484,
486
],
[
486,
487
],
[
486,
488
],
[
488,
489
],
[
488,
490
],
[
476,
491
],
[
491,
492
],
[
492,
493
],
[
493,
494
],
[
493,
495
],
[
492,
496
],
[
451,
497
],
[
497,
498
],
[
497,
499
],
[
499,
500
],
[
500,
501
],
[
500,
502
],
[
499,
503
],
[
503,
504
],
[
504,
505
],
[
505,
506
],
[
505,
507
],
[
507,
508
],
[
507,
509
],
[
504,
510
],
[
510,
511
],
[
510,
512
],
[
512,
513
],
[
512,
514
],
[
497,
515
],
[
515,
516
],
[
451,
517
],
[
517,
518
],
[
517,
519
],
[
519,
520
],
[
520,
521
],
[
524,
522
],
[
522,
523
],
[
523,
524
],
[
524,
525
],
[
524,
526
],
[
523,
527
],
[
522,
528
],
[
524,
529
],
[
610,
530
],
[
530,
531
],
[
530,
532
],
[
532,
533
],
[
530,
534
],
[
534,
535
],
[
530,
536
],
[
536,
537
],
[
536,
538
],
[
538,
539
],
[
539,
540
],
[
540,
541
],
[
540,
542
],
[
539,
543
],
[
538,
544
],
[
544,
545
],
[
545,
546
],
[
545,
547
],
[
544,
548
],
[
536,
549
],
[
549,
550
],
[
536,
551
],
[
551,
552
],
[
530,
553
],
[
553,
554
],
[
553,
555
],
[
555,
556
],
[
556,
557
],
[
556,
558
],
[
558,
559
],
[
558,
560
],
[
560,
561
],
[
560,
562
],
[
555,
563
],
[
563,
564
],
[
563,
565
],
[
565,
566
],
[
565,
567
],
[
567,
568
],
[
567,
569
],
[
555,
570
],
[
570,
571
],
[
571,
572
],
[
572,
573
],
[
572,
574
],
[
571,
575
],
[
530,
576
],
[
576,
577
],
[
576,
578
],
[
578,
579
],
[
579,
580
],
[
579,
581
],
[
578,
582
],
[
582,
583
],
[
583,
584
],
[
584,
585
],
[
584,
586
],
[
586,
587
],
[
586,
588
],
[
583,
589
],
[
589,
590
],
[
589,
591
],
[
591,
592
],
[
591,
593
],
[
576,
594
],
[
594,
595
],
[
530,
596
],
[
596,
597
],
[
596,
598
],
[
598,
599
],
[
599,
600
],
[
603,
601
],
[
601,
602
],
[
602,
603
],
[
603,
604
],
[
603,
605
],
[
602,
606
],
[
601,
607
],
[
603,
608
],
[
0,
609
],
[
609,
610
],
[
609,
611
]
]
| [
"/*****Author: Satyajeet Singh************************************/\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 \n public static void main(String args[]) throws Exception{\n long a=pl();\n long b=pl();\n long c=pl();\n long d=pl();\n long ans=Long.MIN_VALUE;\n ans=Math.max(ans,b*d);\n ans=Math.max(ans,b*c);\n ans=Math.max(ans,a*c);\n ans=Math.max(ans,a*d);\n if(a<=0&&b>=0||c<=0&&d>=0)ans=Math.max(ans,0);\n out.println(ans);\n/****************************************Solution Ends**************************************************/\n clr();\n }\n static void clr(){\n out.flush();\n out.close();\n }\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.00000000000\"); \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 \n public static void main(String args[]) throws Exception{\n long a=pl();\n long b=pl();\n long c=pl();\n long d=pl();\n long ans=Long.MIN_VALUE;\n ans=Math.max(ans,b*d);\n ans=Math.max(ans,b*c);\n ans=Math.max(ans,a*c);\n ans=Math.max(ans,a*d);\n if(a<=0&&b>=0||c<=0&&d>=0)ans=Math.max(ans,0);\n out.println(ans);\n/****************************************Solution Ends**************************************************/\n clr();\n }\n static void clr(){\n out.flush();\n out.close();\n }\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.00000000000\"); \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 \n public static void main(String args[]) throws Exception{\n long a=pl();\n long b=pl();\n long c=pl();\n long d=pl();\n long ans=Long.MIN_VALUE;\n ans=Math.max(ans,b*d);\n ans=Math.max(ans,b*c);\n ans=Math.max(ans,a*c);\n ans=Math.max(ans,a*d);\n if(a<=0&&b>=0||c<=0&&d>=0)ans=Math.max(ans,0);\n out.println(ans);\n/****************************************Solution Ends**************************************************/\n clr();\n }",
"main",
"{\n long a=pl();\n long b=pl();\n long c=pl();\n long d=pl();\n long ans=Long.MIN_VALUE;\n ans=Math.max(ans,b*d);\n ans=Math.max(ans,b*c);\n ans=Math.max(ans,a*c);\n ans=Math.max(ans,a*d);\n if(a<=0&&b>=0||c<=0&&d>=0)ans=Math.max(ans,0);\n out.println(ans);\n/****************************************Solution Ends**************************************************/\n clr();\n }",
"long a=pl();",
"a",
"pl()",
"pl",
"long b=pl();",
"b",
"pl()",
"pl",
"long c=pl();",
"c",
"pl()",
"pl",
"long d=pl();",
"d",
"pl()",
"pl",
"long ans=Long.MIN_VALUE;",
"ans",
"Long.MIN_VALUE",
"Long",
"Long.MIN_VALUE",
"ans=Math.max(ans,b*d)",
"ans",
"Math.max(ans,b*d)",
"Math.max",
"Math",
"ans",
"b*d",
"b",
"d",
"ans=Math.max(ans,b*c)",
"ans",
"Math.max(ans,b*c)",
"Math.max",
"Math",
"ans",
"b*c",
"b",
"c",
"ans=Math.max(ans,a*c)",
"ans",
"Math.max(ans,a*c)",
"Math.max",
"Math",
"ans",
"a*c",
"a",
"c",
"ans=Math.max(ans,a*d)",
"ans",
"Math.max(ans,a*d)",
"Math.max",
"Math",
"ans",
"a*d",
"a",
"d",
"if(a<=0&&b>=0||c<=0&&d>=0)ans=Math.max(ans,0);",
"a<=0&&b>=0||c<=0&&d>=0",
"a<=0&&b>=0",
"a<=0",
"a",
"0",
"b>=0",
"b",
"0",
"c<=0&&d>=0",
"c<=0",
"c",
"0",
"d>=0",
"d",
"0",
"ans=Math.max(ans,0)",
"ans",
"Math.max(ans,0)",
"Math.max",
"Math",
"ans",
"0",
"out.println(ans)",
"out.println",
"out",
"ans",
"clr()",
"clr",
"String args[]",
"args",
"static void clr(){\n out.flush();\n out.close();\n }",
"clr",
"{\n out.flush();\n out.close();\n }",
"out.flush()",
"out.flush",
"out",
"out.close()",
"out.close",
"out",
"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.00000000000\"); \n out.println(ft.format(d));\n }",
"printPrecision",
"{\n DecimalFormat ft = new DecimalFormat(\"0.00000000000\"); \n out.println(ft.format(d));\n }",
"DecimalFormat ft = new DecimalFormat(\"0.00000000000\");",
"ft",
"new DecimalFormat(\"0.00000000000\")",
"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 \n public static void main(String args[]) throws Exception{\n long a=pl();\n long b=pl();\n long c=pl();\n long d=pl();\n long ans=Long.MIN_VALUE;\n ans=Math.max(ans,b*d);\n ans=Math.max(ans,b*c);\n ans=Math.max(ans,a*c);\n ans=Math.max(ans,a*d);\n if(a<=0&&b>=0||c<=0&&d>=0)ans=Math.max(ans,0);\n out.println(ans);\n/****************************************Solution Ends**************************************************/\n clr();\n }\n static void clr(){\n out.flush();\n out.close();\n }\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.00000000000\"); \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 \n public static void main(String args[]) throws Exception{\n long a=pl();\n long b=pl();\n long c=pl();\n long d=pl();\n long ans=Long.MIN_VALUE;\n ans=Math.max(ans,b*d);\n ans=Math.max(ans,b*c);\n ans=Math.max(ans,a*c);\n ans=Math.max(ans,a*d);\n if(a<=0&&b>=0||c<=0&&d>=0)ans=Math.max(ans,0);\n out.println(ans);\n/****************************************Solution Ends**************************************************/\n clr();\n }\n static void clr(){\n out.flush();\n out.close();\n }\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.00000000000\"); \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************************************/
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{
long a=pl();
long b=pl();
long c=pl();
long d=pl();
long ans=Long.MIN_VALUE;
ans=Math.max(ans,b*d);
ans=Math.max(ans,b*c);
ans=Math.max(ans,a*c);
ans=Math.max(ans,a*d);
if(a<=0&&b>=0||c<=0&&d>=0)ans=Math.max(ans,0);
out.println(ans);
/****************************************Solution Ends**************************************************/
clr();
}
static void clr(){
out.flush();
out.close();
}
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.00000000000");
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,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
41,
13,
20,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
4,
18,
13,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
188,
17
],
[
188,
18
],
[
18,
19
],
[
18,
20
],
[
188,
21
],
[
21,
22
],
[
21,
23
],
[
188,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
26,
33
],
[
33,
34
],
[
34,
35
],
[
24,
36
],
[
36,
37
],
[
188,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
51,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
68,
69
],
[
42,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
42,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
42,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
94,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
106,
114
],
[
114,
115
],
[
115,
116
],
[
106,
117
],
[
118,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
121,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
129,
130
],
[
129,
131
],
[
42,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
188,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
136,
140
],
[
140,
141
],
[
136,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
148,
150
],
[
136,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
154,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
164,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
153,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
136,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
182,
185
],
[
185,
186
],
[
0,
187
],
[
187,
188
],
[
187,
189
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\tprivate static final FastIn in = new FastIn();\n\tprivate static final PrintWriter out = new PrintWriter(System.out);\n\t\n\tpublic static void main(String[] args) {\n\t\tSolver sol = new Solver();\n\t\tsol.solve();\n\t\tout.close();\n\t}\n\tprivate static final class Solver {\n\t\tpublic void solve() {\n\t\t\tlong[] a = new long[2];\n\t\t\tlong[] b = new long[2];\n\t\t\tfor (int i = 0; i < 2; ++i) a[i] = in.nextInt();\n\t\t\tfor (int i = 0; i < 2; ++i) b[i] = in.nextInt();\n\t\t\tlong ans = Long.MIN_VALUE;\n\t\t\tfor (int i = 0; i < 2; ++i)\n\t\t\t\tfor (int j = 0; j < 2; ++j) {\n\t\t\t\t\tans = Math.max(ans, a[i] * b[j]);\n\t\t\t\t}\n\t\t\tout.println(ans);\n\t\t}\n\t}\n\tprivate static final class FastIn {\n\t\tprivate BufferedReader br;\n\t\tprivate StringTokenizer st;\n\t\tpublic FastIn() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in), 1 << 20);\n\t\t\tst = null;\n\t\t}\n\t\tpublic String next() {\n\t\t\twhile (st == null || !st.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\tprivate static final FastIn in = new FastIn();\n\tprivate static final PrintWriter out = new PrintWriter(System.out);\n\t\n\tpublic static void main(String[] args) {\n\t\tSolver sol = new Solver();\n\t\tsol.solve();\n\t\tout.close();\n\t}\n\tprivate static final class Solver {\n\t\tpublic void solve() {\n\t\t\tlong[] a = new long[2];\n\t\t\tlong[] b = new long[2];\n\t\t\tfor (int i = 0; i < 2; ++i) a[i] = in.nextInt();\n\t\t\tfor (int i = 0; i < 2; ++i) b[i] = in.nextInt();\n\t\t\tlong ans = Long.MIN_VALUE;\n\t\t\tfor (int i = 0; i < 2; ++i)\n\t\t\t\tfor (int j = 0; j < 2; ++j) {\n\t\t\t\t\tans = Math.max(ans, a[i] * b[j]);\n\t\t\t\t}\n\t\t\tout.println(ans);\n\t\t}\n\t}\n\tprivate static final class FastIn {\n\t\tprivate BufferedReader br;\n\t\tprivate StringTokenizer st;\n\t\tpublic FastIn() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in), 1 << 20);\n\t\t\tst = null;\n\t\t}\n\t\tpublic String next() {\n\t\t\twhile (st == null || !st.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t}\n}",
"Main",
"private static final FastIn in = new FastIn();",
"in",
"new FastIn()",
"private static final PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"public static void main(String[] args) {\n\t\tSolver sol = new Solver();\n\t\tsol.solve();\n\t\tout.close();\n\t}",
"main",
"{\n\t\tSolver sol = new Solver();\n\t\tsol.solve();\n\t\tout.close();\n\t}",
"Solver sol = new Solver();",
"sol",
"new Solver()",
"sol.solve()",
"sol.solve",
"sol",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"private static final class Solver {\n\t\tpublic void solve() {\n\t\t\tlong[] a = new long[2];\n\t\t\tlong[] b = new long[2];\n\t\t\tfor (int i = 0; i < 2; ++i) a[i] = in.nextInt();\n\t\t\tfor (int i = 0; i < 2; ++i) b[i] = in.nextInt();\n\t\t\tlong ans = Long.MIN_VALUE;\n\t\t\tfor (int i = 0; i < 2; ++i)\n\t\t\t\tfor (int j = 0; j < 2; ++j) {\n\t\t\t\t\tans = Math.max(ans, a[i] * b[j]);\n\t\t\t\t}\n\t\t\tout.println(ans);\n\t\t}\n\t}",
"Solver",
"public void solve() {\n\t\t\tlong[] a = new long[2];\n\t\t\tlong[] b = new long[2];\n\t\t\tfor (int i = 0; i < 2; ++i) a[i] = in.nextInt();\n\t\t\tfor (int i = 0; i < 2; ++i) b[i] = in.nextInt();\n\t\t\tlong ans = Long.MIN_VALUE;\n\t\t\tfor (int i = 0; i < 2; ++i)\n\t\t\t\tfor (int j = 0; j < 2; ++j) {\n\t\t\t\t\tans = Math.max(ans, a[i] * b[j]);\n\t\t\t\t}\n\t\t\tout.println(ans);\n\t\t}",
"solve",
"{\n\t\t\tlong[] a = new long[2];\n\t\t\tlong[] b = new long[2];\n\t\t\tfor (int i = 0; i < 2; ++i) a[i] = in.nextInt();\n\t\t\tfor (int i = 0; i < 2; ++i) b[i] = in.nextInt();\n\t\t\tlong ans = Long.MIN_VALUE;\n\t\t\tfor (int i = 0; i < 2; ++i)\n\t\t\t\tfor (int j = 0; j < 2; ++j) {\n\t\t\t\t\tans = Math.max(ans, a[i] * b[j]);\n\t\t\t\t}\n\t\t\tout.println(ans);\n\t\t}",
"long[] a = new long[2];",
"a",
"new long[2]",
"2",
"long[] b = new long[2];",
"b",
"new long[2]",
"2",
"for (int i = 0; i < 2; ++i) a[i] = in.nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 2",
"i",
"2",
"++i",
"++i",
"i",
"a[i] = in.nextInt();",
"a[i] = in.nextInt()",
"a[i]",
"a",
"i",
"in.nextInt()",
"in.nextInt",
"in",
"for (int i = 0; i < 2; ++i) b[i] = in.nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 2",
"i",
"2",
"++i",
"++i",
"i",
"b[i] = in.nextInt();",
"b[i] = in.nextInt()",
"b[i]",
"b",
"i",
"in.nextInt()",
"in.nextInt",
"in",
"long ans = Long.MIN_VALUE;",
"ans",
"Long.MIN_VALUE",
"Long",
"Long.MIN_VALUE",
"for (int i = 0; i < 2; ++i)\n\t\t\t\tfor (int j = 0; j < 2; ++j) {\n\t\t\t\t\tans = Math.max(ans, a[i] * b[j]);\n\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 2",
"i",
"2",
"++i",
"++i",
"i",
"for (int j = 0; j < 2; ++j) {\n\t\t\t\t\tans = Math.max(ans, a[i] * b[j]);\n\t\t\t\t}",
"for (int j = 0; j < 2; ++j) {\n\t\t\t\t\tans = Math.max(ans, a[i] * b[j]);\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 2",
"j",
"2",
"++j",
"++j",
"j",
"{\n\t\t\t\t\tans = Math.max(ans, a[i] * b[j]);\n\t\t\t\t}",
"{\n\t\t\t\t\tans = Math.max(ans, a[i] * b[j]);\n\t\t\t\t}",
"ans = Math.max(ans, a[i] * b[j])",
"ans",
"Math.max(ans, a[i] * b[j])",
"Math.max",
"Math",
"ans",
"a[i] * b[j]",
"a[i]",
"a",
"i",
"b[j]",
"b",
"j",
"out.println(ans)",
"out.println",
"out",
"ans",
"private static final class FastIn {\n\t\tprivate BufferedReader br;\n\t\tprivate StringTokenizer st;\n\t\tpublic FastIn() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in), 1 << 20);\n\t\t\tst = null;\n\t\t}\n\t\tpublic String next() {\n\t\t\twhile (st == null || !st.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t}",
"FastIn",
"private BufferedReader br;",
"br",
"private StringTokenizer st;",
"st",
"public FastIn() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in), 1 << 20);\n\t\t\tst = null;\n\t\t}",
"FastIn",
"{\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in), 1 << 20);\n\t\t\tst = null;\n\t\t}",
"br = new BufferedReader(new InputStreamReader(System.in), 1 << 20)",
"br",
"new BufferedReader(new InputStreamReader(System.in), 1 << 20)",
"st = null",
"st",
"null",
"public String next() {\n\t\t\twhile (st == null || !st.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\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.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"while (st == null || !st.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"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\tthrow new RuntimeException(e);\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\tthrow new RuntimeException(e);\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t\t\t\t\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",
"public int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public class Main {\n\tprivate static final FastIn in = new FastIn();\n\tprivate static final PrintWriter out = new PrintWriter(System.out);\n\t\n\tpublic static void main(String[] args) {\n\t\tSolver sol = new Solver();\n\t\tsol.solve();\n\t\tout.close();\n\t}\n\tprivate static final class Solver {\n\t\tpublic void solve() {\n\t\t\tlong[] a = new long[2];\n\t\t\tlong[] b = new long[2];\n\t\t\tfor (int i = 0; i < 2; ++i) a[i] = in.nextInt();\n\t\t\tfor (int i = 0; i < 2; ++i) b[i] = in.nextInt();\n\t\t\tlong ans = Long.MIN_VALUE;\n\t\t\tfor (int i = 0; i < 2; ++i)\n\t\t\t\tfor (int j = 0; j < 2; ++j) {\n\t\t\t\t\tans = Math.max(ans, a[i] * b[j]);\n\t\t\t\t}\n\t\t\tout.println(ans);\n\t\t}\n\t}\n\tprivate static final class FastIn {\n\t\tprivate BufferedReader br;\n\t\tprivate StringTokenizer st;\n\t\tpublic FastIn() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in), 1 << 20);\n\t\t\tst = null;\n\t\t}\n\t\tpublic String next() {\n\t\t\twhile (st == null || !st.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t}\n}",
"public class Main {\n\tprivate static final FastIn in = new FastIn();\n\tprivate static final PrintWriter out = new PrintWriter(System.out);\n\t\n\tpublic static void main(String[] args) {\n\t\tSolver sol = new Solver();\n\t\tsol.solve();\n\t\tout.close();\n\t}\n\tprivate static final class Solver {\n\t\tpublic void solve() {\n\t\t\tlong[] a = new long[2];\n\t\t\tlong[] b = new long[2];\n\t\t\tfor (int i = 0; i < 2; ++i) a[i] = in.nextInt();\n\t\t\tfor (int i = 0; i < 2; ++i) b[i] = in.nextInt();\n\t\t\tlong ans = Long.MIN_VALUE;\n\t\t\tfor (int i = 0; i < 2; ++i)\n\t\t\t\tfor (int j = 0; j < 2; ++j) {\n\t\t\t\t\tans = Math.max(ans, a[i] * b[j]);\n\t\t\t\t}\n\t\t\tout.println(ans);\n\t\t}\n\t}\n\tprivate static final class FastIn {\n\t\tprivate BufferedReader br;\n\t\tprivate StringTokenizer st;\n\t\tpublic FastIn() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in), 1 << 20);\n\t\t\tst = null;\n\t\t}\n\t\tpublic String next() {\n\t\t\twhile (st == null || !st.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Main {
private static final FastIn in = new FastIn();
private static final PrintWriter out = new PrintWriter(System.out);
public static void main(String[] args) {
Solver sol = new Solver();
sol.solve();
out.close();
}
private static final class Solver {
public void solve() {
long[] a = new long[2];
long[] b = new long[2];
for (int i = 0; i < 2; ++i) a[i] = in.nextInt();
for (int i = 0; i < 2; ++i) b[i] = in.nextInt();
long ans = Long.MIN_VALUE;
for (int i = 0; i < 2; ++i)
for (int j = 0; j < 2; ++j) {
ans = Math.max(ans, a[i] * b[j]);
}
out.println(ans);
}
}
private static final class FastIn {
private BufferedReader br;
private StringTokenizer st;
public FastIn() {
br = new BufferedReader(new InputStreamReader(System.in), 1 << 20);
st = null;
}
public String next() {
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(next());
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
0,
13,
13,
14,
2,
13,
17,
29,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
13,
13,
13,
0,
13,
2,
13,
17,
0,
13,
2,
2,
13,
13,
13,
29,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
2,
18,
13,
17,
18,
13,
17,
4,
18,
13,
2,
18,
13,
17,
18,
13,
17,
4,
18,
13,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
251,
11
],
[
251,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
14,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
31,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
31,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
14,
58
],
[
58,
59
],
[
12,
60
],
[
60,
61
],
[
12,
62
],
[
62,
63
],
[
12,
64
],
[
64,
65
],
[
251,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
68,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
107,
109
],
[
100,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
117,
119
],
[
110,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
127,
129
],
[
120,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
134,
136
],
[
66,
137
],
[
137,
138
],
[
251,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
139,
143
],
[
143,
144
],
[
139,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
139,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
154,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
164,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
153,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
139,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
186,
187
],
[
139,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
192,
195
],
[
195,
196
],
[
139,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
201,
204
],
[
204,
205
],
[
139,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
212,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
208,
225
],
[
225,
226
],
[
251,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
227,
231
],
[
231,
232
],
[
227,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
237,
239
],
[
236,
240
],
[
235,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
241,
245
],
[
233,
246
],
[
246,
247
],
[
233,
248
],
[
248,
249
],
[
0,
250
],
[
250,
251
],
[
250,
252
]
]
| [
"// Born Sinner\n// old but im not that old\n// fuck all you hoes get a grip\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\npublic class Main\n{\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){\n br = new BufferedReader(new InputStreamReader(System.in));\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 int nextInt(){\n return Integer.parseInt(next());\n }\n long nextLong(){\n return Long.parseLong(next());\n }\n double nextDouble(){\n return Double.parseDouble(next());\n }\n String nextLine(){\n String str = \"\";\n try{\n str = br.readLine();\n } catch (Exception e){\n e.printStackTrace();\n }\n return str;\n }\n }\n static int modPower(int x, int y, int mod){\n int res = 1;\n x %= mod;\n if(x==0) return 0;\n while(y>0){\n if(y%2==1){\n res = (res*x)%mod;\n }\n y = y>>1;\n x = (x*x)%mod;\n }\n return res;\n }\n static class pair<T1, T2>{\n T1 first;\n T2 second;\n pair(T1 first, T2 second){\n this.first = first;\n this.second = second;\n }\n }\n \n public static void main (String[] args) throws java.lang.Exception\n {\n FastReader in = new FastReader();\n long[] a = new long[4];\n for(int i = 0; i < 4; i++) a[i]=in.nextLong();\n System.out.println(Math.max(a[0]*a[2], Math.max(a[1]*a[3], Math.max(a[0]*a[3], a[1]*a[2]))));\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main\n{\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){\n br = new BufferedReader(new InputStreamReader(System.in));\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 int nextInt(){\n return Integer.parseInt(next());\n }\n long nextLong(){\n return Long.parseLong(next());\n }\n double nextDouble(){\n return Double.parseDouble(next());\n }\n String nextLine(){\n String str = \"\";\n try{\n str = br.readLine();\n } catch (Exception e){\n e.printStackTrace();\n }\n return str;\n }\n }\n static int modPower(int x, int y, int mod){\n int res = 1;\n x %= mod;\n if(x==0) return 0;\n while(y>0){\n if(y%2==1){\n res = (res*x)%mod;\n }\n y = y>>1;\n x = (x*x)%mod;\n }\n return res;\n }\n static class pair<T1, T2>{\n T1 first;\n T2 second;\n pair(T1 first, T2 second){\n this.first = first;\n this.second = second;\n }\n }\n \n public static void main (String[] args) throws java.lang.Exception\n {\n FastReader in = new FastReader();\n long[] a = new long[4];\n for(int i = 0; i < 4; i++) a[i]=in.nextLong();\n System.out.println(Math.max(a[0]*a[2], Math.max(a[1]*a[3], Math.max(a[0]*a[3], a[1]*a[2]))));\n }\n}",
"Main",
"static int modPower(int x, int y, int mod){\n int res = 1;\n x %= mod;\n if(x==0) return 0;\n while(y>0){\n if(y%2==1){\n res = (res*x)%mod;\n }\n y = y>>1;\n x = (x*x)%mod;\n }\n return res;\n }",
"modPower",
"{\n int res = 1;\n x %= mod;\n if(x==0) return 0;\n while(y>0){\n if(y%2==1){\n res = (res*x)%mod;\n }\n y = y>>1;\n x = (x*x)%mod;\n }\n return res;\n }",
"int res = 1;",
"res",
"1",
"x %= mod",
"x",
"mod",
"if(x==0) return 0;",
"x==0",
"x",
"0",
"return 0;",
"0",
"while(y>0){\n if(y%2==1){\n res = (res*x)%mod;\n }\n y = y>>1;\n x = (x*x)%mod;\n }",
"y>0",
"y",
"0",
"{\n if(y%2==1){\n res = (res*x)%mod;\n }\n y = y>>1;\n x = (x*x)%mod;\n }",
"if(y%2==1){\n res = (res*x)%mod;\n }",
"y%2==1",
"y%2",
"y",
"2",
"1",
"{\n res = (res*x)%mod;\n }",
"res = (res*x)%mod",
"res",
"(res*x)%mod",
"(res*x)",
"res",
"x",
"mod",
"y = y>>1",
"y",
"y>>1",
"y",
"1",
"x = (x*x)%mod",
"x",
"(x*x)%mod",
"(x*x)",
"x",
"x",
"mod",
"return res;",
"res",
"int x",
"x",
"int y",
"y",
"int mod",
"mod",
"public static void main (String[] args) throws java.lang.Exception\n {\n FastReader in = new FastReader();\n long[] a = new long[4];\n for(int i = 0; i < 4; i++) a[i]=in.nextLong();\n System.out.println(Math.max(a[0]*a[2], Math.max(a[1]*a[3], Math.max(a[0]*a[3], a[1]*a[2]))));\n }",
"main",
"{\n FastReader in = new FastReader();\n long[] a = new long[4];\n for(int i = 0; i < 4; i++) a[i]=in.nextLong();\n System.out.println(Math.max(a[0]*a[2], Math.max(a[1]*a[3], Math.max(a[0]*a[3], a[1]*a[2]))));\n }",
"FastReader in = new FastReader();",
"in",
"new FastReader()",
"long[] a = new long[4];",
"a",
"new long[4]",
"4",
"for(int i = 0; i < 4; i++) a[i]=in.nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"a[i]=in.nextLong();",
"a[i]=in.nextLong()",
"a[i]",
"a",
"i",
"in.nextLong()",
"in.nextLong",
"in",
"System.out.println(Math.max(a[0]*a[2], Math.max(a[1]*a[3], Math.max(a[0]*a[3], a[1]*a[2]))))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.max(a[0]*a[2], Math.max(a[1]*a[3], Math.max(a[0]*a[3], a[1]*a[2])))",
"Math.max",
"Math",
"a[0]*a[2]",
"a[0]",
"a",
"0",
"a[2]",
"a",
"2",
"Math.max(a[1]*a[3], Math.max(a[0]*a[3], a[1]*a[2]))",
"Math.max",
"Math",
"a[1]*a[3]",
"a[1]",
"a",
"1",
"a[3]",
"a",
"3",
"Math.max(a[0]*a[3], a[1]*a[2])",
"Math.max",
"Math",
"a[0]*a[3]",
"a[0]",
"a",
"0",
"a[3]",
"a",
"3",
"a[1]*a[2]",
"a[1]",
"a",
"1",
"a[2]",
"a",
"2",
"String[] args",
"args",
"static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){\n br = new BufferedReader(new InputStreamReader(System.in));\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 int nextInt(){\n return Integer.parseInt(next());\n }\n long nextLong(){\n return Long.parseLong(next());\n }\n double nextDouble(){\n return Double.parseDouble(next());\n }\n String nextLine(){\n String str = \"\";\n try{\n str = br.readLine();\n } catch (Exception e){\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader(){\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next(){\n while(st == null || !st.hasMoreElements()){\n try{\n st = new StringTokenizer(br.readLine());\n } catch (IOException e){\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while(st == null || !st.hasMoreElements()){\n try{\n st = new StringTokenizer(br.readLine());\n } catch (IOException e){\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while(st == null || !st.hasMoreElements()){\n try{\n st = new StringTokenizer(br.readLine());\n } catch (IOException e){\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try{\n st = new StringTokenizer(br.readLine());\n } catch (IOException e){\n e.printStackTrace();\n }\n }",
"try{\n st = new StringTokenizer(br.readLine());\n } catch (IOException e){\n e.printStackTrace();\n }",
"catch (IOException e){\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt(){\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong(){\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble(){\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine(){\n String str = \"\";\n try{\n str = br.readLine();\n } catch (Exception e){\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try{\n str = br.readLine();\n } catch (Exception e){\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try{\n str = br.readLine();\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 str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"static class pair<T1, T2>{\n T1 first;\n T2 second;\n pair(T1 first, T2 second){\n this.first = first;\n this.second = second;\n }\n }",
"pair",
"T1 first;",
"first",
"T2 second;",
"second",
"pair(T1 first, T2 second){\n this.first = first;\n this.second = second;\n }",
"pair",
"{\n this.first = first;\n this.second = second;\n }",
"this.first = first",
"this.first",
"this",
"this.first",
"first",
"this.second = second",
"this.second",
"this",
"this.second",
"second",
"T1 first",
"first",
"T2 second",
"second",
"public class Main\n{\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){\n br = new BufferedReader(new InputStreamReader(System.in));\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 int nextInt(){\n return Integer.parseInt(next());\n }\n long nextLong(){\n return Long.parseLong(next());\n }\n double nextDouble(){\n return Double.parseDouble(next());\n }\n String nextLine(){\n String str = \"\";\n try{\n str = br.readLine();\n } catch (Exception e){\n e.printStackTrace();\n }\n return str;\n }\n }\n static int modPower(int x, int y, int mod){\n int res = 1;\n x %= mod;\n if(x==0) return 0;\n while(y>0){\n if(y%2==1){\n res = (res*x)%mod;\n }\n y = y>>1;\n x = (x*x)%mod;\n }\n return res;\n }\n static class pair<T1, T2>{\n T1 first;\n T2 second;\n pair(T1 first, T2 second){\n this.first = first;\n this.second = second;\n }\n }\n \n public static void main (String[] args) throws java.lang.Exception\n {\n FastReader in = new FastReader();\n long[] a = new long[4];\n for(int i = 0; i < 4; i++) a[i]=in.nextLong();\n System.out.println(Math.max(a[0]*a[2], Math.max(a[1]*a[3], Math.max(a[0]*a[3], a[1]*a[2]))));\n }\n}",
"public class Main\n{\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){\n br = new BufferedReader(new InputStreamReader(System.in));\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 int nextInt(){\n return Integer.parseInt(next());\n }\n long nextLong(){\n return Long.parseLong(next());\n }\n double nextDouble(){\n return Double.parseDouble(next());\n }\n String nextLine(){\n String str = \"\";\n try{\n str = br.readLine();\n } catch (Exception e){\n e.printStackTrace();\n }\n return str;\n }\n }\n static int modPower(int x, int y, int mod){\n int res = 1;\n x %= mod;\n if(x==0) return 0;\n while(y>0){\n if(y%2==1){\n res = (res*x)%mod;\n }\n y = y>>1;\n x = (x*x)%mod;\n }\n return res;\n }\n static class pair<T1, T2>{\n T1 first;\n T2 second;\n pair(T1 first, T2 second){\n this.first = first;\n this.second = second;\n }\n }\n \n public static void main (String[] args) throws java.lang.Exception\n {\n FastReader in = new FastReader();\n long[] a = new long[4];\n for(int i = 0; i < 4; i++) a[i]=in.nextLong();\n System.out.println(Math.max(a[0]*a[2], Math.max(a[1]*a[3], Math.max(a[0]*a[3], a[1]*a[2]))));\n }\n}",
"Main"
]
| // Born Sinner
// old but im not that old
// fuck all you hoes get a grip
import java.util.*;
import java.lang.*;
import java.io.*;
public class Main
{
static class FastReader{
BufferedReader br;
StringTokenizer st;
public FastReader(){
br = new BufferedReader(new InputStreamReader(System.in));
}
String next(){
while(st == null || !st.hasMoreElements()){
try{
st = new StringTokenizer(br.readLine());
} catch (IOException e){
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt(){
return Integer.parseInt(next());
}
long nextLong(){
return Long.parseLong(next());
}
double nextDouble(){
return Double.parseDouble(next());
}
String nextLine(){
String str = "";
try{
str = br.readLine();
} catch (Exception e){
e.printStackTrace();
}
return str;
}
}
static int modPower(int x, int y, int mod){
int res = 1;
x %= mod;
if(x==0) return 0;
while(y>0){
if(y%2==1){
res = (res*x)%mod;
}
y = y>>1;
x = (x*x)%mod;
}
return res;
}
static class pair<T1, T2>{
T1 first;
T2 second;
pair(T1 first, T2 second){
this.first = first;
this.second = second;
}
}
public static void main (String[] args) throws java.lang.Exception
{
FastReader in = new FastReader();
long[] a = new long[4];
for(int i = 0; i < 4; i++) a[i]=in.nextLong();
System.out.println(Math.max(a[0]*a[2], Math.max(a[1]*a[3], Math.max(a[0]*a[3], a[1]*a[2]))));
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
61,
5
],
[
61,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
43,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
37,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
52,
53
],
[
52,
54
],
[
49,
55
],
[
55,
56
],
[
55,
57
],
[
6,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
]
| [
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong(); \n\t\tSystem.out.println(Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d)));\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\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong(); \n\t\tSystem.out.println(Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d)));\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong(); \n\t\tSystem.out.println(Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d)));\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong(); \n\t\tSystem.out.println(Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d)));\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"System.out.println(Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d)))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d))",
"Math.max",
"Math",
"Math.max(a*c,a*d)",
"Math.max",
"Math",
"a*c",
"a",
"c",
"a*d",
"a",
"d",
"Math.max(b*c,b*d)",
"Math.max",
"Math",
"b*c",
"b",
"c",
"b*d",
"b",
"d",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong(); \n\t\tSystem.out.println(Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d)));\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong(); \n\t\tSystem.out.println(Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d)));\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
System.out.println(Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d)));
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
20,
4,
18,
20,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
79,
8
],
[
79,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
11,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
44,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
50,
52
],
[
47,
53
],
[
53,
54
],
[
53,
55
],
[
9,
56
],
[
56,
57
],
[
9,
58
],
[
58,
59
],
[
79,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
64,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
71,
75
],
[
60,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
]
| [
"import java.io.PrintWriter;\nimport java.util.Scanner;\n\npublic class Main {\n\n void solve(Scanner in, PrintWriter out) {\n long a = in.nextInt();\n long b = in.nextInt();\n long c = in.nextInt();\n long d = in.nextInt();\n out.println(Math.max(a * c, Math.max(a * d, Math.max(b * c, b * d))));\n }\n\n public static void main(String[] args) {\n try(Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out)) {\n new Main().solve(in, out);\n }\n }\n}",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n void solve(Scanner in, PrintWriter out) {\n long a = in.nextInt();\n long b = in.nextInt();\n long c = in.nextInt();\n long d = in.nextInt();\n out.println(Math.max(a * c, Math.max(a * d, Math.max(b * c, b * d))));\n }\n\n public static void main(String[] args) {\n try(Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out)) {\n new Main().solve(in, out);\n }\n }\n}",
"Main",
"void solve(Scanner in, PrintWriter out) {\n long a = in.nextInt();\n long b = in.nextInt();\n long c = in.nextInt();\n long d = in.nextInt();\n out.println(Math.max(a * c, Math.max(a * d, Math.max(b * c, b * d))));\n }",
"solve",
"{\n long a = in.nextInt();\n long b = in.nextInt();\n long c = in.nextInt();\n long d = in.nextInt();\n out.println(Math.max(a * c, Math.max(a * d, Math.max(b * c, b * d))));\n }",
"long a = in.nextInt();",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"long b = in.nextInt();",
"b",
"in.nextInt()",
"in.nextInt",
"in",
"long c = in.nextInt();",
"c",
"in.nextInt()",
"in.nextInt",
"in",
"long d = in.nextInt();",
"d",
"in.nextInt()",
"in.nextInt",
"in",
"out.println(Math.max(a * c, Math.max(a * d, Math.max(b * c, b * d))))",
"out.println",
"out",
"Math.max(a * c, Math.max(a * d, Math.max(b * c, b * d)))",
"Math.max",
"Math",
"a * c",
"a",
"c",
"Math.max(a * d, Math.max(b * c, b * d))",
"Math.max",
"Math",
"a * d",
"a",
"d",
"Math.max(b * c, b * d)",
"Math.max",
"Math",
"b * c",
"b",
"c",
"b * d",
"b",
"d",
"Scanner in",
"in",
"PrintWriter out",
"out",
"public static void main(String[] args) {\n try(Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out)) {\n new Main().solve(in, out);\n }\n }",
"main",
"{\n try(Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out)) {\n new Main().solve(in, out);\n }\n }",
"try(Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out)) {\n new Main().solve(in, out);\n }",
"{\n new Main().solve(in, out);\n }",
"Scanner in = new Scanner(System.in)",
"Scanner in = new Scanner(System.in)",
"new Scanner(System.in)",
"PrintWriter out = new PrintWriter(System.out)",
"PrintWriter out = new PrintWriter(System.out)",
"new PrintWriter(System.out)",
"new Main().solve(in, out)",
"new Main().solve",
"new Main()",
"in",
"out",
"String[] args",
"args",
"public class Main {\n\n void solve(Scanner in, PrintWriter out) {\n long a = in.nextInt();\n long b = in.nextInt();\n long c = in.nextInt();\n long d = in.nextInt();\n out.println(Math.max(a * c, Math.max(a * d, Math.max(b * c, b * d))));\n }\n\n public static void main(String[] args) {\n try(Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out)) {\n new Main().solve(in, out);\n }\n }\n}",
"public class Main {\n\n void solve(Scanner in, PrintWriter out) {\n long a = in.nextInt();\n long b = in.nextInt();\n long c = in.nextInt();\n long d = in.nextInt();\n out.println(Math.max(a * c, Math.max(a * d, Math.max(b * c, b * d))));\n }\n\n public static void main(String[] args) {\n try(Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out)) {\n new Main().solve(in, out);\n }\n }\n}",
"Main"
]
| import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
void solve(Scanner in, PrintWriter out) {
long a = in.nextInt();
long b = in.nextInt();
long c = in.nextInt();
long d = in.nextInt();
out.println(Math.max(a * c, Math.max(a * d, Math.max(b * c, b * d))));
}
public static void main(String[] args) {
try(Scanner in = new Scanner(System.in);
PrintWriter out = new PrintWriter(System.out)) {
new Main().solve(in, out);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
39,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
]
| [
"import java.util.*;\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n\n long output = (long)a*c;\n output = Math.max(output, (long)a*d);\n output = Math.max(output, (long)b*c);\n output = Math.max(output, (long)b*d);\n \n System.out.println(output);\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 int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n\n long output = (long)a*c;\n output = Math.max(output, (long)a*d);\n output = Math.max(output, (long)b*c);\n output = Math.max(output, (long)b*d);\n \n System.out.println(output);\n \n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n\n long output = (long)a*c;\n output = Math.max(output, (long)a*d);\n output = Math.max(output, (long)b*c);\n output = Math.max(output, (long)b*d);\n \n System.out.println(output);\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n\n long output = (long)a*c;\n output = Math.max(output, (long)a*d);\n output = Math.max(output, (long)b*c);\n output = Math.max(output, (long)b*d);\n \n System.out.println(output);\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long output = (long)a*c;",
"output",
"(long)a*c",
"(long)a",
"c",
"output = Math.max(output, (long)a*d)",
"output",
"Math.max(output, (long)a*d)",
"Math.max",
"Math",
"output",
"(long)a*d",
"(long)a",
"d",
"output = Math.max(output, (long)b*c)",
"output",
"Math.max(output, (long)b*c)",
"Math.max",
"Math",
"output",
"(long)b*c",
"(long)b",
"c",
"output = Math.max(output, (long)b*d)",
"output",
"Math.max(output, (long)b*d)",
"Math.max",
"Math",
"output",
"(long)b*d",
"(long)b",
"d",
"System.out.println(output)",
"System.out.println",
"System.out",
"System",
"System.out",
"output",
"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 int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n\n long output = (long)a*c;\n output = Math.max(output, (long)a*d);\n output = Math.max(output, (long)b*c);\n output = Math.max(output, (long)b*d);\n \n System.out.println(output);\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 int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n\n long output = (long)a*c;\n output = Math.max(output, (long)a*d);\n output = Math.max(output, (long)b*c);\n output = Math.max(output, (long)b*d);\n \n System.out.println(output);\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 b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
long output = (long)a*c;
output = Math.max(output, (long)a*d);
output = Math.max(output, (long)b*c);
output = Math.max(output, (long)b*d);
System.out.println(output);
}
}
|
[
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,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
4,
18,
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
],
[
205,
29
],
[
205,
30
],
[
30,
31
],
[
30,
32
],
[
205,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
35,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
35,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
35,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
35,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
72,
76
],
[
76,
77
],
[
76,
78
],
[
35,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
35,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
33,
92
],
[
92,
93
],
[
33,
94
],
[
94,
95
],
[
205,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
101,
105
],
[
105,
106
],
[
105,
107
],
[
101,
108
],
[
98,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
111,
113
],
[
98,
114
],
[
114,
115
],
[
114,
116
],
[
98,
117
],
[
117,
118
],
[
117,
119
],
[
98,
120
],
[
120,
121
],
[
120,
122
],
[
120,
123
],
[
98,
124
],
[
124,
125
],
[
125,
126
],
[
96,
127
],
[
127,
128
],
[
205,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
129,
133
],
[
133,
134
],
[
129,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
137,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
135,
148
],
[
148,
149
],
[
129,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
153,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
163,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
152,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
129,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
181,
184
],
[
184,
185
],
[
129,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
190,
193
],
[
193,
194
],
[
129,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
199,
202
],
[
202,
203
],
[
0,
204
],
[
204,
205
],
[
204,
206
]
]
| [
"\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 long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n\n long ans = a * c;\n ans = Math.max(ans, a * d);\n ans = Math.max(ans, b * c);\n ans = Math.max(ans, b * d);\n out.println(ans);\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 long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n\n long ans = a * c;\n ans = Math.max(ans, a * d);\n ans = Math.max(ans, b * c);\n ans = Math.max(ans, b * d);\n out.println(ans);\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 long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n\n long ans = a * c;\n ans = Math.max(ans, a * d);\n ans = Math.max(ans, b * c);\n ans = Math.max(ans, b * d);\n out.println(ans);\n }",
"solve",
"{\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n\n long ans = a * c;\n ans = Math.max(ans, a * d);\n ans = Math.max(ans, b * c);\n ans = Math.max(ans, b * d);\n out.println(ans);\n }",
"long a = in.nextLong();",
"a",
"in.nextLong()",
"in.nextLong",
"in",
"long b = in.nextLong();",
"b",
"in.nextLong()",
"in.nextLong",
"in",
"long c = in.nextLong();",
"c",
"in.nextLong()",
"in.nextLong",
"in",
"long d = in.nextLong();",
"d",
"in.nextLong()",
"in.nextLong",
"in",
"long ans = a * c;",
"ans",
"a * c",
"a",
"c",
"ans = Math.max(ans, a * d)",
"ans",
"Math.max(ans, a * d)",
"Math.max",
"Math",
"ans",
"a * d",
"a",
"d",
"ans = Math.max(ans, b * c)",
"ans",
"Math.max(ans, b * c)",
"Math.max",
"Math",
"ans",
"b * c",
"b",
"c",
"ans = Math.max(ans, b * d)",
"ans",
"Math.max(ans, b * d)",
"Math.max",
"Math",
"ans",
"b * d",
"b",
"d",
"out.println(ans)",
"out.println",
"out",
"ans",
"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 long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n\n long ans = a * c;\n ans = Math.max(ans, a * d);\n ans = Math.max(ans, b * c);\n ans = Math.max(ans, b * d);\n out.println(ans);\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 long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n\n long ans = a * c;\n ans = Math.max(ans, a * d);\n ans = Math.max(ans, b * c);\n ans = Math.max(ans, b * d);\n out.println(ans);\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) {
long a = in.nextLong();
long b = in.nextLong();
long c = in.nextLong();
long d = in.nextLong();
long ans = a * c;
ans = Math.max(ans, a * d);
ans = Math.max(ans, b * c);
ans = Math.max(ans, b * d);
out.println(ans);
}
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,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
82,
5
],
[
82,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
8,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
61,
65
],
[
8,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
68,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
6,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\n\t\tlong x1 = a*c;\n\t\tlong x2 = a*d;\n\t\tlong x3 = b*c;\n\t\tlong x4 = b*d;\n\n\t\tlong ans = Math.max(x1,x2);\n\t\tans=Math.max(ans, x3);\n\t\tans=Math.max(ans, x4);\n\t\t\tSystem.out.println(ans);\n\t\t\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\n\t\tlong x1 = a*c;\n\t\tlong x2 = a*d;\n\t\tlong x3 = b*c;\n\t\tlong x4 = b*d;\n\n\t\tlong ans = Math.max(x1,x2);\n\t\tans=Math.max(ans, x3);\n\t\tans=Math.max(ans, x4);\n\t\t\tSystem.out.println(ans);\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\n\t\tlong x1 = a*c;\n\t\tlong x2 = a*d;\n\t\tlong x3 = b*c;\n\t\tlong x4 = b*d;\n\n\t\tlong ans = Math.max(x1,x2);\n\t\tans=Math.max(ans, x3);\n\t\tans=Math.max(ans, x4);\n\t\t\tSystem.out.println(ans);\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\n\t\tlong x1 = a*c;\n\t\tlong x2 = a*d;\n\t\tlong x3 = b*c;\n\t\tlong x4 = b*d;\n\n\t\tlong ans = Math.max(x1,x2);\n\t\tans=Math.max(ans, x3);\n\t\tans=Math.max(ans, x4);\n\t\t\tSystem.out.println(ans);\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long x1 = a*c;",
"x1",
"a*c",
"a",
"c",
"long x2 = a*d;",
"x2",
"a*d",
"a",
"d",
"long x3 = b*c;",
"x3",
"b*c",
"b",
"c",
"long x4 = b*d;",
"x4",
"b*d",
"b",
"d",
"long ans = Math.max(x1,x2);",
"ans",
"Math.max(x1,x2)",
"Math.max",
"Math",
"x1",
"x2",
"ans=Math.max(ans, x3)",
"ans",
"Math.max(ans, x3)",
"Math.max",
"Math",
"ans",
"x3",
"ans=Math.max(ans, x4)",
"ans",
"Math.max(ans, x4)",
"Math.max",
"Math",
"ans",
"x4",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\n\t\tlong x1 = a*c;\n\t\tlong x2 = a*d;\n\t\tlong x3 = b*c;\n\t\tlong x4 = b*d;\n\n\t\tlong ans = Math.max(x1,x2);\n\t\tans=Math.max(ans, x3);\n\t\tans=Math.max(ans, x4);\n\t\t\tSystem.out.println(ans);\n\t\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\n\t\tlong x1 = a*c;\n\t\tlong x2 = a*d;\n\t\tlong x3 = b*c;\n\t\tlong x4 = b*d;\n\n\t\tlong ans = Math.max(x1,x2);\n\t\tans=Math.max(ans, x3);\n\t\tans=Math.max(ans, x4);\n\t\t\tSystem.out.println(ans);\n\t\t\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
long x1 = a*c;
long x2 = a*d;
long x3 = b*c;
long x4 = b*d;
long ans = Math.max(x1,x2);
ans=Math.max(ans, x3);
ans=Math.max(ans, x4);
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
17,
17,
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,
40,
13,
30,
0,
13,
2,
2,
13,
13,
13,
0,
13,
2,
13,
17,
29,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
13,
13,
2,
13,
17,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
20,
2,
17,
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,
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,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
36,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
36,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
36,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
36,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
36,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
36,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
36,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
36,
29,
13,
23,
13,
12,
13,
30,
14,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
29,
17,
29,
17,
23,
13,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
4,
18,
13,
2,
13,
17,
23,
13,
12,
13,
30,
4,
13,
13,
4,
18,
13,
17,
23,
13,
12,
13,
30,
4,
18,
13,
12,
13,
30,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
850,
11
],
[
850,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
850,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
34,
42
],
[
42,
43
],
[
28,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
44,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
19,
57
],
[
57,
58
],
[
17,
59
],
[
59,
60
],
[
17,
61
],
[
61,
62
],
[
850,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
67,
70
],
[
70,
71
],
[
70,
72
],
[
63,
73
],
[
73,
74
],
[
850,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
83,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
86,
89
],
[
89,
90
],
[
89,
91
],
[
75,
92
],
[
92,
93
],
[
75,
94
],
[
94,
95
],
[
850,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
104,
105
],
[
98,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
107,
110
],
[
110,
111
],
[
110,
112
],
[
96,
113
],
[
113,
114
],
[
96,
115
],
[
115,
116
],
[
850,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
119,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
119,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
119,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
119,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
146,
147
],
[
146,
148
],
[
143,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
152,
153
],
[
152,
154
],
[
149,
155
],
[
155,
156
],
[
156,
157
],
[
155,
158
],
[
158,
159
],
[
158,
160
],
[
155,
161
],
[
161,
162
],
[
161,
163
],
[
117,
164
],
[
164,
165
],
[
117,
166
],
[
166,
167
],
[
850,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
174,
175
],
[
174,
176
],
[
170,
177
],
[
177,
178
],
[
177,
179
],
[
170,
180
],
[
180,
181
],
[
181,
182
],
[
180,
183
],
[
180,
184
],
[
170,
185
],
[
185,
186
],
[
186,
187
],
[
170,
188
],
[
188,
189
],
[
189,
190
],
[
168,
191
],
[
191,
192
],
[
850,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
195,
197
],
[
198,
199
],
[
198,
200
],
[
193,
201
],
[
201,
202
],
[
193,
203
],
[
203,
204
],
[
193,
205
],
[
205,
206
],
[
193,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
212,
213
],
[
212,
214
],
[
193,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
222
],
[
222,
223
],
[
217,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
224,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
228,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
235,
236
],
[
234,
237
],
[
228,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
238,
242
],
[
242,
243
],
[
243,
244
],
[
217,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
193,
250
],
[
250,
251
],
[
250,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
252,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
252,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
260,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
252,
268
],
[
268,
269
],
[
268,
270
],
[
252,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
271,
275
],
[
275,
276
],
[
276,
277
],
[
276,
278
],
[
278,
279
],
[
275,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
252,
284
],
[
284,
285
],
[
285,
286
],
[
286,
287
],
[
286,
288
],
[
284,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
292,
294
],
[
291,
295
],
[
295,
296
],
[
295,
297
],
[
290,
298
],
[
298,
299
],
[
299,
300
],
[
299,
301
],
[
298,
302
],
[
302,
303
],
[
302,
304
],
[
304,
305
],
[
304,
306
],
[
298,
307
],
[
307,
308
],
[
307,
309
],
[
309,
310
],
[
290,
311
],
[
311,
312
],
[
252,
313
],
[
313,
314
],
[
314,
315
],
[
314,
316
],
[
193,
317
],
[
317,
318
],
[
317,
319
],
[
319,
320
],
[
320,
321
],
[
320,
322
],
[
319,
323
],
[
323,
324
],
[
323,
325
],
[
325,
326
],
[
319,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
327,
331
],
[
331,
332
],
[
331,
333
],
[
333,
334
],
[
319,
335
],
[
335,
336
],
[
335,
337
],
[
319,
338
],
[
338,
339
],
[
339,
340
],
[
339,
341
],
[
338,
342
],
[
342,
343
],
[
343,
344
],
[
343,
345
],
[
345,
346
],
[
342,
347
],
[
347,
348
],
[
347,
349
],
[
349,
350
],
[
319,
351
],
[
351,
352
],
[
352,
353
],
[
353,
354
],
[
353,
355
],
[
351,
356
],
[
356,
357
],
[
357,
358
],
[
358,
359
],
[
359,
360
],
[
359,
361
],
[
358,
362
],
[
362,
363
],
[
362,
364
],
[
357,
365
],
[
365,
366
],
[
366,
367
],
[
366,
368
],
[
365,
369
],
[
369,
370
],
[
369,
371
],
[
371,
372
],
[
371,
373
],
[
365,
374
],
[
374,
375
],
[
374,
376
],
[
376,
377
],
[
357,
378
],
[
378,
379
],
[
319,
380
],
[
380,
381
],
[
381,
382
],
[
381,
383
],
[
193,
384
],
[
384,
385
],
[
384,
386
],
[
386,
387
],
[
387,
388
],
[
387,
389
],
[
386,
390
],
[
390,
391
],
[
390,
392
],
[
392,
393
],
[
386,
394
],
[
394,
395
],
[
395,
396
],
[
395,
397
],
[
394,
398
],
[
398,
399
],
[
398,
400
],
[
400,
401
],
[
386,
402
],
[
402,
403
],
[
402,
404
],
[
386,
405
],
[
405,
406
],
[
406,
407
],
[
406,
408
],
[
405,
409
],
[
409,
410
],
[
410,
411
],
[
410,
412
],
[
412,
413
],
[
409,
414
],
[
414,
415
],
[
414,
416
],
[
416,
417
],
[
386,
418
],
[
418,
419
],
[
419,
420
],
[
420,
421
],
[
421,
422
],
[
421,
423
],
[
419,
424
],
[
424,
425
],
[
424,
426
],
[
418,
427
],
[
427,
428
],
[
428,
429
],
[
429,
430
],
[
430,
431
],
[
430,
432
],
[
429,
433
],
[
433,
434
],
[
433,
435
],
[
428,
436
],
[
436,
437
],
[
437,
438
],
[
437,
439
],
[
436,
440
],
[
440,
441
],
[
440,
442
],
[
442,
443
],
[
442,
444
],
[
436,
445
],
[
445,
446
],
[
445,
447
],
[
447,
448
],
[
428,
449
],
[
449,
450
],
[
386,
451
],
[
451,
452
],
[
452,
453
],
[
452,
454
],
[
451,
455
],
[
455,
456
],
[
456,
457
],
[
456,
458
],
[
458,
459
],
[
455,
460
],
[
460,
461
],
[
460,
462
],
[
455,
463
],
[
463,
464
],
[
464,
465
],
[
465,
466
],
[
465,
467
],
[
463,
468
],
[
468,
469
],
[
469,
470
],
[
470,
471
],
[
471,
472
],
[
471,
473
],
[
470,
474
],
[
474,
475
],
[
474,
476
],
[
469,
477
],
[
477,
478
],
[
478,
479
],
[
478,
480
],
[
477,
481
],
[
481,
482
],
[
481,
483
],
[
483,
484
],
[
484,
485
],
[
484,
486
],
[
483,
487
],
[
477,
488
],
[
488,
489
],
[
488,
490
],
[
490,
491
],
[
469,
492
],
[
492,
493
],
[
386,
494
],
[
494,
495
],
[
495,
496
],
[
495,
497
],
[
193,
498
],
[
498,
499
],
[
498,
500
],
[
500,
501
],
[
501,
502
],
[
501,
503
],
[
500,
504
],
[
504,
505
],
[
504,
506
],
[
506,
507
],
[
500,
508
],
[
508,
509
],
[
509,
510
],
[
509,
511
],
[
508,
512
],
[
512,
513
],
[
512,
514
],
[
514,
515
],
[
500,
516
],
[
516,
517
],
[
517,
518
],
[
518,
519
],
[
518,
520
],
[
516,
521
],
[
521,
522
],
[
522,
523
],
[
523,
524
],
[
522,
525
],
[
521,
526
],
[
526,
527
],
[
526,
528
],
[
528,
529
],
[
500,
530
],
[
530,
531
],
[
531,
532
],
[
532,
533
],
[
193,
534
],
[
534,
535
],
[
534,
536
],
[
536,
537
],
[
537,
538
],
[
537,
539
],
[
536,
540
],
[
540,
541
],
[
541,
542
],
[
542,
543
],
[
542,
544
],
[
540,
545
],
[
545,
546
],
[
545,
547
],
[
540,
548
],
[
548,
549
],
[
549,
550
],
[
540,
551
],
[
552,
552
],
[
552,
553
],
[
553,
554
],
[
554,
555
],
[
553,
556
],
[
556,
557
],
[
557,
558
],
[
536,
559
],
[
559,
560
],
[
534,
561
],
[
561,
562
],
[
193,
563
],
[
563,
564
],
[
563,
565
],
[
565,
566
],
[
566,
567
],
[
566,
568
],
[
565,
570
],
[
570,
571
],
[
571,
572
],
[
572,
573
],
[
572,
574
],
[
570,
575
],
[
575,
576
],
[
575,
577
],
[
570,
578
],
[
578,
579
],
[
579,
580
],
[
570,
581
],
[
582,
582
],
[
582,
583
],
[
583,
584
],
[
584,
585
],
[
584,
586
],
[
583,
587
],
[
587,
588
],
[
588,
589
],
[
565,
590
],
[
590,
591
],
[
563,
592
],
[
592,
593
],
[
193,
594
],
[
594,
595
],
[
594,
596
],
[
596,
597
],
[
597,
598
],
[
597,
599
],
[
596,
600
],
[
600,
601
],
[
601,
602
],
[
602,
603
],
[
602,
604
],
[
600,
605
],
[
605,
606
],
[
605,
607
],
[
600,
608
],
[
608,
609
],
[
609,
610
],
[
600,
611
],
[
612,
612
],
[
612,
613
],
[
613,
614
],
[
614,
615
],
[
613,
616
],
[
616,
617
],
[
617,
618
],
[
596,
619
],
[
619,
620
],
[
594,
621
],
[
621,
622
],
[
193,
623
],
[
623,
624
],
[
623,
625
],
[
625,
626
],
[
626,
627
],
[
626,
628
],
[
625,
630
],
[
630,
631
],
[
631,
632
],
[
632,
633
],
[
632,
634
],
[
630,
635
],
[
635,
636
],
[
635,
637
],
[
630,
638
],
[
638,
639
],
[
639,
640
],
[
630,
641
],
[
642,
642
],
[
642,
643
],
[
643,
644
],
[
644,
645
],
[
644,
646
],
[
643,
647
],
[
647,
648
],
[
648,
649
],
[
625,
650
],
[
650,
651
],
[
623,
652
],
[
652,
653
],
[
193,
654
],
[
654,
655
],
[
654,
656
],
[
656,
657
],
[
657,
658
],
[
657,
659
],
[
656,
660
],
[
660,
661
],
[
661,
662
],
[
662,
663
],
[
662,
664
],
[
660,
665
],
[
665,
666
],
[
665,
667
],
[
660,
668
],
[
668,
669
],
[
669,
670
],
[
660,
671
],
[
672,
672
],
[
672,
673
],
[
673,
674
],
[
674,
675
],
[
673,
676
],
[
676,
677
],
[
677,
678
],
[
656,
679
],
[
679,
680
],
[
654,
681
],
[
681,
682
],
[
193,
683
],
[
683,
684
],
[
683,
685
],
[
685,
686
],
[
686,
687
],
[
686,
688
],
[
685,
689
],
[
689,
690
],
[
690,
691
],
[
691,
692
],
[
691,
693
],
[
689,
694
],
[
694,
695
],
[
694,
696
],
[
689,
697
],
[
697,
698
],
[
698,
699
],
[
689,
700
],
[
701,
701
],
[
701,
702
],
[
702,
703
],
[
703,
704
],
[
702,
705
],
[
705,
706
],
[
706,
707
],
[
685,
708
],
[
708,
709
],
[
683,
710
],
[
710,
711
],
[
193,
712
],
[
712,
713
],
[
712,
714
],
[
714,
715
],
[
715,
716
],
[
715,
717
],
[
714,
719
],
[
719,
720
],
[
720,
721
],
[
721,
722
],
[
721,
723
],
[
719,
724
],
[
724,
725
],
[
724,
726
],
[
719,
727
],
[
727,
728
],
[
728,
729
],
[
719,
730
],
[
731,
731
],
[
731,
732
],
[
732,
733
],
[
733,
734
],
[
733,
735
],
[
732,
736
],
[
736,
737
],
[
737,
738
],
[
714,
739
],
[
739,
740
],
[
712,
741
],
[
741,
742
],
[
193,
743
],
[
743,
744
],
[
743,
745
],
[
745,
746
],
[
746,
747
],
[
746,
748
],
[
745,
750
],
[
750,
751
],
[
751,
752
],
[
752,
753
],
[
752,
754
],
[
750,
755
],
[
755,
756
],
[
755,
757
],
[
750,
758
],
[
758,
759
],
[
759,
760
],
[
750,
761
],
[
762,
762
],
[
762,
763
],
[
763,
764
],
[
764,
765
],
[
764,
766
],
[
763,
767
],
[
767,
768
],
[
768,
769
],
[
745,
770
],
[
770,
771
],
[
743,
772
],
[
772,
773
],
[
193,
774
],
[
774,
775
],
[
774,
776
],
[
776,
777
],
[
777,
778
],
[
781,
779
],
[
791,
780
],
[
788,
781
],
[
781,
782
],
[
782,
783
],
[
782,
784
],
[
781,
785
],
[
785,
786
],
[
785,
787
],
[
788,
788
],
[
788,
789
],
[
788,
790
],
[
791,
791
],
[
791,
792
],
[
791,
793
],
[
781,
794
],
[
794,
795
],
[
794,
796
],
[
796,
797
],
[
777,
798
],
[
798,
799
],
[
776,
800
],
[
800,
801
],
[
774,
802
],
[
802,
803
],
[
850,
804
],
[
804,
805
],
[
804,
806
],
[
806,
807
],
[
804,
808
],
[
808,
809
],
[
808,
810
],
[
810,
811
],
[
811,
812
],
[
811,
813
],
[
804,
814
],
[
814,
815
],
[
814,
816
],
[
816,
817
],
[
817,
818
],
[
818,
819
],
[
817,
820
],
[
820,
821
],
[
820,
822
],
[
814,
823
],
[
823,
824
],
[
804,
825
],
[
825,
826
],
[
825,
827
],
[
827,
828
],
[
828,
829
],
[
828,
830
],
[
827,
831
],
[
831,
832
],
[
832,
833
],
[
831,
834
],
[
825,
835
],
[
835,
836
],
[
804,
837
],
[
837,
838
],
[
837,
839
],
[
839,
840
],
[
840,
841
],
[
841,
842
],
[
804,
843
],
[
843,
844
],
[
843,
845
],
[
845,
846
],
[
846,
847
],
[
847,
848
],
[
0,
849
],
[
849,
850
],
[
849,
851
]
]
| [
"\n\n/*\n AUTH -> krishna-3249\n DATE -> 9/13/20\n TIME -> 5:35 PM\n*/\n\n/*\n Simple can be harder than complex.\n Body, mind and spirit.\n Strive for progress, not perfection.\n*/\n\nimport java.lang.*;\nimport java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n private static final long MOD = 1_000_000_000 + 7;\n\n private long power(long base, long exponent) {\n long res = 1;\n while (exponent > 0) {\n if ((exponent & 1) == 1) {\n res = (res * base) % MOD;\n exponent--;\n } else {\n base = (base * base) % MOD;\n exponent = exponent >> 1;\n }\n }\n return res;\n }\n\n private long inverseMod(long number) {\n return power(number, MOD - 2);\n }\n\n private int gcd(int a, int b) {\n if (b == 0) {\n return a;\n }\n return gcd(b, a % b);\n }\n\n private long gcd(long a, long b) {\n if (b == 0) {\n return a;\n }\n return gcd(b, a % b);\n }\n\n public void solve(Read input, Write output) throws Exception {\n long a = input.readLong();\n long b = input.readLong();\n long c = input.readLong();\n long d = input.readLong();\n output.printLine(Math.max(c*b, Math.max(a*d,Math.max(a*c, b*d))));\n }\n\n public static void main(String[] args) throws Exception {\n Read input = new Read();\n Write output = new Write();\n Main D = new Main();\n D.solve(input, output);\n output.flush();\n output.close();\n }\n\n // java fast io reader and writer\n // taken from various sources and customized\n\n static class Read {\n\n private byte[] buffer = new byte[10 * 1024];\n private int index;\n private InputStream input_stream;\n private int total;\n\n public Read() {\n input_stream = System.in;\n }\n\n public int read() throws IOException {\n if (total < 0)\n throw new InputMismatchException();\n if (index >= total) {\n index = 0;\n total = input_stream.read(buffer);\n if (total <= 0)\n return -1;\n }\n return buffer[index++];\n }\n\n public long readLong() throws IOException {\n long number = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n long neg = 1l;\n if (n == '-') {\n neg = -1l;\n n = read();\n }\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n number *= 10l;\n number += (long) (n - '0');\n n = read();\n } else throw new InputMismatchException();\n }\n return neg * number;\n }\n\n public int readInt() throws IOException {\n int integer = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n int neg = 1;\n if (n == '-') {\n neg = -1;\n n = read();\n }\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n integer *= 10;\n integer += n - '0';\n n = read();\n } else throw new InputMismatchException();\n }\n return neg * integer;\n }\n\n public double readDouble() throws IOException {\n double doub = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n int neg = 1;\n if (n == '-') {\n neg = -1;\n n = read();\n }\n while (!isWhiteSpace(n) && n != '.') {\n if (n >= '0' && n <= '9') {\n doub *= 10;\n doub += n - '0';\n n = read();\n } else throw new InputMismatchException();\n }\n\n if (n == '.') {\n n = read();\n double temp = 1;\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n temp /= 10;\n doub += (n - '0') * temp;\n n = read();\n } else throw new InputMismatchException();\n }\n }\n return doub * neg;\n }\n\n public String readString() throws IOException {\n StringBuilder sb = new StringBuilder();\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n while (!isWhiteSpace(n)) {\n sb.append((char) n);\n n = read();\n }\n return sb.toString();\n }\n\n public List<Double> readDoubleList(int size) throws IOException {\n List<Double> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readDouble());\n }\n return res;\n }\n\n public double[] readDoubleArray(int size) throws IOException {\n double[] res = new double[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readDouble();\n }\n return res;\n }\n\n public List<String> readStringList(int size) throws IOException {\n List<String> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readString());\n }\n return res;\n }\n\n public String[] readStringArray(int size) throws IOException {\n String[] res = new String[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readString();\n }\n return res;\n }\n\n public List<Integer> readIntList(int size) throws IOException {\n List<Integer> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readInt());\n }\n return res;\n }\n\n public List<Long> readLongList(int size) throws IOException {\n List<Long> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readLong());\n }\n return res;\n }\n\n public int[] readIntArray(int size) throws IOException {\n int[] res = new int[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readInt();\n }\n return res;\n }\n\n public long[] readLongArray(int size) throws IOException {\n long[] res = new long[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readLong();\n }\n return res;\n }\n\n private boolean isWhiteSpace(int n) {\n if (n == ' ' || n == '\\n' || n == '\\r' || n == '\\t' || n == -1)\n return true;\n return false;\n }\n }\n\n static class Write {\n\n private final BufferedWriter bw;\n\n public Write() {\n bw = new BufferedWriter(new OutputStreamWriter(System.out));\n }\n\n public void print(Object str) throws IOException {\n bw.append(str + \"\");\n }\n\n public void printLine(Object str) throws IOException {\n print(str);\n bw.append(\"\\n\");\n }\n\n public void close() throws IOException {\n bw.close();\n }\n\n public void flush() throws IOException {\n bw.flush();\n }\n }\n}",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n private static final long MOD = 1_000_000_000 + 7;\n\n private long power(long base, long exponent) {\n long res = 1;\n while (exponent > 0) {\n if ((exponent & 1) == 1) {\n res = (res * base) % MOD;\n exponent--;\n } else {\n base = (base * base) % MOD;\n exponent = exponent >> 1;\n }\n }\n return res;\n }\n\n private long inverseMod(long number) {\n return power(number, MOD - 2);\n }\n\n private int gcd(int a, int b) {\n if (b == 0) {\n return a;\n }\n return gcd(b, a % b);\n }\n\n private long gcd(long a, long b) {\n if (b == 0) {\n return a;\n }\n return gcd(b, a % b);\n }\n\n public void solve(Read input, Write output) throws Exception {\n long a = input.readLong();\n long b = input.readLong();\n long c = input.readLong();\n long d = input.readLong();\n output.printLine(Math.max(c*b, Math.max(a*d,Math.max(a*c, b*d))));\n }\n\n public static void main(String[] args) throws Exception {\n Read input = new Read();\n Write output = new Write();\n Main D = new Main();\n D.solve(input, output);\n output.flush();\n output.close();\n }\n\n // java fast io reader and writer\n // taken from various sources and customized\n\n static class Read {\n\n private byte[] buffer = new byte[10 * 1024];\n private int index;\n private InputStream input_stream;\n private int total;\n\n public Read() {\n input_stream = System.in;\n }\n\n public int read() throws IOException {\n if (total < 0)\n throw new InputMismatchException();\n if (index >= total) {\n index = 0;\n total = input_stream.read(buffer);\n if (total <= 0)\n return -1;\n }\n return buffer[index++];\n }\n\n public long readLong() throws IOException {\n long number = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n long neg = 1l;\n if (n == '-') {\n neg = -1l;\n n = read();\n }\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n number *= 10l;\n number += (long) (n - '0');\n n = read();\n } else throw new InputMismatchException();\n }\n return neg * number;\n }\n\n public int readInt() throws IOException {\n int integer = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n int neg = 1;\n if (n == '-') {\n neg = -1;\n n = read();\n }\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n integer *= 10;\n integer += n - '0';\n n = read();\n } else throw new InputMismatchException();\n }\n return neg * integer;\n }\n\n public double readDouble() throws IOException {\n double doub = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n int neg = 1;\n if (n == '-') {\n neg = -1;\n n = read();\n }\n while (!isWhiteSpace(n) && n != '.') {\n if (n >= '0' && n <= '9') {\n doub *= 10;\n doub += n - '0';\n n = read();\n } else throw new InputMismatchException();\n }\n\n if (n == '.') {\n n = read();\n double temp = 1;\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n temp /= 10;\n doub += (n - '0') * temp;\n n = read();\n } else throw new InputMismatchException();\n }\n }\n return doub * neg;\n }\n\n public String readString() throws IOException {\n StringBuilder sb = new StringBuilder();\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n while (!isWhiteSpace(n)) {\n sb.append((char) n);\n n = read();\n }\n return sb.toString();\n }\n\n public List<Double> readDoubleList(int size) throws IOException {\n List<Double> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readDouble());\n }\n return res;\n }\n\n public double[] readDoubleArray(int size) throws IOException {\n double[] res = new double[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readDouble();\n }\n return res;\n }\n\n public List<String> readStringList(int size) throws IOException {\n List<String> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readString());\n }\n return res;\n }\n\n public String[] readStringArray(int size) throws IOException {\n String[] res = new String[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readString();\n }\n return res;\n }\n\n public List<Integer> readIntList(int size) throws IOException {\n List<Integer> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readInt());\n }\n return res;\n }\n\n public List<Long> readLongList(int size) throws IOException {\n List<Long> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readLong());\n }\n return res;\n }\n\n public int[] readIntArray(int size) throws IOException {\n int[] res = new int[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readInt();\n }\n return res;\n }\n\n public long[] readLongArray(int size) throws IOException {\n long[] res = new long[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readLong();\n }\n return res;\n }\n\n private boolean isWhiteSpace(int n) {\n if (n == ' ' || n == '\\n' || n == '\\r' || n == '\\t' || n == -1)\n return true;\n return false;\n }\n }\n\n static class Write {\n\n private final BufferedWriter bw;\n\n public Write() {\n bw = new BufferedWriter(new OutputStreamWriter(System.out));\n }\n\n public void print(Object str) throws IOException {\n bw.append(str + \"\");\n }\n\n public void printLine(Object str) throws IOException {\n print(str);\n bw.append(\"\\n\");\n }\n\n public void close() throws IOException {\n bw.close();\n }\n\n public void flush() throws IOException {\n bw.flush();\n }\n }\n}",
"Main",
"private static final long MOD = 1_000_000_000 + 7;",
"MOD",
"1_000_000_000 + 7",
"1_000_000_000",
"7",
"private long power(long base, long exponent) {\n long res = 1;\n while (exponent > 0) {\n if ((exponent & 1) == 1) {\n res = (res * base) % MOD;\n exponent--;\n } else {\n base = (base * base) % MOD;\n exponent = exponent >> 1;\n }\n }\n return res;\n }",
"power",
"{\n long res = 1;\n while (exponent > 0) {\n if ((exponent & 1) == 1) {\n res = (res * base) % MOD;\n exponent--;\n } else {\n base = (base * base) % MOD;\n exponent = exponent >> 1;\n }\n }\n return res;\n }",
"long res = 1;",
"res",
"1",
"while (exponent > 0) {\n if ((exponent & 1) == 1) {\n res = (res * base) % MOD;\n exponent--;\n } else {\n base = (base * base) % MOD;\n exponent = exponent >> 1;\n }\n }",
"exponent > 0",
"exponent",
"0",
"{\n if ((exponent & 1) == 1) {\n res = (res * base) % MOD;\n exponent--;\n } else {\n base = (base * base) % MOD;\n exponent = exponent >> 1;\n }\n }",
"if ((exponent & 1) == 1) {\n res = (res * base) % MOD;\n exponent--;\n } else {\n base = (base * base) % MOD;\n exponent = exponent >> 1;\n }",
"(exponent & 1) == 1",
"(exponent & 1)",
"exponent",
"1",
"1",
"{\n res = (res * base) % MOD;\n exponent--;\n }",
"res = (res * base) % MOD",
"res",
"(res * base) % MOD",
"(res * base)",
"res",
"base",
"MOD",
"exponent--",
"exponent",
"{\n base = (base * base) % MOD;\n exponent = exponent >> 1;\n }",
"base = (base * base) % MOD",
"base",
"(base * base) % MOD",
"(base * base)",
"base",
"base",
"MOD",
"exponent = exponent >> 1",
"exponent",
"exponent >> 1",
"exponent",
"1",
"return res;",
"res",
"long base",
"base",
"long exponent",
"exponent",
"private long inverseMod(long number) {\n return power(number, MOD - 2);\n }",
"inverseMod",
"{\n return power(number, MOD - 2);\n }",
"return power(number, MOD - 2);",
"power(number, MOD - 2)",
"power",
"number",
"MOD - 2",
"MOD",
"2",
"long number",
"number",
"private int gcd(int a, int b) {\n if (b == 0) {\n return a;\n }\n return gcd(b, a % b);\n }",
"gcd",
"{\n if (b == 0) {\n return a;\n }\n return gcd(b, a % b);\n }",
"if (b == 0) {\n return a;\n }",
"b == 0",
"b",
"0",
"{\n return a;\n }",
"return a;",
"a",
"return gcd(b, a % b);",
"gcd(b, a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"private long gcd(long a, long b) {\n if (b == 0) {\n return a;\n }\n return gcd(b, a % b);\n }",
"gcd",
"{\n if (b == 0) {\n return a;\n }\n return gcd(b, a % b);\n }",
"if (b == 0) {\n return a;\n }",
"b == 0",
"b",
"0",
"{\n return a;\n }",
"return a;",
"a",
"return gcd(b, a % b);",
"gcd(b, a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"long a",
"a",
"long b",
"b",
"public void solve(Read input, Write output) throws Exception {\n long a = input.readLong();\n long b = input.readLong();\n long c = input.readLong();\n long d = input.readLong();\n output.printLine(Math.max(c*b, Math.max(a*d,Math.max(a*c, b*d))));\n }",
"solve",
"{\n long a = input.readLong();\n long b = input.readLong();\n long c = input.readLong();\n long d = input.readLong();\n output.printLine(Math.max(c*b, Math.max(a*d,Math.max(a*c, b*d))));\n }",
"long a = input.readLong();",
"a",
"input.readLong()",
"input.readLong",
"input",
"long b = input.readLong();",
"b",
"input.readLong()",
"input.readLong",
"input",
"long c = input.readLong();",
"c",
"input.readLong()",
"input.readLong",
"input",
"long d = input.readLong();",
"d",
"input.readLong()",
"input.readLong",
"input",
"output.printLine(Math.max(c*b, Math.max(a*d,Math.max(a*c, b*d))))",
"output.printLine",
"output",
"Math.max(c*b, Math.max(a*d,Math.max(a*c, b*d)))",
"Math.max",
"Math",
"c*b",
"c",
"b",
"Math.max(a*d,Math.max(a*c, b*d))",
"Math.max",
"Math",
"a*d",
"a",
"d",
"Math.max(a*c, b*d)",
"Math.max",
"Math",
"a*c",
"a",
"c",
"b*d",
"b",
"d",
"Read input",
"input",
"Write output",
"output",
"public static void main(String[] args) throws Exception {\n Read input = new Read();\n Write output = new Write();\n Main D = new Main();\n D.solve(input, output);\n output.flush();\n output.close();\n }",
"main",
"{\n Read input = new Read();\n Write output = new Write();\n Main D = new Main();\n D.solve(input, output);\n output.flush();\n output.close();\n }",
"Read input = new Read();",
"input",
"new Read()",
"Write output = new Write();",
"output",
"new Write()",
"Main D = new Main();",
"D",
"new Main()",
"D.solve(input, output)",
"D.solve",
"D",
"input",
"output",
"output.flush()",
"output.flush",
"output",
"output.close()",
"output.close",
"output",
"String[] args",
"args",
"static class Read {\n\n private byte[] buffer = new byte[10 * 1024];\n private int index;\n private InputStream input_stream;\n private int total;\n\n public Read() {\n input_stream = System.in;\n }\n\n public int read() throws IOException {\n if (total < 0)\n throw new InputMismatchException();\n if (index >= total) {\n index = 0;\n total = input_stream.read(buffer);\n if (total <= 0)\n return -1;\n }\n return buffer[index++];\n }\n\n public long readLong() throws IOException {\n long number = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n long neg = 1l;\n if (n == '-') {\n neg = -1l;\n n = read();\n }\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n number *= 10l;\n number += (long) (n - '0');\n n = read();\n } else throw new InputMismatchException();\n }\n return neg * number;\n }\n\n public int readInt() throws IOException {\n int integer = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n int neg = 1;\n if (n == '-') {\n neg = -1;\n n = read();\n }\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n integer *= 10;\n integer += n - '0';\n n = read();\n } else throw new InputMismatchException();\n }\n return neg * integer;\n }\n\n public double readDouble() throws IOException {\n double doub = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n int neg = 1;\n if (n == '-') {\n neg = -1;\n n = read();\n }\n while (!isWhiteSpace(n) && n != '.') {\n if (n >= '0' && n <= '9') {\n doub *= 10;\n doub += n - '0';\n n = read();\n } else throw new InputMismatchException();\n }\n\n if (n == '.') {\n n = read();\n double temp = 1;\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n temp /= 10;\n doub += (n - '0') * temp;\n n = read();\n } else throw new InputMismatchException();\n }\n }\n return doub * neg;\n }\n\n public String readString() throws IOException {\n StringBuilder sb = new StringBuilder();\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n while (!isWhiteSpace(n)) {\n sb.append((char) n);\n n = read();\n }\n return sb.toString();\n }\n\n public List<Double> readDoubleList(int size) throws IOException {\n List<Double> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readDouble());\n }\n return res;\n }\n\n public double[] readDoubleArray(int size) throws IOException {\n double[] res = new double[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readDouble();\n }\n return res;\n }\n\n public List<String> readStringList(int size) throws IOException {\n List<String> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readString());\n }\n return res;\n }\n\n public String[] readStringArray(int size) throws IOException {\n String[] res = new String[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readString();\n }\n return res;\n }\n\n public List<Integer> readIntList(int size) throws IOException {\n List<Integer> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readInt());\n }\n return res;\n }\n\n public List<Long> readLongList(int size) throws IOException {\n List<Long> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readLong());\n }\n return res;\n }\n\n public int[] readIntArray(int size) throws IOException {\n int[] res = new int[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readInt();\n }\n return res;\n }\n\n public long[] readLongArray(int size) throws IOException {\n long[] res = new long[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readLong();\n }\n return res;\n }\n\n private boolean isWhiteSpace(int n) {\n if (n == ' ' || n == '\\n' || n == '\\r' || n == '\\t' || n == -1)\n return true;\n return false;\n }\n }",
"Read",
"private byte[] buffer = new byte[10 * 1024];",
"buffer",
"new byte[10 * 1024]",
"10 * 1024",
"10",
"1024",
"private int index;",
"index",
"private InputStream input_stream;",
"input_stream",
"private int total;",
"total",
"public Read() {\n input_stream = System.in;\n }",
"Read",
"{\n input_stream = System.in;\n }",
"input_stream = System.in",
"input_stream",
"System.in",
"System",
"System.in",
"public int read() throws IOException {\n if (total < 0)\n throw new InputMismatchException();\n if (index >= total) {\n index = 0;\n total = input_stream.read(buffer);\n if (total <= 0)\n return -1;\n }\n return buffer[index++];\n }",
"read",
"{\n if (total < 0)\n throw new InputMismatchException();\n if (index >= total) {\n index = 0;\n total = input_stream.read(buffer);\n if (total <= 0)\n return -1;\n }\n return buffer[index++];\n }",
"if (total < 0)\n throw new InputMismatchException();",
"total < 0",
"total",
"0",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (index >= total) {\n index = 0;\n total = input_stream.read(buffer);\n if (total <= 0)\n return -1;\n }",
"index >= total",
"index",
"total",
"{\n index = 0;\n total = input_stream.read(buffer);\n if (total <= 0)\n return -1;\n }",
"index = 0",
"index",
"0",
"total = input_stream.read(buffer)",
"total",
"input_stream.read(buffer)",
"input_stream.read",
"input_stream",
"buffer",
"if (total <= 0)\n return -1;",
"total <= 0",
"total",
"0",
"return -1;",
"-1",
"1",
"return buffer[index++];",
"buffer[index++]",
"buffer",
"index++",
"index",
"public long readLong() throws IOException {\n long number = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n long neg = 1l;\n if (n == '-') {\n neg = -1l;\n n = read();\n }\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n number *= 10l;\n number += (long) (n - '0');\n n = read();\n } else throw new InputMismatchException();\n }\n return neg * number;\n }",
"readLong",
"{\n long number = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n long neg = 1l;\n if (n == '-') {\n neg = -1l;\n n = read();\n }\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n number *= 10l;\n number += (long) (n - '0');\n n = read();\n } else throw new InputMismatchException();\n }\n return neg * number;\n }",
"long number = 0;",
"number",
"0",
"int n = read();",
"n",
"read()",
"read",
"while (isWhiteSpace(n))\n n = read();",
"isWhiteSpace(n)",
"isWhiteSpace",
"n",
"n = read()",
"n",
"read()",
"read",
"long neg = 1l;",
"neg",
"1l",
"if (n == '-') {\n neg = -1l;\n n = read();\n }",
"n == '-'",
"n",
"'-'",
"{\n neg = -1l;\n n = read();\n }",
"neg = -1l",
"neg",
"-1l",
"1l",
"n = read()",
"n",
"read()",
"read",
"while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n number *= 10l;\n number += (long) (n - '0');\n n = read();\n } else throw new InputMismatchException();\n }",
"!isWhiteSpace(n)",
"isWhiteSpace(n)",
"isWhiteSpace",
"n",
"{\n if (n >= '0' && n <= '9') {\n number *= 10l;\n number += (long) (n - '0');\n n = read();\n } else throw new InputMismatchException();\n }",
"if (n >= '0' && n <= '9') {\n number *= 10l;\n number += (long) (n - '0');\n n = read();\n } else throw new InputMismatchException();",
"n >= '0' && n <= '9'",
"n >= '0'",
"n",
"'0'",
"n <= '9'",
"n",
"'9'",
"{\n number *= 10l;\n number += (long) (n - '0');\n n = read();\n }",
"number *= 10l",
"number",
"10l",
"number += (long) (n - '0')",
"number",
"(long) (n - '0')",
"n",
"'0'",
"n = read()",
"n",
"read()",
"read",
"throw new InputMismatchException();",
"new InputMismatchException()",
"return neg * number;",
"neg * number",
"neg",
"number",
"public int readInt() throws IOException {\n int integer = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n int neg = 1;\n if (n == '-') {\n neg = -1;\n n = read();\n }\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n integer *= 10;\n integer += n - '0';\n n = read();\n } else throw new InputMismatchException();\n }\n return neg * integer;\n }",
"readInt",
"{\n int integer = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n int neg = 1;\n if (n == '-') {\n neg = -1;\n n = read();\n }\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n integer *= 10;\n integer += n - '0';\n n = read();\n } else throw new InputMismatchException();\n }\n return neg * integer;\n }",
"int integer = 0;",
"integer",
"0",
"int n = read();",
"n",
"read()",
"read",
"while (isWhiteSpace(n))\n n = read();",
"isWhiteSpace(n)",
"isWhiteSpace",
"n",
"n = read()",
"n",
"read()",
"read",
"int neg = 1;",
"neg",
"1",
"if (n == '-') {\n neg = -1;\n n = read();\n }",
"n == '-'",
"n",
"'-'",
"{\n neg = -1;\n n = read();\n }",
"neg = -1",
"neg",
"-1",
"1",
"n = read()",
"n",
"read()",
"read",
"while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n integer *= 10;\n integer += n - '0';\n n = read();\n } else throw new InputMismatchException();\n }",
"!isWhiteSpace(n)",
"isWhiteSpace(n)",
"isWhiteSpace",
"n",
"{\n if (n >= '0' && n <= '9') {\n integer *= 10;\n integer += n - '0';\n n = read();\n } else throw new InputMismatchException();\n }",
"if (n >= '0' && n <= '9') {\n integer *= 10;\n integer += n - '0';\n n = read();\n } else throw new InputMismatchException();",
"n >= '0' && n <= '9'",
"n >= '0'",
"n",
"'0'",
"n <= '9'",
"n",
"'9'",
"{\n integer *= 10;\n integer += n - '0';\n n = read();\n }",
"integer *= 10",
"integer",
"10",
"integer += n - '0'",
"integer",
"n - '0'",
"n",
"'0'",
"n = read()",
"n",
"read()",
"read",
"throw new InputMismatchException();",
"new InputMismatchException()",
"return neg * integer;",
"neg * integer",
"neg",
"integer",
"public double readDouble() throws IOException {\n double doub = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n int neg = 1;\n if (n == '-') {\n neg = -1;\n n = read();\n }\n while (!isWhiteSpace(n) && n != '.') {\n if (n >= '0' && n <= '9') {\n doub *= 10;\n doub += n - '0';\n n = read();\n } else throw new InputMismatchException();\n }\n\n if (n == '.') {\n n = read();\n double temp = 1;\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n temp /= 10;\n doub += (n - '0') * temp;\n n = read();\n } else throw new InputMismatchException();\n }\n }\n return doub * neg;\n }",
"readDouble",
"{\n double doub = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n int neg = 1;\n if (n == '-') {\n neg = -1;\n n = read();\n }\n while (!isWhiteSpace(n) && n != '.') {\n if (n >= '0' && n <= '9') {\n doub *= 10;\n doub += n - '0';\n n = read();\n } else throw new InputMismatchException();\n }\n\n if (n == '.') {\n n = read();\n double temp = 1;\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n temp /= 10;\n doub += (n - '0') * temp;\n n = read();\n } else throw new InputMismatchException();\n }\n }\n return doub * neg;\n }",
"double doub = 0;",
"doub",
"0",
"int n = read();",
"n",
"read()",
"read",
"while (isWhiteSpace(n))\n n = read();",
"isWhiteSpace(n)",
"isWhiteSpace",
"n",
"n = read()",
"n",
"read()",
"read",
"int neg = 1;",
"neg",
"1",
"if (n == '-') {\n neg = -1;\n n = read();\n }",
"n == '-'",
"n",
"'-'",
"{\n neg = -1;\n n = read();\n }",
"neg = -1",
"neg",
"-1",
"1",
"n = read()",
"n",
"read()",
"read",
"while (!isWhiteSpace(n) && n != '.') {\n if (n >= '0' && n <= '9') {\n doub *= 10;\n doub += n - '0';\n n = read();\n } else throw new InputMismatchException();\n }",
"!isWhiteSpace(n) && n != '.'",
"!isWhiteSpace(n)",
"isWhiteSpace(n)",
"isWhiteSpace",
"n",
"n != '.'",
"n",
"'.'",
"{\n if (n >= '0' && n <= '9') {\n doub *= 10;\n doub += n - '0';\n n = read();\n } else throw new InputMismatchException();\n }",
"if (n >= '0' && n <= '9') {\n doub *= 10;\n doub += n - '0';\n n = read();\n } else throw new InputMismatchException();",
"n >= '0' && n <= '9'",
"n >= '0'",
"n",
"'0'",
"n <= '9'",
"n",
"'9'",
"{\n doub *= 10;\n doub += n - '0';\n n = read();\n }",
"doub *= 10",
"doub",
"10",
"doub += n - '0'",
"doub",
"n - '0'",
"n",
"'0'",
"n = read()",
"n",
"read()",
"read",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (n == '.') {\n n = read();\n double temp = 1;\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n temp /= 10;\n doub += (n - '0') * temp;\n n = read();\n } else throw new InputMismatchException();\n }\n }",
"n == '.'",
"n",
"'.'",
"{\n n = read();\n double temp = 1;\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n temp /= 10;\n doub += (n - '0') * temp;\n n = read();\n } else throw new InputMismatchException();\n }\n }",
"n = read()",
"n",
"read()",
"read",
"double temp = 1;",
"temp",
"1",
"while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n temp /= 10;\n doub += (n - '0') * temp;\n n = read();\n } else throw new InputMismatchException();\n }",
"!isWhiteSpace(n)",
"isWhiteSpace(n)",
"isWhiteSpace",
"n",
"{\n if (n >= '0' && n <= '9') {\n temp /= 10;\n doub += (n - '0') * temp;\n n = read();\n } else throw new InputMismatchException();\n }",
"if (n >= '0' && n <= '9') {\n temp /= 10;\n doub += (n - '0') * temp;\n n = read();\n } else throw new InputMismatchException();",
"n >= '0' && n <= '9'",
"n >= '0'",
"n",
"'0'",
"n <= '9'",
"n",
"'9'",
"{\n temp /= 10;\n doub += (n - '0') * temp;\n n = read();\n }",
"temp /= 10",
"temp",
"10",
"doub += (n - '0') * temp",
"doub",
"(n - '0') * temp",
"(n - '0')",
"n",
"'0'",
"temp",
"n = read()",
"n",
"read()",
"read",
"throw new InputMismatchException();",
"new InputMismatchException()",
"return doub * neg;",
"doub * neg",
"doub",
"neg",
"public String readString() throws IOException {\n StringBuilder sb = new StringBuilder();\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n while (!isWhiteSpace(n)) {\n sb.append((char) n);\n n = read();\n }\n return sb.toString();\n }",
"readString",
"{\n StringBuilder sb = new StringBuilder();\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n while (!isWhiteSpace(n)) {\n sb.append((char) n);\n n = read();\n }\n return sb.toString();\n }",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int n = read();",
"n",
"read()",
"read",
"while (isWhiteSpace(n))\n n = read();",
"isWhiteSpace(n)",
"isWhiteSpace",
"n",
"n = read()",
"n",
"read()",
"read",
"while (!isWhiteSpace(n)) {\n sb.append((char) n);\n n = read();\n }",
"!isWhiteSpace(n)",
"isWhiteSpace(n)",
"isWhiteSpace",
"n",
"{\n sb.append((char) n);\n n = read();\n }",
"sb.append((char) n)",
"sb.append",
"sb",
"(char) n",
"n = read()",
"n",
"read()",
"read",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public List<Double> readDoubleList(int size) throws IOException {\n List<Double> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readDouble());\n }\n return res;\n }",
"readDoubleList",
"{\n List<Double> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readDouble());\n }\n return res;\n }",
"List<Double> res = new ArrayList<>();",
"res",
"new ArrayList<>()",
"for (int i = 0; i < size; i++) {\n res.add(this.readDouble());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < size",
"i",
"size",
"i++",
"i++",
"i",
"{\n res.add(this.readDouble());\n }",
"{\n res.add(this.readDouble());\n }",
"res.add(this.readDouble())",
"res.add",
"res",
"this.readDouble()",
"this.readDouble",
"this",
"return res;",
"res",
"int size",
"size",
"public double[] readDoubleArray(int size) throws IOException {\n double[] res = new double[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readDouble();\n }\n return res;\n }",
"readDoubleArray",
"{\n double[] res = new double[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readDouble();\n }\n return res;\n }",
"double[] res = new double[size];",
"res",
"new double[size]",
"size",
"for (int i = 0; i < size; i++) {\n res[i] = this.readDouble();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < size",
"i",
"size",
"i++",
"i++",
"i",
"{\n res[i] = this.readDouble();\n }",
"{\n res[i] = this.readDouble();\n }",
"res[i] = this.readDouble()",
"res[i]",
"res",
"i",
"this.readDouble()",
"this.readDouble",
"this",
"return res;",
"res",
"int size",
"size",
"public List<String> readStringList(int size) throws IOException {\n List<String> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readString());\n }\n return res;\n }",
"readStringList",
"{\n List<String> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readString());\n }\n return res;\n }",
"List<String> res = new ArrayList<>();",
"res",
"new ArrayList<>()",
"for (int i = 0; i < size; i++) {\n res.add(this.readString());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < size",
"i",
"size",
"i++",
"i++",
"i",
"{\n res.add(this.readString());\n }",
"{\n res.add(this.readString());\n }",
"res.add(this.readString())",
"res.add",
"res",
"this.readString()",
"this.readString",
"this",
"return res;",
"res",
"int size",
"size",
"public String[] readStringArray(int size) throws IOException {\n String[] res = new String[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readString();\n }\n return res;\n }",
"readStringArray",
"{\n String[] res = new String[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readString();\n }\n return res;\n }",
"String[] res = new String[size];",
"res",
"new String[size]",
"size",
"for (int i = 0; i < size; i++) {\n res[i] = this.readString();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < size",
"i",
"size",
"i++",
"i++",
"i",
"{\n res[i] = this.readString();\n }",
"{\n res[i] = this.readString();\n }",
"res[i] = this.readString()",
"res[i]",
"res",
"i",
"this.readString()",
"this.readString",
"this",
"return res;",
"res",
"int size",
"size",
"public List<Integer> readIntList(int size) throws IOException {\n List<Integer> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readInt());\n }\n return res;\n }",
"readIntList",
"{\n List<Integer> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readInt());\n }\n return res;\n }",
"List<Integer> res = new ArrayList<>();",
"res",
"new ArrayList<>()",
"for (int i = 0; i < size; i++) {\n res.add(this.readInt());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < size",
"i",
"size",
"i++",
"i++",
"i",
"{\n res.add(this.readInt());\n }",
"{\n res.add(this.readInt());\n }",
"res.add(this.readInt())",
"res.add",
"res",
"this.readInt()",
"this.readInt",
"this",
"return res;",
"res",
"int size",
"size",
"public List<Long> readLongList(int size) throws IOException {\n List<Long> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readLong());\n }\n return res;\n }",
"readLongList",
"{\n List<Long> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readLong());\n }\n return res;\n }",
"List<Long> res = new ArrayList<>();",
"res",
"new ArrayList<>()",
"for (int i = 0; i < size; i++) {\n res.add(this.readLong());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < size",
"i",
"size",
"i++",
"i++",
"i",
"{\n res.add(this.readLong());\n }",
"{\n res.add(this.readLong());\n }",
"res.add(this.readLong())",
"res.add",
"res",
"this.readLong()",
"this.readLong",
"this",
"return res;",
"res",
"int size",
"size",
"public int[] readIntArray(int size) throws IOException {\n int[] res = new int[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readInt();\n }\n return res;\n }",
"readIntArray",
"{\n int[] res = new int[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readInt();\n }\n return res;\n }",
"int[] res = new int[size];",
"res",
"new int[size]",
"size",
"for (int i = 0; i < size; i++) {\n res[i] = this.readInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < size",
"i",
"size",
"i++",
"i++",
"i",
"{\n res[i] = this.readInt();\n }",
"{\n res[i] = this.readInt();\n }",
"res[i] = this.readInt()",
"res[i]",
"res",
"i",
"this.readInt()",
"this.readInt",
"this",
"return res;",
"res",
"int size",
"size",
"public long[] readLongArray(int size) throws IOException {\n long[] res = new long[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readLong();\n }\n return res;\n }",
"readLongArray",
"{\n long[] res = new long[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readLong();\n }\n return res;\n }",
"long[] res = new long[size];",
"res",
"new long[size]",
"size",
"for (int i = 0; i < size; i++) {\n res[i] = this.readLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < size",
"i",
"size",
"i++",
"i++",
"i",
"{\n res[i] = this.readLong();\n }",
"{\n res[i] = this.readLong();\n }",
"res[i] = this.readLong()",
"res[i]",
"res",
"i",
"this.readLong()",
"this.readLong",
"this",
"return res;",
"res",
"int size",
"size",
"private boolean isWhiteSpace(int n) {\n if (n == ' ' || n == '\\n' || n == '\\r' || n == '\\t' || n == -1)\n return true;\n return false;\n }",
"isWhiteSpace",
"{\n if (n == ' ' || n == '\\n' || n == '\\r' || n == '\\t' || n == -1)\n return true;\n return false;\n }",
"if (n == ' ' || n == '\\n' || n == '\\r' || n == '\\t' || n == -1)\n return true;",
"n == ' ' || n == '\\n' || n == '\\r' || n == '\\t' || n == -1",
"n == '\\t'",
"n == '\\r'",
"n == ' ' || n == '\\n' || n == '\\r' || n == '\\t' || n == -1",
"n == ' '",
"n",
"' '",
"n == '\\n'",
"n",
"'\\n'",
"n == '\\r'",
"n",
"'\\r'",
"n == '\\t'",
"n",
"'\\t'",
"n == -1",
"n",
"-1",
"1",
"return true;",
"true",
"return false;",
"false",
"int n",
"n",
"static class Write {\n\n private final BufferedWriter bw;\n\n public Write() {\n bw = new BufferedWriter(new OutputStreamWriter(System.out));\n }\n\n public void print(Object str) throws IOException {\n bw.append(str + \"\");\n }\n\n public void printLine(Object str) throws IOException {\n print(str);\n bw.append(\"\\n\");\n }\n\n public void close() throws IOException {\n bw.close();\n }\n\n public void flush() throws IOException {\n bw.flush();\n }\n }",
"Write",
"private final BufferedWriter bw;",
"bw",
"public Write() {\n bw = new BufferedWriter(new OutputStreamWriter(System.out));\n }",
"Write",
"{\n bw = new BufferedWriter(new OutputStreamWriter(System.out));\n }",
"bw = new BufferedWriter(new OutputStreamWriter(System.out))",
"bw",
"new BufferedWriter(new OutputStreamWriter(System.out))",
"public void print(Object str) throws IOException {\n bw.append(str + \"\");\n }",
"print",
"{\n bw.append(str + \"\");\n }",
"bw.append(str + \"\")",
"bw.append",
"bw",
"str + \"\"",
"str",
"\"\"",
"Object str",
"str",
"public void printLine(Object str) throws IOException {\n print(str);\n bw.append(\"\\n\");\n }",
"printLine",
"{\n print(str);\n bw.append(\"\\n\");\n }",
"print(str)",
"print",
"str",
"bw.append(\"\\n\")",
"bw.append",
"bw",
"\"\\n\"",
"Object str",
"str",
"public void close() throws IOException {\n bw.close();\n }",
"close",
"{\n bw.close();\n }",
"bw.close()",
"bw.close",
"bw",
"public void flush() throws IOException {\n bw.flush();\n }",
"flush",
"{\n bw.flush();\n }",
"bw.flush()",
"bw.flush",
"bw",
"public class Main {\n\n private static final long MOD = 1_000_000_000 + 7;\n\n private long power(long base, long exponent) {\n long res = 1;\n while (exponent > 0) {\n if ((exponent & 1) == 1) {\n res = (res * base) % MOD;\n exponent--;\n } else {\n base = (base * base) % MOD;\n exponent = exponent >> 1;\n }\n }\n return res;\n }\n\n private long inverseMod(long number) {\n return power(number, MOD - 2);\n }\n\n private int gcd(int a, int b) {\n if (b == 0) {\n return a;\n }\n return gcd(b, a % b);\n }\n\n private long gcd(long a, long b) {\n if (b == 0) {\n return a;\n }\n return gcd(b, a % b);\n }\n\n public void solve(Read input, Write output) throws Exception {\n long a = input.readLong();\n long b = input.readLong();\n long c = input.readLong();\n long d = input.readLong();\n output.printLine(Math.max(c*b, Math.max(a*d,Math.max(a*c, b*d))));\n }\n\n public static void main(String[] args) throws Exception {\n Read input = new Read();\n Write output = new Write();\n Main D = new Main();\n D.solve(input, output);\n output.flush();\n output.close();\n }\n\n // java fast io reader and writer\n // taken from various sources and customized\n\n static class Read {\n\n private byte[] buffer = new byte[10 * 1024];\n private int index;\n private InputStream input_stream;\n private int total;\n\n public Read() {\n input_stream = System.in;\n }\n\n public int read() throws IOException {\n if (total < 0)\n throw new InputMismatchException();\n if (index >= total) {\n index = 0;\n total = input_stream.read(buffer);\n if (total <= 0)\n return -1;\n }\n return buffer[index++];\n }\n\n public long readLong() throws IOException {\n long number = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n long neg = 1l;\n if (n == '-') {\n neg = -1l;\n n = read();\n }\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n number *= 10l;\n number += (long) (n - '0');\n n = read();\n } else throw new InputMismatchException();\n }\n return neg * number;\n }\n\n public int readInt() throws IOException {\n int integer = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n int neg = 1;\n if (n == '-') {\n neg = -1;\n n = read();\n }\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n integer *= 10;\n integer += n - '0';\n n = read();\n } else throw new InputMismatchException();\n }\n return neg * integer;\n }\n\n public double readDouble() throws IOException {\n double doub = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n int neg = 1;\n if (n == '-') {\n neg = -1;\n n = read();\n }\n while (!isWhiteSpace(n) && n != '.') {\n if (n >= '0' && n <= '9') {\n doub *= 10;\n doub += n - '0';\n n = read();\n } else throw new InputMismatchException();\n }\n\n if (n == '.') {\n n = read();\n double temp = 1;\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n temp /= 10;\n doub += (n - '0') * temp;\n n = read();\n } else throw new InputMismatchException();\n }\n }\n return doub * neg;\n }\n\n public String readString() throws IOException {\n StringBuilder sb = new StringBuilder();\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n while (!isWhiteSpace(n)) {\n sb.append((char) n);\n n = read();\n }\n return sb.toString();\n }\n\n public List<Double> readDoubleList(int size) throws IOException {\n List<Double> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readDouble());\n }\n return res;\n }\n\n public double[] readDoubleArray(int size) throws IOException {\n double[] res = new double[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readDouble();\n }\n return res;\n }\n\n public List<String> readStringList(int size) throws IOException {\n List<String> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readString());\n }\n return res;\n }\n\n public String[] readStringArray(int size) throws IOException {\n String[] res = new String[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readString();\n }\n return res;\n }\n\n public List<Integer> readIntList(int size) throws IOException {\n List<Integer> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readInt());\n }\n return res;\n }\n\n public List<Long> readLongList(int size) throws IOException {\n List<Long> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readLong());\n }\n return res;\n }\n\n public int[] readIntArray(int size) throws IOException {\n int[] res = new int[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readInt();\n }\n return res;\n }\n\n public long[] readLongArray(int size) throws IOException {\n long[] res = new long[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readLong();\n }\n return res;\n }\n\n private boolean isWhiteSpace(int n) {\n if (n == ' ' || n == '\\n' || n == '\\r' || n == '\\t' || n == -1)\n return true;\n return false;\n }\n }\n\n static class Write {\n\n private final BufferedWriter bw;\n\n public Write() {\n bw = new BufferedWriter(new OutputStreamWriter(System.out));\n }\n\n public void print(Object str) throws IOException {\n bw.append(str + \"\");\n }\n\n public void printLine(Object str) throws IOException {\n print(str);\n bw.append(\"\\n\");\n }\n\n public void close() throws IOException {\n bw.close();\n }\n\n public void flush() throws IOException {\n bw.flush();\n }\n }\n}",
"public class Main {\n\n private static final long MOD = 1_000_000_000 + 7;\n\n private long power(long base, long exponent) {\n long res = 1;\n while (exponent > 0) {\n if ((exponent & 1) == 1) {\n res = (res * base) % MOD;\n exponent--;\n } else {\n base = (base * base) % MOD;\n exponent = exponent >> 1;\n }\n }\n return res;\n }\n\n private long inverseMod(long number) {\n return power(number, MOD - 2);\n }\n\n private int gcd(int a, int b) {\n if (b == 0) {\n return a;\n }\n return gcd(b, a % b);\n }\n\n private long gcd(long a, long b) {\n if (b == 0) {\n return a;\n }\n return gcd(b, a % b);\n }\n\n public void solve(Read input, Write output) throws Exception {\n long a = input.readLong();\n long b = input.readLong();\n long c = input.readLong();\n long d = input.readLong();\n output.printLine(Math.max(c*b, Math.max(a*d,Math.max(a*c, b*d))));\n }\n\n public static void main(String[] args) throws Exception {\n Read input = new Read();\n Write output = new Write();\n Main D = new Main();\n D.solve(input, output);\n output.flush();\n output.close();\n }\n\n // java fast io reader and writer\n // taken from various sources and customized\n\n static class Read {\n\n private byte[] buffer = new byte[10 * 1024];\n private int index;\n private InputStream input_stream;\n private int total;\n\n public Read() {\n input_stream = System.in;\n }\n\n public int read() throws IOException {\n if (total < 0)\n throw new InputMismatchException();\n if (index >= total) {\n index = 0;\n total = input_stream.read(buffer);\n if (total <= 0)\n return -1;\n }\n return buffer[index++];\n }\n\n public long readLong() throws IOException {\n long number = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n long neg = 1l;\n if (n == '-') {\n neg = -1l;\n n = read();\n }\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n number *= 10l;\n number += (long) (n - '0');\n n = read();\n } else throw new InputMismatchException();\n }\n return neg * number;\n }\n\n public int readInt() throws IOException {\n int integer = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n int neg = 1;\n if (n == '-') {\n neg = -1;\n n = read();\n }\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n integer *= 10;\n integer += n - '0';\n n = read();\n } else throw new InputMismatchException();\n }\n return neg * integer;\n }\n\n public double readDouble() throws IOException {\n double doub = 0;\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n int neg = 1;\n if (n == '-') {\n neg = -1;\n n = read();\n }\n while (!isWhiteSpace(n) && n != '.') {\n if (n >= '0' && n <= '9') {\n doub *= 10;\n doub += n - '0';\n n = read();\n } else throw new InputMismatchException();\n }\n\n if (n == '.') {\n n = read();\n double temp = 1;\n while (!isWhiteSpace(n)) {\n if (n >= '0' && n <= '9') {\n temp /= 10;\n doub += (n - '0') * temp;\n n = read();\n } else throw new InputMismatchException();\n }\n }\n return doub * neg;\n }\n\n public String readString() throws IOException {\n StringBuilder sb = new StringBuilder();\n int n = read();\n while (isWhiteSpace(n))\n n = read();\n while (!isWhiteSpace(n)) {\n sb.append((char) n);\n n = read();\n }\n return sb.toString();\n }\n\n public List<Double> readDoubleList(int size) throws IOException {\n List<Double> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readDouble());\n }\n return res;\n }\n\n public double[] readDoubleArray(int size) throws IOException {\n double[] res = new double[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readDouble();\n }\n return res;\n }\n\n public List<String> readStringList(int size) throws IOException {\n List<String> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readString());\n }\n return res;\n }\n\n public String[] readStringArray(int size) throws IOException {\n String[] res = new String[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readString();\n }\n return res;\n }\n\n public List<Integer> readIntList(int size) throws IOException {\n List<Integer> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readInt());\n }\n return res;\n }\n\n public List<Long> readLongList(int size) throws IOException {\n List<Long> res = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n res.add(this.readLong());\n }\n return res;\n }\n\n public int[] readIntArray(int size) throws IOException {\n int[] res = new int[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readInt();\n }\n return res;\n }\n\n public long[] readLongArray(int size) throws IOException {\n long[] res = new long[size];\n for (int i = 0; i < size; i++) {\n res[i] = this.readLong();\n }\n return res;\n }\n\n private boolean isWhiteSpace(int n) {\n if (n == ' ' || n == '\\n' || n == '\\r' || n == '\\t' || n == -1)\n return true;\n return false;\n }\n }\n\n static class Write {\n\n private final BufferedWriter bw;\n\n public Write() {\n bw = new BufferedWriter(new OutputStreamWriter(System.out));\n }\n\n public void print(Object str) throws IOException {\n bw.append(str + \"\");\n }\n\n public void printLine(Object str) throws IOException {\n print(str);\n bw.append(\"\\n\");\n }\n\n public void close() throws IOException {\n bw.close();\n }\n\n public void flush() throws IOException {\n bw.flush();\n }\n }\n}",
"Main"
]
|
/*
AUTH -> krishna-3249
DATE -> 9/13/20
TIME -> 5:35 PM
*/
/*
Simple can be harder than complex.
Body, mind and spirit.
Strive for progress, not perfection.
*/
import java.lang.*;
import java.io.*;
import java.util.*;
public class Main {
private static final long MOD = 1_000_000_000 + 7;
private long power(long base, long exponent) {
long res = 1;
while (exponent > 0) {
if ((exponent & 1) == 1) {
res = (res * base) % MOD;
exponent--;
} else {
base = (base * base) % MOD;
exponent = exponent >> 1;
}
}
return res;
}
private long inverseMod(long number) {
return power(number, MOD - 2);
}
private int gcd(int a, int b) {
if (b == 0) {
return a;
}
return gcd(b, a % b);
}
private long gcd(long a, long b) {
if (b == 0) {
return a;
}
return gcd(b, a % b);
}
public void solve(Read input, Write output) throws Exception {
long a = input.readLong();
long b = input.readLong();
long c = input.readLong();
long d = input.readLong();
output.printLine(Math.max(c*b, Math.max(a*d,Math.max(a*c, b*d))));
}
public static void main(String[] args) throws Exception {
Read input = new Read();
Write output = new Write();
Main D = new Main();
D.solve(input, output);
output.flush();
output.close();
}
// java fast io reader and writer
// taken from various sources and customized
static class Read {
private byte[] buffer = new byte[10 * 1024];
private int index;
private InputStream input_stream;
private int total;
public Read() {
input_stream = System.in;
}
public int read() throws IOException {
if (total < 0)
throw new InputMismatchException();
if (index >= total) {
index = 0;
total = input_stream.read(buffer);
if (total <= 0)
return -1;
}
return buffer[index++];
}
public long readLong() throws IOException {
long number = 0;
int n = read();
while (isWhiteSpace(n))
n = read();
long neg = 1l;
if (n == '-') {
neg = -1l;
n = read();
}
while (!isWhiteSpace(n)) {
if (n >= '0' && n <= '9') {
number *= 10l;
number += (long) (n - '0');
n = read();
} else throw new InputMismatchException();
}
return neg * number;
}
public int readInt() throws IOException {
int integer = 0;
int n = read();
while (isWhiteSpace(n))
n = read();
int neg = 1;
if (n == '-') {
neg = -1;
n = read();
}
while (!isWhiteSpace(n)) {
if (n >= '0' && n <= '9') {
integer *= 10;
integer += n - '0';
n = read();
} else throw new InputMismatchException();
}
return neg * integer;
}
public double readDouble() throws IOException {
double doub = 0;
int n = read();
while (isWhiteSpace(n))
n = read();
int neg = 1;
if (n == '-') {
neg = -1;
n = read();
}
while (!isWhiteSpace(n) && n != '.') {
if (n >= '0' && n <= '9') {
doub *= 10;
doub += n - '0';
n = read();
} else throw new InputMismatchException();
}
if (n == '.') {
n = read();
double temp = 1;
while (!isWhiteSpace(n)) {
if (n >= '0' && n <= '9') {
temp /= 10;
doub += (n - '0') * temp;
n = read();
} else throw new InputMismatchException();
}
}
return doub * neg;
}
public String readString() throws IOException {
StringBuilder sb = new StringBuilder();
int n = read();
while (isWhiteSpace(n))
n = read();
while (!isWhiteSpace(n)) {
sb.append((char) n);
n = read();
}
return sb.toString();
}
public List<Double> readDoubleList(int size) throws IOException {
List<Double> res = new ArrayList<>();
for (int i = 0; i < size; i++) {
res.add(this.readDouble());
}
return res;
}
public double[] readDoubleArray(int size) throws IOException {
double[] res = new double[size];
for (int i = 0; i < size; i++) {
res[i] = this.readDouble();
}
return res;
}
public List<String> readStringList(int size) throws IOException {
List<String> res = new ArrayList<>();
for (int i = 0; i < size; i++) {
res.add(this.readString());
}
return res;
}
public String[] readStringArray(int size) throws IOException {
String[] res = new String[size];
for (int i = 0; i < size; i++) {
res[i] = this.readString();
}
return res;
}
public List<Integer> readIntList(int size) throws IOException {
List<Integer> res = new ArrayList<>();
for (int i = 0; i < size; i++) {
res.add(this.readInt());
}
return res;
}
public List<Long> readLongList(int size) throws IOException {
List<Long> res = new ArrayList<>();
for (int i = 0; i < size; i++) {
res.add(this.readLong());
}
return res;
}
public int[] readIntArray(int size) throws IOException {
int[] res = new int[size];
for (int i = 0; i < size; i++) {
res[i] = this.readInt();
}
return res;
}
public long[] readLongArray(int size) throws IOException {
long[] res = new long[size];
for (int i = 0; i < size; i++) {
res[i] = this.readLong();
}
return res;
}
private boolean isWhiteSpace(int n) {
if (n == ' ' || n == '\n' || n == '\r' || n == '\t' || n == -1)
return true;
return false;
}
}
static class Write {
private final BufferedWriter bw;
public Write() {
bw = new BufferedWriter(new OutputStreamWriter(System.out));
}
public void print(Object str) throws IOException {
bw.append(str + "");
}
public void printLine(Object str) throws IOException {
print(str);
bw.append("\n");
}
public void close() throws IOException {
bw.close();
}
public void flush() throws IOException {
bw.flush();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
2,
18,
13,
17,
18,
13,
17,
4,
18,
13,
2,
18,
13,
17,
18,
13,
17,
4,
18,
13,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
191,
11
],
[
191,
12
],
[
12,
13
],
[
191,
14
],
[
14,
15
],
[
191,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
22,
23
],
[
22,
24
],
[
18,
25
],
[
25,
26
],
[
25,
27
],
[
18,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
28,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
33,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
60,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
70,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
87,
89
],
[
80,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
18,
97
],
[
97,
98
],
[
98,
99
],
[
16,
100
],
[
100,
101
],
[
191,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
102,
106
],
[
106,
107
],
[
102,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
102,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
117,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
127,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
116,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
102,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
149,
150
],
[
102,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
155,
158
],
[
158,
159
],
[
102,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
164,
167
],
[
167,
168
],
[
102,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
175,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
171,
188
],
[
188,
189
],
[
0,
190
],
[
190,
191
],
[
190,
192
]
]
| [
"import java.io.*;\nimport java.util.*;\nimport java.lang.*;\n\npublic class Main {\n public static MyScanner scan;\n public static PrintWriter out;\n public static void main(String[] args) {\n scan=new MyScanner();\n out=new PrintWriter(new BufferedOutputStream(System.out));\n\n int t=1;\n// int t=scan.nextInt();\n while(t-->0) {\n\n long[] a=new long[4];\n for(int c=0;c<4;c++) a[c]=scan.nextLong();\n out.println(Math.max(a[0]*a[3],Math.max(a[0]*a[2],Math.max(a[1]*a[2],a[1]*a[3]))));\n\n }\n out.close();\n }\n\n\n\n //scanner\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main {\n public static MyScanner scan;\n public static PrintWriter out;\n public static void main(String[] args) {\n scan=new MyScanner();\n out=new PrintWriter(new BufferedOutputStream(System.out));\n\n int t=1;\n// int t=scan.nextInt();\n while(t-->0) {\n\n long[] a=new long[4];\n for(int c=0;c<4;c++) a[c]=scan.nextLong();\n out.println(Math.max(a[0]*a[3],Math.max(a[0]*a[2],Math.max(a[1]*a[2],a[1]*a[3]))));\n\n }\n out.close();\n }\n\n\n\n //scanner\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"Main",
"public static MyScanner scan;",
"scan",
"public static PrintWriter out;",
"out",
"public static void main(String[] args) {\n scan=new MyScanner();\n out=new PrintWriter(new BufferedOutputStream(System.out));\n\n int t=1;\n// int t=scan.nextInt();\n while(t-->0) {\n\n long[] a=new long[4];\n for(int c=0;c<4;c++) a[c]=scan.nextLong();\n out.println(Math.max(a[0]*a[3],Math.max(a[0]*a[2],Math.max(a[1]*a[2],a[1]*a[3]))));\n\n }\n out.close();\n }",
"main",
"{\n scan=new MyScanner();\n out=new PrintWriter(new BufferedOutputStream(System.out));\n\n int t=1;\n// int t=scan.nextInt();\n while(t-->0) {\n\n long[] a=new long[4];\n for(int c=0;c<4;c++) a[c]=scan.nextLong();\n out.println(Math.max(a[0]*a[3],Math.max(a[0]*a[2],Math.max(a[1]*a[2],a[1]*a[3]))));\n\n }\n out.close();\n }",
"scan=new MyScanner()",
"scan",
"new MyScanner()",
"out=new PrintWriter(new BufferedOutputStream(System.out))",
"out",
"new PrintWriter(new BufferedOutputStream(System.out))",
"int t=1;",
"t",
"1",
"while(t-->0) {\n\n long[] a=new long[4];\n for(int c=0;c<4;c++) a[c]=scan.nextLong();\n out.println(Math.max(a[0]*a[3],Math.max(a[0]*a[2],Math.max(a[1]*a[2],a[1]*a[3]))));\n\n }",
"t-->0",
"t--",
"t",
"0",
"{\n\n long[] a=new long[4];\n for(int c=0;c<4;c++) a[c]=scan.nextLong();\n out.println(Math.max(a[0]*a[3],Math.max(a[0]*a[2],Math.max(a[1]*a[2],a[1]*a[3]))));\n\n }",
"long[] a=new long[4];",
"a",
"new long[4]",
"4",
"for(int c=0;c<4;c++) a[c]=scan.nextLong();",
"int c=0;",
"int c=0;",
"c",
"0",
"c<4",
"c",
"4",
"c++",
"c++",
"c",
"a[c]=scan.nextLong();",
"a[c]=scan.nextLong()",
"a[c]",
"a",
"c",
"scan.nextLong()",
"scan.nextLong",
"scan",
"out.println(Math.max(a[0]*a[3],Math.max(a[0]*a[2],Math.max(a[1]*a[2],a[1]*a[3]))))",
"out.println",
"out",
"Math.max(a[0]*a[3],Math.max(a[0]*a[2],Math.max(a[1]*a[2],a[1]*a[3])))",
"Math.max",
"Math",
"a[0]*a[3]",
"a[0]",
"a",
"0",
"a[3]",
"a",
"3",
"Math.max(a[0]*a[2],Math.max(a[1]*a[2],a[1]*a[3]))",
"Math.max",
"Math",
"a[0]*a[2]",
"a[0]",
"a",
"0",
"a[2]",
"a",
"2",
"Math.max(a[1]*a[2],a[1]*a[3])",
"Math.max",
"Math",
"a[1]*a[2]",
"a[1]",
"a",
"1",
"a[2]",
"a",
"2",
"a[1]*a[3]",
"a[1]",
"a",
"1",
"a[3]",
"a",
"3",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"MyScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"MyScanner",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n public static MyScanner scan;\n public static PrintWriter out;\n public static void main(String[] args) {\n scan=new MyScanner();\n out=new PrintWriter(new BufferedOutputStream(System.out));\n\n int t=1;\n// int t=scan.nextInt();\n while(t-->0) {\n\n long[] a=new long[4];\n for(int c=0;c<4;c++) a[c]=scan.nextLong();\n out.println(Math.max(a[0]*a[3],Math.max(a[0]*a[2],Math.max(a[1]*a[2],a[1]*a[3]))));\n\n }\n out.close();\n }\n\n\n\n //scanner\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"public class Main {\n public static MyScanner scan;\n public static PrintWriter out;\n public static void main(String[] args) {\n scan=new MyScanner();\n out=new PrintWriter(new BufferedOutputStream(System.out));\n\n int t=1;\n// int t=scan.nextInt();\n while(t-->0) {\n\n long[] a=new long[4];\n for(int c=0;c<4;c++) a[c]=scan.nextLong();\n out.println(Math.max(a[0]*a[3],Math.max(a[0]*a[2],Math.max(a[1]*a[2],a[1]*a[3]))));\n\n }\n out.close();\n }\n\n\n\n //scanner\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
import java.lang.*;
public class Main {
public static MyScanner scan;
public static PrintWriter out;
public static void main(String[] args) {
scan=new MyScanner();
out=new PrintWriter(new BufferedOutputStream(System.out));
int t=1;
// int t=scan.nextInt();
while(t-->0) {
long[] a=new long[4];
for(int c=0;c<4;c++) a[c]=scan.nextLong();
out.println(Math.max(a[0]*a[3],Math.max(a[0]*a[2],Math.max(a[1]*a[2],a[1]*a[3]))));
}
out.close();
}
//scanner
public static class MyScanner {
BufferedReader br;
StringTokenizer st;
public MyScanner() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
4,
18,
13,
13,
13,
4,
18,
13,
13,
13,
4,
18,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
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
],
[
187,
29
],
[
187,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
32,
43
],
[
43,
44
],
[
43,
45
],
[
32,
46
],
[
46,
47
],
[
46,
48
],
[
32,
49
],
[
49,
50
],
[
49,
51
],
[
32,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
52,
57
],
[
32,
58
],
[
58,
59
],
[
59,
60
],
[
30,
61
],
[
61,
62
],
[
187,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
67,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
67,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
67,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
67,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
67,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
67,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
105,
107
],
[
67,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
113,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
118,
122
],
[
67,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
65,
127
],
[
127,
128
],
[
65,
129
],
[
129,
130
],
[
65,
131
],
[
131,
132
],
[
187,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
133,
137
],
[
137,
138
],
[
133,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
145,
146
],
[
145,
147
],
[
139,
148
],
[
148,
149
],
[
133,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
153,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
163,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
152,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
133,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
181,
184
],
[
184,
185
],
[
0,
186
],
[
186,
187
],
[
186,
188
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\nimport java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Tarek\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 BProductMax solver = new BProductMax();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BProductMax {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n long ans = Math.max(Math.max(ans1, ans2), Math.max(ans3, ans4));\n out.println(ans);\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 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.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BProductMax solver = new BProductMax();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BProductMax {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n long ans = Math.max(Math.max(ans1, ans2), Math.max(ans3, ans4));\n out.println(ans);\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 long nextLong() {\n return Long.parseLong(next());\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BProductMax solver = new BProductMax();\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 BProductMax solver = new BProductMax();\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)",
"BProductMax solver = new BProductMax();",
"solver",
"new BProductMax()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class BProductMax {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n long ans = Math.max(Math.max(ans1, ans2), Math.max(ans3, ans4));\n out.println(ans);\n }\n\n }",
"BProductMax",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n long ans = Math.max(Math.max(ans1, ans2), Math.max(ans3, ans4));\n out.println(ans);\n }",
"solve",
"{\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n long ans = Math.max(Math.max(ans1, ans2), Math.max(ans3, ans4));\n out.println(ans);\n }",
"long a = in.nextLong();",
"a",
"in.nextLong()",
"in.nextLong",
"in",
"long b = in.nextLong();",
"b",
"in.nextLong()",
"in.nextLong",
"in",
"long c = in.nextLong();",
"c",
"in.nextLong()",
"in.nextLong",
"in",
"long d = in.nextLong();",
"d",
"in.nextLong()",
"in.nextLong",
"in",
"long ans1 = a * c;",
"ans1",
"a * c",
"a",
"c",
"long ans2 = a * d;",
"ans2",
"a * d",
"a",
"d",
"long ans3 = b * c;",
"ans3",
"b * c",
"b",
"c",
"long ans4 = b * d;",
"ans4",
"b * d",
"b",
"d",
"long ans = Math.max(Math.max(ans1, ans2), Math.max(ans3, ans4));",
"ans",
"Math.max(Math.max(ans1, ans2), Math.max(ans3, ans4))",
"Math.max",
"Math",
"Math.max(ans1, ans2)",
"Math.max",
"Math",
"ans1",
"ans2",
"Math.max(ans3, ans4)",
"Math.max",
"Math",
"ans3",
"ans4",
"out.println(ans)",
"out.println",
"out",
"ans",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"PrintWriter out",
"out",
"static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n }",
"InputReader",
"public BufferedReader reader;",
"reader",
"public StringTokenizer tokenizer;",
"tokenizer",
"public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"InputReader",
"{\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"reader = new BufferedReader(new InputStreamReader(stream), 32768)",
"reader",
"new BufferedReader(new InputStreamReader(stream), 32768)",
"tokenizer = null",
"tokenizer",
"null",
"InputStream stream",
"stream",
"public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BProductMax solver = new BProductMax();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BProductMax {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n long ans = Math.max(Math.max(ans1, ans2), Math.max(ans3, ans4));\n out.println(ans);\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 long nextLong() {\n return Long.parseLong(next());\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BProductMax solver = new BProductMax();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BProductMax {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n long a = in.nextLong();\n long b = in.nextLong();\n long c = in.nextLong();\n long d = in.nextLong();\n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n long ans = Math.max(Math.max(ans1, ans2), Math.max(ans3, ans4));\n out.println(ans);\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 long nextLong() {\n return Long.parseLong(next());\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Tarek
*/
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);
BProductMax solver = new BProductMax();
solver.solve(1, in, out);
out.close();
}
static class BProductMax {
public void solve(int testNumber, InputReader in, PrintWriter out) {
long a = in.nextLong();
long b = in.nextLong();
long c = in.nextLong();
long d = in.nextLong();
long ans1 = a * c;
long ans2 = a * d;
long ans3 = b * c;
long ans4 = b * d;
long ans = Math.max(Math.max(ans1, ans2), Math.max(ans3, ans4));
out.println(ans);
}
}
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 long nextLong() {
return Long.parseLong(next());
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
4,
18,
13,
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,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
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
],
[
255,
35
],
[
255,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
45,
47
],
[
41,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
41,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
41,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
41,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
41,
68
],
[
68,
69
],
[
68,
70
],
[
41,
71
],
[
71,
72
],
[
71,
73
],
[
41,
74
],
[
74,
75
],
[
74,
76
],
[
41,
77
],
[
77,
78
],
[
77,
79
],
[
41,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
41,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
41,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
41,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
41,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
41,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
41,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
36,
123
],
[
123,
124
],
[
0,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
125,
129
],
[
129,
130
],
[
125,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
131,
137
],
[
137,
138
],
[
125,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
142,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
152,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
141,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
125,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
173,
174
],
[
125,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
179,
182
],
[
182,
183
],
[
125,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
188,
191
],
[
191,
192
],
[
125,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
199,
204
],
[
204,
205
],
[
204,
206
],
[
199,
207
],
[
207,
208
],
[
208,
209
],
[
199,
210
],
[
211,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
211,
216
],
[
216,
217
],
[
217,
218
],
[
216,
219
],
[
195,
220
],
[
220,
221
],
[
193,
222
],
[
222,
223
],
[
125,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
226,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
231,
236
],
[
236,
237
],
[
236,
238
],
[
231,
239
],
[
239,
240
],
[
240,
241
],
[
231,
242
],
[
243,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
244,
248
],
[
248,
249
],
[
226,
250
],
[
250,
251
],
[
224,
252
],
[
252,
253
],
[
0,
254
],
[
254,
255
],
[
254,
256
]
]
| [
"import java.util.*;\nimport java.io.*;\nimport java.util.Arrays; \nimport java.util.ArrayList; \nimport java.util.Collections; \nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\nimport java.util.StringTokenizer;\nimport java.math.BigInteger;\n\npublic class Main {\n\n public static void main(String[] args) {\n try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n FastScanner in = new FastScanner(System.in);\n \n String x = in.next();\n String y = in.next();\n String w = in.next();\n String z = in.next();\n\n BigInteger a = new BigInteger(x);\n BigInteger b = new BigInteger(y);\n BigInteger c = new BigInteger(w);\n BigInteger d = new BigInteger(z);\n\n BigInteger one = a.multiply(c);\n BigInteger two = a.multiply(d);\n BigInteger three = b.multiply(c);\n BigInteger four = b.multiply(d);\n\n BigInteger biggerInteger1 = one.max(two);\n BigInteger biggerInteger2 = three.max(four);\n\n out.println(biggerInteger1.max(biggerInteger2));\n\n } finally {\n //out.close();\n }\n \n \n }\n}\n\nclass FastScanner {\n private final BufferedReader br;\n private StringTokenizer st;\n \n FastScanner(InputStream InputStream) {\n br = new BufferedReader(new InputStreamReader(InputStream));\n }\n \n String next() {\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 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\n \n ArrayList<Integer> nextIntList(int count) {\n ArrayList<Integer> array = new ArrayList<>();\n for (int n = 0; n < count; n++) {\n int number = nextInt();\n array.add(number);\n }\n return array;\n }\n \n int[] nextIntArray(int count) {\n int[] array = new int[count];\n for (int n = 0; n < count; n++) {\n array[n] = nextInt();\n }\n return array;\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main {\n\n public static void main(String[] args) {\n try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n FastScanner in = new FastScanner(System.in);\n \n String x = in.next();\n String y = in.next();\n String w = in.next();\n String z = in.next();\n\n BigInteger a = new BigInteger(x);\n BigInteger b = new BigInteger(y);\n BigInteger c = new BigInteger(w);\n BigInteger d = new BigInteger(z);\n\n BigInteger one = a.multiply(c);\n BigInteger two = a.multiply(d);\n BigInteger three = b.multiply(c);\n BigInteger four = b.multiply(d);\n\n BigInteger biggerInteger1 = one.max(two);\n BigInteger biggerInteger2 = three.max(four);\n\n out.println(biggerInteger1.max(biggerInteger2));\n\n } finally {\n //out.close();\n }\n \n \n }\n}",
"Main",
"public static void main(String[] args) {\n try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n FastScanner in = new FastScanner(System.in);\n \n String x = in.next();\n String y = in.next();\n String w = in.next();\n String z = in.next();\n\n BigInteger a = new BigInteger(x);\n BigInteger b = new BigInteger(y);\n BigInteger c = new BigInteger(w);\n BigInteger d = new BigInteger(z);\n\n BigInteger one = a.multiply(c);\n BigInteger two = a.multiply(d);\n BigInteger three = b.multiply(c);\n BigInteger four = b.multiply(d);\n\n BigInteger biggerInteger1 = one.max(two);\n BigInteger biggerInteger2 = three.max(four);\n\n out.println(biggerInteger1.max(biggerInteger2));\n\n } finally {\n //out.close();\n }\n \n \n }",
"main",
"{\n try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n FastScanner in = new FastScanner(System.in);\n \n String x = in.next();\n String y = in.next();\n String w = in.next();\n String z = in.next();\n\n BigInteger a = new BigInteger(x);\n BigInteger b = new BigInteger(y);\n BigInteger c = new BigInteger(w);\n BigInteger d = new BigInteger(z);\n\n BigInteger one = a.multiply(c);\n BigInteger two = a.multiply(d);\n BigInteger three = b.multiply(c);\n BigInteger four = b.multiply(d);\n\n BigInteger biggerInteger1 = one.max(two);\n BigInteger biggerInteger2 = three.max(four);\n\n out.println(biggerInteger1.max(biggerInteger2));\n\n } finally {\n //out.close();\n }\n \n \n }",
"try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n FastScanner in = new FastScanner(System.in);\n \n String x = in.next();\n String y = in.next();\n String w = in.next();\n String z = in.next();\n\n BigInteger a = new BigInteger(x);\n BigInteger b = new BigInteger(y);\n BigInteger c = new BigInteger(w);\n BigInteger d = new BigInteger(z);\n\n BigInteger one = a.multiply(c);\n BigInteger two = a.multiply(d);\n BigInteger three = b.multiply(c);\n BigInteger four = b.multiply(d);\n\n BigInteger biggerInteger1 = one.max(two);\n BigInteger biggerInteger2 = three.max(four);\n\n out.println(biggerInteger1.max(biggerInteger2));\n\n } finally {\n //out.close();\n }",
"{\n //out.close();\n }",
"{\n FastScanner in = new FastScanner(System.in);\n \n String x = in.next();\n String y = in.next();\n String w = in.next();\n String z = in.next();\n\n BigInteger a = new BigInteger(x);\n BigInteger b = new BigInteger(y);\n BigInteger c = new BigInteger(w);\n BigInteger d = new BigInteger(z);\n\n BigInteger one = a.multiply(c);\n BigInteger two = a.multiply(d);\n BigInteger three = b.multiply(c);\n BigInteger four = b.multiply(d);\n\n BigInteger biggerInteger1 = one.max(two);\n BigInteger biggerInteger2 = three.max(four);\n\n out.println(biggerInteger1.max(biggerInteger2));\n\n }",
"PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))",
"PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))",
"new PrintWriter(new BufferedOutputStream(System.out))",
"FastScanner in = new FastScanner(System.in);",
"in",
"new FastScanner(System.in)",
"String x = in.next();",
"x",
"in.next()",
"in.next",
"in",
"String y = in.next();",
"y",
"in.next()",
"in.next",
"in",
"String w = in.next();",
"w",
"in.next()",
"in.next",
"in",
"String z = in.next();",
"z",
"in.next()",
"in.next",
"in",
"BigInteger a = new BigInteger(x);",
"a",
"new BigInteger(x)",
"BigInteger b = new BigInteger(y);",
"b",
"new BigInteger(y)",
"BigInteger c = new BigInteger(w);",
"c",
"new BigInteger(w)",
"BigInteger d = new BigInteger(z);",
"d",
"new BigInteger(z)",
"BigInteger one = a.multiply(c);",
"one",
"a.multiply(c)",
"a.multiply",
"a",
"c",
"BigInteger two = a.multiply(d);",
"two",
"a.multiply(d)",
"a.multiply",
"a",
"d",
"BigInteger three = b.multiply(c);",
"three",
"b.multiply(c)",
"b.multiply",
"b",
"c",
"BigInteger four = b.multiply(d);",
"four",
"b.multiply(d)",
"b.multiply",
"b",
"d",
"BigInteger biggerInteger1 = one.max(two);",
"biggerInteger1",
"one.max(two)",
"one.max",
"one",
"two",
"BigInteger biggerInteger2 = three.max(four);",
"biggerInteger2",
"three.max(four)",
"three.max",
"three",
"four",
"out.println(biggerInteger1.max(biggerInteger2))",
"out.println",
"out",
"biggerInteger1.max(biggerInteger2)",
"biggerInteger1.max",
"biggerInteger1",
"biggerInteger2",
"String[] args",
"args",
"class FastScanner {\n private final BufferedReader br;\n private StringTokenizer st;\n \n FastScanner(InputStream InputStream) {\n br = new BufferedReader(new InputStreamReader(InputStream));\n }\n \n String next() {\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 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\n \n ArrayList<Integer> nextIntList(int count) {\n ArrayList<Integer> array = new ArrayList<>();\n for (int n = 0; n < count; n++) {\n int number = nextInt();\n array.add(number);\n }\n return array;\n }\n \n int[] nextIntArray(int count) {\n int[] array = new int[count];\n for (int n = 0; n < count; n++) {\n array[n] = nextInt();\n }\n return array;\n }\n}",
"FastScanner",
"private final BufferedReader br;",
"br",
"private StringTokenizer st;",
"st",
"FastScanner(InputStream InputStream) {\n br = new BufferedReader(new InputStreamReader(InputStream));\n }",
"FastScanner",
"{\n br = new BufferedReader(new InputStreamReader(InputStream));\n }",
"br = new BufferedReader(new InputStreamReader(InputStream))",
"br",
"new BufferedReader(new InputStreamReader(InputStream))",
"InputStream InputStream",
"InputStream",
"String next() {\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 }",
"next",
"{\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",
"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",
"ArrayList<Integer> nextIntList(int count) {\n ArrayList<Integer> array = new ArrayList<>();\n for (int n = 0; n < count; n++) {\n int number = nextInt();\n array.add(number);\n }\n return array;\n }",
"nextIntList",
"{\n ArrayList<Integer> array = new ArrayList<>();\n for (int n = 0; n < count; n++) {\n int number = nextInt();\n array.add(number);\n }\n return array;\n }",
"ArrayList<Integer> array = new ArrayList<>();",
"array",
"new ArrayList<>()",
"for (int n = 0; n < count; n++) {\n int number = nextInt();\n array.add(number);\n }",
"int n = 0;",
"int n = 0;",
"n",
"0",
"n < count",
"n",
"count",
"n++",
"n++",
"n",
"{\n int number = nextInt();\n array.add(number);\n }",
"{\n int number = nextInt();\n array.add(number);\n }",
"int number = nextInt();",
"number",
"nextInt()",
"nextInt",
"array.add(number)",
"array.add",
"array",
"number",
"return array;",
"array",
"int count",
"count",
"int[] nextIntArray(int count) {\n int[] array = new int[count];\n for (int n = 0; n < count; n++) {\n array[n] = nextInt();\n }\n return array;\n }",
"nextIntArray",
"{\n int[] array = new int[count];\n for (int n = 0; n < count; n++) {\n array[n] = nextInt();\n }\n return array;\n }",
"int[] array = new int[count];",
"array",
"new int[count]",
"count",
"for (int n = 0; n < count; n++) {\n array[n] = nextInt();\n }",
"int n = 0;",
"int n = 0;",
"n",
"0",
"n < count",
"n",
"count",
"n++",
"n++",
"n",
"{\n array[n] = nextInt();\n }",
"{\n array[n] = nextInt();\n }",
"array[n] = nextInt()",
"array[n]",
"array",
"n",
"nextInt()",
"nextInt",
"return array;",
"array",
"int count",
"count",
"public class Main {\n\n public static void main(String[] args) {\n try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n FastScanner in = new FastScanner(System.in);\n \n String x = in.next();\n String y = in.next();\n String w = in.next();\n String z = in.next();\n\n BigInteger a = new BigInteger(x);\n BigInteger b = new BigInteger(y);\n BigInteger c = new BigInteger(w);\n BigInteger d = new BigInteger(z);\n\n BigInteger one = a.multiply(c);\n BigInteger two = a.multiply(d);\n BigInteger three = b.multiply(c);\n BigInteger four = b.multiply(d);\n\n BigInteger biggerInteger1 = one.max(two);\n BigInteger biggerInteger2 = three.max(four);\n\n out.println(biggerInteger1.max(biggerInteger2));\n\n } finally {\n //out.close();\n }\n \n \n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n FastScanner in = new FastScanner(System.in);\n \n String x = in.next();\n String y = in.next();\n String w = in.next();\n String z = in.next();\n\n BigInteger a = new BigInteger(x);\n BigInteger b = new BigInteger(y);\n BigInteger c = new BigInteger(w);\n BigInteger d = new BigInteger(z);\n\n BigInteger one = a.multiply(c);\n BigInteger two = a.multiply(d);\n BigInteger three = b.multiply(c);\n BigInteger four = b.multiply(d);\n\n BigInteger biggerInteger1 = one.max(two);\n BigInteger biggerInteger2 = three.max(four);\n\n out.println(biggerInteger1.max(biggerInteger2));\n\n } finally {\n //out.close();\n }\n \n \n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Collections;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.InputStream;
import java.util.StringTokenizer;
import java.math.BigInteger;
public class Main {
public static void main(String[] args) {
try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {
FastScanner in = new FastScanner(System.in);
String x = in.next();
String y = in.next();
String w = in.next();
String z = in.next();
BigInteger a = new BigInteger(x);
BigInteger b = new BigInteger(y);
BigInteger c = new BigInteger(w);
BigInteger d = new BigInteger(z);
BigInteger one = a.multiply(c);
BigInteger two = a.multiply(d);
BigInteger three = b.multiply(c);
BigInteger four = b.multiply(d);
BigInteger biggerInteger1 = one.max(two);
BigInteger biggerInteger2 = three.max(four);
out.println(biggerInteger1.max(biggerInteger2));
} finally {
//out.close();
}
}
}
class FastScanner {
private final BufferedReader br;
private StringTokenizer st;
FastScanner(InputStream InputStream) {
br = new BufferedReader(new InputStreamReader(InputStream));
}
String next() {
while (st == null || !st.hasMoreTokens()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
ArrayList<Integer> nextIntList(int count) {
ArrayList<Integer> array = new ArrayList<>();
for (int n = 0; n < count; n++) {
int number = nextInt();
array.add(number);
}
return array;
}
int[] nextIntArray(int count) {
int[] array = new int[count];
for (int n = 0; n < count; n++) {
array[n] = nextInt();
}
return array;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
41,
13,
20,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
40,
13,
41,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
13,
30,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
8,
48
],
[
48,
49
],
[
48,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
51,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
64,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
76,
88
],
[
88,
89
],
[
8,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
92,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
95,
106
],
[
107,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
108,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
8,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
6,
126
],
[
126,
127
]
]
| [
"import java.util.*;\n\n\nclass Main{\n //ans\n public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n long[] inp = new long[4]; \n inp[0] = (long)sc.nextInt();\n inp[1] = (long)(long)sc.nextInt();\n inp[2] = (long)sc.nextInt();\n inp[3] = (long)sc.nextInt();\n long[] time = new long[4];\n int ti = 0;\n for(int i = 0;i<2;i++){\n for(int k = 2;k<4;k++){\n time[ti]=inp[i]*inp[k];\n ti++;\n }\n }\n long max = time[0];\n for(int i = 1;i<4;i++){\n if(time[i]>max){\n max = time[i];\n }\n }\n System.out.println(max);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n //ans\n public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n long[] inp = new long[4]; \n inp[0] = (long)sc.nextInt();\n inp[1] = (long)(long)sc.nextInt();\n inp[2] = (long)sc.nextInt();\n inp[3] = (long)sc.nextInt();\n long[] time = new long[4];\n int ti = 0;\n for(int i = 0;i<2;i++){\n for(int k = 2;k<4;k++){\n time[ti]=inp[i]*inp[k];\n ti++;\n }\n }\n long max = time[0];\n for(int i = 1;i<4;i++){\n if(time[i]>max){\n max = time[i];\n }\n }\n System.out.println(max);\n }\n}",
"Main",
"//ans\n public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n long[] inp = new long[4]; \n inp[0] = (long)sc.nextInt();\n inp[1] = (long)(long)sc.nextInt();\n inp[2] = (long)sc.nextInt();\n inp[3] = (long)sc.nextInt();\n long[] time = new long[4];\n int ti = 0;\n for(int i = 0;i<2;i++){\n for(int k = 2;k<4;k++){\n time[ti]=inp[i]*inp[k];\n ti++;\n }\n }\n long max = time[0];\n for(int i = 1;i<4;i++){\n if(time[i]>max){\n max = time[i];\n }\n }\n System.out.println(max);\n }",
"main",
"{\n\tScanner sc = new Scanner(System.in);\n long[] inp = new long[4]; \n inp[0] = (long)sc.nextInt();\n inp[1] = (long)(long)sc.nextInt();\n inp[2] = (long)sc.nextInt();\n inp[3] = (long)sc.nextInt();\n long[] time = new long[4];\n int ti = 0;\n for(int i = 0;i<2;i++){\n for(int k = 2;k<4;k++){\n time[ti]=inp[i]*inp[k];\n ti++;\n }\n }\n long max = time[0];\n for(int i = 1;i<4;i++){\n if(time[i]>max){\n max = time[i];\n }\n }\n System.out.println(max);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long[] inp = new long[4];",
"inp",
"new long[4]",
"4",
"inp[0] = (long)sc.nextInt()",
"inp[0]",
"inp",
"0",
"(long)sc.nextInt()",
"sc.nextInt",
"sc",
"inp[1] = (long)(long)sc.nextInt()",
"inp[1]",
"inp",
"1",
"(long)(long)sc.nextInt()",
"sc.nextInt",
"sc",
"inp[2] = (long)sc.nextInt()",
"inp[2]",
"inp",
"2",
"(long)sc.nextInt()",
"sc.nextInt",
"sc",
"inp[3] = (long)sc.nextInt()",
"inp[3]",
"inp",
"3",
"(long)sc.nextInt()",
"sc.nextInt",
"sc",
"long[] time = new long[4];",
"time",
"new long[4]",
"4",
"int ti = 0;",
"ti",
"0",
"for(int i = 0;i<2;i++){\n for(int k = 2;k<4;k++){\n time[ti]=inp[i]*inp[k];\n ti++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<2",
"i",
"2",
"i++",
"i++",
"i",
"{\n for(int k = 2;k<4;k++){\n time[ti]=inp[i]*inp[k];\n ti++;\n }\n }",
"{\n for(int k = 2;k<4;k++){\n time[ti]=inp[i]*inp[k];\n ti++;\n }\n }",
"for(int k = 2;k<4;k++){\n time[ti]=inp[i]*inp[k];\n ti++;\n }",
"int k = 2;",
"int k = 2;",
"k",
"2",
"k<4",
"k",
"4",
"k++",
"k++",
"k",
"{\n time[ti]=inp[i]*inp[k];\n ti++;\n }",
"{\n time[ti]=inp[i]*inp[k];\n ti++;\n }",
"time[ti]=inp[i]*inp[k]",
"time[ti]",
"time",
"ti",
"inp[i]*inp[k]",
"inp[i]",
"inp",
"i",
"inp[k]",
"inp",
"k",
"ti++",
"ti",
"long max = time[0];",
"max",
"time[0]",
"time",
"0",
"for(int i = 1;i<4;i++){\n if(time[i]>max){\n max = time[i];\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n if(time[i]>max){\n max = time[i];\n }\n }",
"{\n if(time[i]>max){\n max = time[i];\n }\n }",
"if(time[i]>max){\n max = time[i];\n }",
"time[i]>max",
"time[i]",
"time",
"i",
"max",
"{\n max = time[i];\n }",
"max = time[i]",
"max",
"time[i]",
"time",
"i",
"System.out.println(max)",
"System.out.println",
"System.out",
"System",
"System.out",
"max",
"String[] args",
"args"
]
| import java.util.*;
class Main{
//ans
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
long[] inp = new long[4];
inp[0] = (long)sc.nextInt();
inp[1] = (long)(long)sc.nextInt();
inp[2] = (long)sc.nextInt();
inp[3] = (long)sc.nextInt();
long[] time = new long[4];
int ti = 0;
for(int i = 0;i<2;i++){
for(int k = 2;k<4;k++){
time[ti]=inp[i]*inp[k];
ti++;
}
}
long max = time[0];
for(int i = 1;i<4;i++){
if(time[i]>max){
max = time[i];
}
}
System.out.println(max);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
13,
4,
18,
13,
13,
41,
13,
4,
18,
4,
18,
13,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
4,
18,
13,
13,
4,
18,
13,
13,
41,
13,
4,
18,
4,
18,
13,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
107,
8
],
[
107,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
11,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
11,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
11,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
11,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
67,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
11,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
11,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
11,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
9,
104
],
[
104,
105
],
[
0,
106
],
[
106,
107
],
[
106,
108
]
]
| [
"import java.math.BigInteger;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n\n BigInteger ac = BigInteger.valueOf(a).multiply(BigInteger.valueOf(c));\n BigInteger ad = BigInteger.valueOf(a).multiply(BigInteger.valueOf(d));\n\n BigInteger result1 = ac.max(ad);\n\n BigInteger bc = BigInteger.valueOf(b).multiply(BigInteger.valueOf(c));\n BigInteger bd = BigInteger.valueOf(b).multiply(BigInteger.valueOf(d));\n\n BigInteger result2 = bc.max(bd);\n\n System.out.println(result1.max(result2));\n\n }\n}",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n\n BigInteger ac = BigInteger.valueOf(a).multiply(BigInteger.valueOf(c));\n BigInteger ad = BigInteger.valueOf(a).multiply(BigInteger.valueOf(d));\n\n BigInteger result1 = ac.max(ad);\n\n BigInteger bc = BigInteger.valueOf(b).multiply(BigInteger.valueOf(c));\n BigInteger bd = BigInteger.valueOf(b).multiply(BigInteger.valueOf(d));\n\n BigInteger result2 = bc.max(bd);\n\n System.out.println(result1.max(result2));\n\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n\n BigInteger ac = BigInteger.valueOf(a).multiply(BigInteger.valueOf(c));\n BigInteger ad = BigInteger.valueOf(a).multiply(BigInteger.valueOf(d));\n\n BigInteger result1 = ac.max(ad);\n\n BigInteger bc = BigInteger.valueOf(b).multiply(BigInteger.valueOf(c));\n BigInteger bd = BigInteger.valueOf(b).multiply(BigInteger.valueOf(d));\n\n BigInteger result2 = bc.max(bd);\n\n System.out.println(result1.max(result2));\n\n }",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n\n BigInteger ac = BigInteger.valueOf(a).multiply(BigInteger.valueOf(c));\n BigInteger ad = BigInteger.valueOf(a).multiply(BigInteger.valueOf(d));\n\n BigInteger result1 = ac.max(ad);\n\n BigInteger bc = BigInteger.valueOf(b).multiply(BigInteger.valueOf(c));\n BigInteger bd = BigInteger.valueOf(b).multiply(BigInteger.valueOf(d));\n\n BigInteger result2 = bc.max(bd);\n\n System.out.println(result1.max(result2));\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"BigInteger ac = BigInteger.valueOf(a).multiply(BigInteger.valueOf(c));",
"ac",
"BigInteger.valueOf(a).multiply(BigInteger.valueOf(c))",
"BigInteger.valueOf(a).multiply",
"BigInteger.valueOf(a)",
"BigInteger.valueOf",
"BigInteger",
"a",
"BigInteger.valueOf(c)",
"BigInteger.valueOf",
"BigInteger",
"c",
"BigInteger ad = BigInteger.valueOf(a).multiply(BigInteger.valueOf(d));",
"ad",
"BigInteger.valueOf(a).multiply(BigInteger.valueOf(d))",
"BigInteger.valueOf(a).multiply",
"BigInteger.valueOf(a)",
"BigInteger.valueOf",
"BigInteger",
"a",
"BigInteger.valueOf(d)",
"BigInteger.valueOf",
"BigInteger",
"d",
"BigInteger result1 = ac.max(ad);",
"result1",
"ac.max(ad)",
"ac.max",
"ac",
"ad",
"BigInteger bc = BigInteger.valueOf(b).multiply(BigInteger.valueOf(c));",
"bc",
"BigInteger.valueOf(b).multiply(BigInteger.valueOf(c))",
"BigInteger.valueOf(b).multiply",
"BigInteger.valueOf(b)",
"BigInteger.valueOf",
"BigInteger",
"b",
"BigInteger.valueOf(c)",
"BigInteger.valueOf",
"BigInteger",
"c",
"BigInteger bd = BigInteger.valueOf(b).multiply(BigInteger.valueOf(d));",
"bd",
"BigInteger.valueOf(b).multiply(BigInteger.valueOf(d))",
"BigInteger.valueOf(b).multiply",
"BigInteger.valueOf(b)",
"BigInteger.valueOf",
"BigInteger",
"b",
"BigInteger.valueOf(d)",
"BigInteger.valueOf",
"BigInteger",
"d",
"BigInteger result2 = bc.max(bd);",
"result2",
"bc.max(bd)",
"bc.max",
"bc",
"bd",
"System.out.println(result1.max(result2))",
"System.out.println",
"System.out",
"System",
"System.out",
"result1.max(result2)",
"result1.max",
"result1",
"result2",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n\n BigInteger ac = BigInteger.valueOf(a).multiply(BigInteger.valueOf(c));\n BigInteger ad = BigInteger.valueOf(a).multiply(BigInteger.valueOf(d));\n\n BigInteger result1 = ac.max(ad);\n\n BigInteger bc = BigInteger.valueOf(b).multiply(BigInteger.valueOf(c));\n BigInteger bd = BigInteger.valueOf(b).multiply(BigInteger.valueOf(d));\n\n BigInteger result2 = bc.max(bd);\n\n System.out.println(result1.max(result2));\n\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n\n BigInteger ac = BigInteger.valueOf(a).multiply(BigInteger.valueOf(c));\n BigInteger ad = BigInteger.valueOf(a).multiply(BigInteger.valueOf(d));\n\n BigInteger result1 = ac.max(ad);\n\n BigInteger bc = BigInteger.valueOf(b).multiply(BigInteger.valueOf(c));\n BigInteger bd = BigInteger.valueOf(b).multiply(BigInteger.valueOf(d));\n\n BigInteger result2 = bc.max(bd);\n\n System.out.println(result1.max(result2));\n\n }\n}",
"Main"
]
| import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
BigInteger ac = BigInteger.valueOf(a).multiply(BigInteger.valueOf(c));
BigInteger ad = BigInteger.valueOf(a).multiply(BigInteger.valueOf(d));
BigInteger result1 = ac.max(ad);
BigInteger bc = BigInteger.valueOf(b).multiply(BigInteger.valueOf(c));
BigInteger bd = BigInteger.valueOf(b).multiply(BigInteger.valueOf(d));
BigInteger result2 = bc.max(bd);
System.out.println(result1.max(result2));
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
18,
13,
13,
41,
13,
2,
17,
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,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
41,
13,
2,
18,
13,
17,
18,
13,
17,
41,
13,
2,
18,
13,
17,
18,
13,
17,
41,
13,
4,
18,
13,
13,
13,
14,
2,
13,
17,
4,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
13,
4,
18,
13,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
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
],
[
20,
21
],
[
20,
22
],
[
7,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
7,
28
],
[
28,
29
],
[
28,
30
],
[
7,
32
],
[
32,
33
],
[
32,
34
],
[
7,
35
],
[
35,
36
],
[
35,
37
],
[
7,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
44,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
49,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
79,
81
],
[
49,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
88,
90
],
[
49,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
93,
97
],
[
49,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
98,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
121,
123
],
[
114,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
128,
129
],
[
128,
130
],
[
7,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
136,
138
],
[
133,
139
],
[
139,
140
],
[
139,
141
],
[
133,
142
],
[
142,
143
],
[
133,
144
],
[
144,
145
],
[
145,
146
],
[
7,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
147,
153
],
[
153,
154
],
[
7,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
158,
163
],
[
163,
164
],
[
164,
165
],
[
157,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
174,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
170,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
157,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
7,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
205,
209
],
[
209,
210
],
[
209,
211
],
[
200,
212
],
[
212,
213
],
[
7,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
217,
218
],
[
216,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
221,
226
],
[
226,
227
],
[
220,
228
],
[
228,
229
],
[
228,
230
],
[
216,
231
],
[
231,
232
],
[
7,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
237,
240
],
[
240,
241
],
[
7,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
7,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
250,
255
],
[
255,
256
],
[
255,
257
],
[
250,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
258,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
264,
267
],
[
263,
268
],
[
268,
269
],
[
268,
270
],
[
270,
271
],
[
250,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
7,
276
],
[
276,
277
],
[
276,
278
],
[
278,
279
],
[
279,
280
],
[
279,
281
],
[
278,
283
],
[
283,
284
],
[
283,
285
],
[
285,
286
],
[
278,
287
],
[
287,
288
],
[
287,
289
],
[
278,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
292,
294
],
[
291,
295
],
[
295,
296
],
[
296,
297
],
[
296,
298
],
[
290,
299
],
[
299,
300
],
[
300,
301
],
[
301,
302
],
[
301,
303
],
[
303,
304
],
[
300,
305
],
[
299,
306
],
[
306,
307
],
[
306,
308
],
[
308,
309
],
[
278,
310
],
[
310,
311
],
[
311,
312
],
[
312,
313
],
[
312,
314
],
[
311,
315
],
[
311,
316
],
[
316,
317
],
[
317,
318
],
[
316,
319
],
[
316,
320
],
[
276,
321
],
[
321,
322
],
[
7,
323
],
[
323,
324
],
[
323,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
325,
330
],
[
330,
331
],
[
331,
332
],
[
332,
333
],
[
332,
334
],
[
330,
335
],
[
335,
336
],
[
335,
337
],
[
330,
338
],
[
338,
339
],
[
339,
340
],
[
330,
341
],
[
342,
342
],
[
342,
343
],
[
343,
344
],
[
344,
345
],
[
344,
346
],
[
343,
347
],
[
347,
348
],
[
347,
349
],
[
325,
350
],
[
350,
351
],
[
323,
352
],
[
352,
353
],
[
323,
354
],
[
354,
355
],
[
7,
356
],
[
356,
357
],
[
356,
358
],
[
358,
359
],
[
359,
360
],
[
359,
361
],
[
358,
363
],
[
363,
364
],
[
364,
365
],
[
365,
366
],
[
365,
367
],
[
363,
368
],
[
368,
369
],
[
368,
370
],
[
363,
371
],
[
371,
372
],
[
372,
373
],
[
363,
374
],
[
375,
375
],
[
375,
376
],
[
376,
377
],
[
377,
378
],
[
377,
379
],
[
376,
380
],
[
380,
381
],
[
358,
382
],
[
382,
383
],
[
356,
384
],
[
384,
385
],
[
7,
386
],
[
386,
387
],
[
386,
388
],
[
388,
389
],
[
389,
390
],
[
389,
391
],
[
388,
392
],
[
392,
393
],
[
388,
394
],
[
394,
395
],
[
394,
396
],
[
388,
397
],
[
397,
398
],
[
398,
399
],
[
399,
400
],
[
400,
401
],
[
400,
402
],
[
402,
403
],
[
399,
404
],
[
404,
405
],
[
398,
406
],
[
406,
407
],
[
407,
408
],
[
408,
409
],
[
409,
410
],
[
409,
411
],
[
408,
412
],
[
412,
413
],
[
412,
414
],
[
407,
415
],
[
415,
416
],
[
415,
417
],
[
388,
418
],
[
418,
419
],
[
419,
420
],
[
419,
421
],
[
418,
422
],
[
422,
423
],
[
423,
424
],
[
423,
425
],
[
422,
426
],
[
426,
427
],
[
426,
428
],
[
428,
429
],
[
388,
430
],
[
430,
431
],
[
430,
432
],
[
432,
433
],
[
433,
434
],
[
434,
435
],
[
435,
436
],
[
435,
437
],
[
434,
438
],
[
438,
439
],
[
438,
440
],
[
433,
441
],
[
441,
442
],
[
442,
443
],
[
442,
444
],
[
444,
445
],
[
445,
446
],
[
445,
447
],
[
444,
448
],
[
448,
449
],
[
448,
450
],
[
433,
451
],
[
451,
452
],
[
452,
453
],
[
453,
454
],
[
453,
455
],
[
455,
456
],
[
453,
457
],
[
432,
458
],
[
458,
459
],
[
458,
460
],
[
460,
461
],
[
7,
462
],
[
462,
463
],
[
462,
464
],
[
464,
465
],
[
465,
466
],
[
465,
467
],
[
464,
468
],
[
468,
469
],
[
464,
470
],
[
470,
471
],
[
470,
472
],
[
464,
473
],
[
473,
474
],
[
474,
475
],
[
475,
476
],
[
476,
477
],
[
476,
478
],
[
478,
479
],
[
475,
480
],
[
480,
481
],
[
474,
482
],
[
482,
483
],
[
483,
484
],
[
484,
485
],
[
485,
486
],
[
485,
487
],
[
484,
488
],
[
488,
489
],
[
488,
490
],
[
483,
491
],
[
491,
492
],
[
491,
493
],
[
464,
494
],
[
494,
495
],
[
495,
496
],
[
495,
497
],
[
494,
498
],
[
498,
499
],
[
499,
500
],
[
499,
501
],
[
498,
502
],
[
502,
503
],
[
502,
504
],
[
504,
505
],
[
464,
506
],
[
506,
507
],
[
506,
508
],
[
508,
509
],
[
509,
510
],
[
510,
511
],
[
511,
512
],
[
511,
513
],
[
510,
514
],
[
514,
515
],
[
514,
516
],
[
509,
517
],
[
517,
518
],
[
518,
519
],
[
518,
520
],
[
520,
521
],
[
521,
522
],
[
521,
523
],
[
520,
524
],
[
524,
525
],
[
524,
526
],
[
509,
527
],
[
527,
528
],
[
528,
529
],
[
529,
530
],
[
529,
531
],
[
531,
532
],
[
529,
533
],
[
508,
534
],
[
534,
535
],
[
534,
536
],
[
536,
537
]
]
| [
"import java.util.*;\nimport java.io.*;\n\nclass Main {\n\n Scanner in;\n InputStream is;\n PrintWriter out;\n String INPUT = \"\";\n//----------------------------------------------------------------------------------------------------//\n int INF=Integer.MAX_VALUE;\n int mod=(int)(1e9)+7;\n \n void solve() {\n int t = 1;\n //t=ni();\n while (t-- > 0) {\n long a[]=new long[4];\n for (int i = 0; i < 4; i++) {\n a[i]=nl();\n }\n long m1=a[0]*a[2];\n long m2=a[1]*a[3];\n long m=Math.max(m1,m2);\n if(m>=0)out.println(m);\n else if(m<0){\n out.println(Math.max(a[0]*a[3],a[1]*a[2]));\n }\n }\n }\n//----------------------------------------------------------------------------------------------------//\n\n void run() throws Exception {\n //File fileIN = new File(\"C:\\\\Users\\\\Sarthak\\\\Desktop\\\\input.txt\");is = new FileInputStream(fileIN);\n //File fileOUT = new File(\"C:\\\\Users\\\\Sarthak\\\\Desktop\\\\output.txt\");out = new PrintWriter(fileOUT);;\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}",
"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 int INF=Integer.MAX_VALUE;\n int mod=(int)(1e9)+7;\n \n void solve() {\n int t = 1;\n //t=ni();\n while (t-- > 0) {\n long a[]=new long[4];\n for (int i = 0; i < 4; i++) {\n a[i]=nl();\n }\n long m1=a[0]*a[2];\n long m2=a[1]*a[3];\n long m=Math.max(m1,m2);\n if(m>=0)out.println(m);\n else if(m<0){\n out.println(Math.max(a[0]*a[3],a[1]*a[2]));\n }\n }\n }\n//----------------------------------------------------------------------------------------------------//\n\n void run() throws Exception {\n //File fileIN = new File(\"C:\\\\Users\\\\Sarthak\\\\Desktop\\\\input.txt\");is = new FileInputStream(fileIN);\n //File fileOUT = new File(\"C:\\\\Users\\\\Sarthak\\\\Desktop\\\\output.txt\");out = new PrintWriter(fileOUT);;\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}",
"Main",
"Scanner in;",
"in",
"InputStream is;",
"is",
"PrintWriter out;",
"out",
"String INPUT = \"\";",
"INPUT",
"\"\"",
"//----------------------------------------------------------------------------------------------------//\n int INF=Integer.MAX_VALUE;",
"INF",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"int mod=(int)(1e9)+7;",
"mod",
"(int)(1e9)+7",
"(int)(1e9)",
"7",
"private byte[] inbuf = new byte[1024];",
"inbuf",
"new byte[1024]",
"1024",
"public int lenbuf = 0",
"lenbuf",
"0",
"ptrbuf = 0;",
"ptrbuf",
"0",
"void solve() {\n int t = 1;\n //t=ni();\n while (t-- > 0) {\n long a[]=new long[4];\n for (int i = 0; i < 4; i++) {\n a[i]=nl();\n }\n long m1=a[0]*a[2];\n long m2=a[1]*a[3];\n long m=Math.max(m1,m2);\n if(m>=0)out.println(m);\n else if(m<0){\n out.println(Math.max(a[0]*a[3],a[1]*a[2]));\n }\n }\n }",
"solve",
"{\n int t = 1;\n //t=ni();\n while (t-- > 0) {\n long a[]=new long[4];\n for (int i = 0; i < 4; i++) {\n a[i]=nl();\n }\n long m1=a[0]*a[2];\n long m2=a[1]*a[3];\n long m=Math.max(m1,m2);\n if(m>=0)out.println(m);\n else if(m<0){\n out.println(Math.max(a[0]*a[3],a[1]*a[2]));\n }\n }\n }",
"int t = 1;",
"t",
"1",
"while (t-- > 0) {\n long a[]=new long[4];\n for (int i = 0; i < 4; i++) {\n a[i]=nl();\n }\n long m1=a[0]*a[2];\n long m2=a[1]*a[3];\n long m=Math.max(m1,m2);\n if(m>=0)out.println(m);\n else if(m<0){\n out.println(Math.max(a[0]*a[3],a[1]*a[2]));\n }\n }",
"t-- > 0",
"t--",
"t",
"0",
"{\n long a[]=new long[4];\n for (int i = 0; i < 4; i++) {\n a[i]=nl();\n }\n long m1=a[0]*a[2];\n long m2=a[1]*a[3];\n long m=Math.max(m1,m2);\n if(m>=0)out.println(m);\n else if(m<0){\n out.println(Math.max(a[0]*a[3],a[1]*a[2]));\n }\n }",
"long a[]=new long[4];",
"a",
"new long[4]",
"4",
"for (int i = 0; i < 4; i++) {\n a[i]=nl();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n a[i]=nl();\n }",
"{\n a[i]=nl();\n }",
"a[i]=nl()",
"a[i]",
"a",
"i",
"nl()",
"nl",
"long m1=a[0]*a[2];",
"m1",
"a[0]*a[2]",
"a[0]",
"a",
"0",
"a[2]",
"a",
"2",
"long m2=a[1]*a[3];",
"m2",
"a[1]*a[3]",
"a[1]",
"a",
"1",
"a[3]",
"a",
"3",
"long m=Math.max(m1,m2);",
"m",
"Math.max(m1,m2)",
"Math.max",
"Math",
"m1",
"m2",
"if(m>=0)out.println(m);\n else if(m<0){\n out.println(Math.max(a[0]*a[3],a[1]*a[2]));\n }",
"m>=0",
"m",
"0",
"out.println(m)",
"out.println",
"out",
"m",
"if(m<0){\n out.println(Math.max(a[0]*a[3],a[1]*a[2]));\n }",
"m<0",
"m",
"0",
"{\n out.println(Math.max(a[0]*a[3],a[1]*a[2]));\n }",
"out.println(Math.max(a[0]*a[3],a[1]*a[2]))",
"out.println",
"out",
"Math.max(a[0]*a[3],a[1]*a[2])",
"Math.max",
"Math",
"a[0]*a[3]",
"a[0]",
"a",
"0",
"a[3]",
"a",
"3",
"a[1]*a[2]",
"a[1]",
"a",
"1",
"a[2]",
"a",
"2",
"void run() throws Exception {\n //File fileIN = new File(\"C:\\\\Users\\\\Sarthak\\\\Desktop\\\\input.txt\");is = new FileInputStream(fileIN);\n //File fileOUT = new File(\"C:\\\\Users\\\\Sarthak\\\\Desktop\\\\output.txt\");out = new PrintWriter(fileOUT);;\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 //File fileIN = new File(\"C:\\\\Users\\\\Sarthak\\\\Desktop\\\\input.txt\");is = new FileInputStream(fileIN);\n //File fileOUT = new File(\"C:\\\\Users\\\\Sarthak\\\\Desktop\\\\output.txt\");out = new PrintWriter(fileOUT);;\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 = "";
//----------------------------------------------------------------------------------------------------//
int INF=Integer.MAX_VALUE;
int mod=(int)(1e9)+7;
void solve() {
int t = 1;
//t=ni();
while (t-- > 0) {
long a[]=new long[4];
for (int i = 0; i < 4; i++) {
a[i]=nl();
}
long m1=a[0]*a[2];
long m2=a[1]*a[3];
long m=Math.max(m1,m2);
if(m>=0)out.println(m);
else if(m<0){
out.println(Math.max(a[0]*a[3],a[1]*a[2]));
}
}
}
//----------------------------------------------------------------------------------------------------//
void run() throws Exception {
//File fileIN = new File("C:\\Users\\Sarthak\\Desktop\\input.txt");is = new FileInputStream(fileIN);
//File fileOUT = new File("C:\\Users\\Sarthak\\Desktop\\output.txt");out = new PrintWriter(fileOUT);;
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();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
2,
13,
13,
13,
30,
0,
13,
2,
13,
13,
14,
2,
2,
13,
13,
13,
30,
0,
13,
2,
13,
13,
14,
2,
13,
17,
30,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
2,
13,
13,
30,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
93,
5
],
[
93,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
64,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
6,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextInt();\n\t\tlong b = sc.nextInt();\n\t\tlong c = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tlong answer = 0;\n\t\tif (a * c > answer) {\n\t\t\tanswer = a * c;\n\t\t}\n\t\tif (b * d > answer) {\n\t\t\tanswer = b * d;\n\t\t}\n\t\tif (answer == 0) {\n\t\t\tif (a * d > b * c) {\n\t\t\t\tanswer = a * d;\n\t\t\t} else {\n\t\t\t\tanswer = b * c;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(answer);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextInt();\n\t\tlong b = sc.nextInt();\n\t\tlong c = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tlong answer = 0;\n\t\tif (a * c > answer) {\n\t\t\tanswer = a * c;\n\t\t}\n\t\tif (b * d > answer) {\n\t\t\tanswer = b * d;\n\t\t}\n\t\tif (answer == 0) {\n\t\t\tif (a * d > b * c) {\n\t\t\t\tanswer = a * d;\n\t\t\t} else {\n\t\t\t\tanswer = b * c;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(answer);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextInt();\n\t\tlong b = sc.nextInt();\n\t\tlong c = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tlong answer = 0;\n\t\tif (a * c > answer) {\n\t\t\tanswer = a * c;\n\t\t}\n\t\tif (b * d > answer) {\n\t\t\tanswer = b * d;\n\t\t}\n\t\tif (answer == 0) {\n\t\t\tif (a * d > b * c) {\n\t\t\t\tanswer = a * d;\n\t\t\t} else {\n\t\t\t\tanswer = b * c;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(answer);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextInt();\n\t\tlong b = sc.nextInt();\n\t\tlong c = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tlong answer = 0;\n\t\tif (a * c > answer) {\n\t\t\tanswer = a * c;\n\t\t}\n\t\tif (b * d > answer) {\n\t\t\tanswer = b * d;\n\t\t}\n\t\tif (answer == 0) {\n\t\t\tif (a * d > b * c) {\n\t\t\t\tanswer = a * d;\n\t\t\t} else {\n\t\t\t\tanswer = b * c;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(answer);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long answer = 0;",
"answer",
"0",
"if (a * c > answer) {\n\t\t\tanswer = a * c;\n\t\t}",
"a * c > answer",
"a * c",
"a",
"c",
"answer",
"{\n\t\t\tanswer = a * c;\n\t\t}",
"answer = a * c",
"answer",
"a * c",
"a",
"c",
"if (b * d > answer) {\n\t\t\tanswer = b * d;\n\t\t}",
"b * d > answer",
"b * d",
"b",
"d",
"answer",
"{\n\t\t\tanswer = b * d;\n\t\t}",
"answer = b * d",
"answer",
"b * d",
"b",
"d",
"if (answer == 0) {\n\t\t\tif (a * d > b * c) {\n\t\t\t\tanswer = a * d;\n\t\t\t} else {\n\t\t\t\tanswer = b * c;\n\t\t\t}\n\t\t}",
"answer == 0",
"answer",
"0",
"{\n\t\t\tif (a * d > b * c) {\n\t\t\t\tanswer = a * d;\n\t\t\t} else {\n\t\t\t\tanswer = b * c;\n\t\t\t}\n\t\t}",
"if (a * d > b * c) {\n\t\t\t\tanswer = a * d;\n\t\t\t} else {\n\t\t\t\tanswer = b * c;\n\t\t\t}",
"a * d > b * c",
"a * d",
"a",
"d",
"b * c",
"b",
"c",
"{\n\t\t\t\tanswer = a * d;\n\t\t\t}",
"answer = a * d",
"answer",
"a * d",
"a",
"d",
"{\n\t\t\t\tanswer = b * c;\n\t\t\t}",
"answer = b * c",
"answer",
"b * c",
"b",
"c",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextInt();\n\t\tlong b = sc.nextInt();\n\t\tlong c = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tlong answer = 0;\n\t\tif (a * c > answer) {\n\t\t\tanswer = a * c;\n\t\t}\n\t\tif (b * d > answer) {\n\t\t\tanswer = b * d;\n\t\t}\n\t\tif (answer == 0) {\n\t\t\tif (a * d > b * c) {\n\t\t\t\tanswer = a * d;\n\t\t\t} else {\n\t\t\t\tanswer = b * c;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(answer);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextInt();\n\t\tlong b = sc.nextInt();\n\t\tlong c = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tlong answer = 0;\n\t\tif (a * c > answer) {\n\t\t\tanswer = a * c;\n\t\t}\n\t\tif (b * d > answer) {\n\t\t\tanswer = b * d;\n\t\t}\n\t\tif (answer == 0) {\n\t\t\tif (a * d > b * c) {\n\t\t\t\tanswer = a * d;\n\t\t\t} else {\n\t\t\t\tanswer = b * c;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(answer);\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long a = sc.nextInt();
long b = sc.nextInt();
long c = sc.nextInt();
long d = sc.nextInt();
long answer = 0;
if (a * c > answer) {
answer = a * c;
}
if (b * d > answer) {
answer = b * d;
}
if (answer == 0) {
if (a * d > b * c) {
answer = a * d;
} else {
answer = b * c;
}
}
System.out.println(answer);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
40,
17,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
169,
8
],
[
169,
9
],
[
9,
10
],
[
9,
11
],
[
169,
12
],
[
12,
13
],
[
12,
14
],
[
169,
15
],
[
15,
16
],
[
15,
17
],
[
169,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
169,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
28,
30
],
[
24,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
24,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
24,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
24,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
24,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
60,
62
],
[
57,
63
],
[
63,
64
],
[
63,
65
],
[
54,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
69,
71
],
[
66,
72
],
[
72,
73
],
[
72,
74
],
[
24,
75
],
[
75,
76
],
[
76,
77
],
[
22,
78
],
[
78,
79
],
[
169,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
80,
84
],
[
84,
85
],
[
80,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
80,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
95,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
105,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
94,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
80,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
127,
128
],
[
80,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
136,
137
],
[
80,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
145,
146
],
[
80,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
153,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
149,
166
],
[
166,
167
],
[
0,
168
],
[
168,
169
],
[
168,
170
]
]
| [
"import java.io.*;\nimport java.util.*;\n \npublic class Main {\n //static final long MOD = 1000000007L;\n static final long DIV2 = 500000004L;\n static final long MOD = 998244353L;\n static final int INF = 50000000;\n static final int NINF = -500000000;\n \n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter pw = new PrintWriter(System.out);\n \n long A = sc.nl();\n long B = sc.nl();\n long C = sc.nl();\n long D = sc.nl();\n pw.println(Math.max(Math.max(A*C,A*D),Math.max(B*C, B*D)));\n pw.close();\n }\n \n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int ni() {\n return Integer.parseInt(next());\n }\n \n long nl() {\n return Long.parseLong(next());\n }\n \n double nd() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n //static final long MOD = 1000000007L;\n static final long DIV2 = 500000004L;\n static final long MOD = 998244353L;\n static final int INF = 50000000;\n static final int NINF = -500000000;\n \n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter pw = new PrintWriter(System.out);\n \n long A = sc.nl();\n long B = sc.nl();\n long C = sc.nl();\n long D = sc.nl();\n pw.println(Math.max(Math.max(A*C,A*D),Math.max(B*C, B*D)));\n pw.close();\n }\n \n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int ni() {\n return Integer.parseInt(next());\n }\n \n long nl() {\n return Long.parseLong(next());\n }\n \n double nd() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"Main",
"//static final long MOD = 1000000007L;\n static final long DIV2 = 500000004L;",
"DIV2",
"500000004L",
"static final long MOD = 998244353L;",
"MOD",
"998244353L",
"static final int INF = 50000000;",
"INF",
"50000000",
"static final int NINF = -500000000;",
"NINF",
"-500000000",
"500000000",
"public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter pw = new PrintWriter(System.out);\n \n long A = sc.nl();\n long B = sc.nl();\n long C = sc.nl();\n long D = sc.nl();\n pw.println(Math.max(Math.max(A*C,A*D),Math.max(B*C, B*D)));\n pw.close();\n }",
"main",
"{\n FastScanner sc = new FastScanner();\n PrintWriter pw = new PrintWriter(System.out);\n \n long A = sc.nl();\n long B = sc.nl();\n long C = sc.nl();\n long D = sc.nl();\n pw.println(Math.max(Math.max(A*C,A*D),Math.max(B*C, B*D)));\n pw.close();\n }",
"FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"long A = sc.nl();",
"A",
"sc.nl()",
"sc.nl",
"sc",
"long B = sc.nl();",
"B",
"sc.nl()",
"sc.nl",
"sc",
"long C = sc.nl();",
"C",
"sc.nl()",
"sc.nl",
"sc",
"long D = sc.nl();",
"D",
"sc.nl()",
"sc.nl",
"sc",
"pw.println(Math.max(Math.max(A*C,A*D),Math.max(B*C, B*D)))",
"pw.println",
"pw",
"Math.max(Math.max(A*C,A*D),Math.max(B*C, B*D))",
"Math.max",
"Math",
"Math.max(A*C,A*D)",
"Math.max",
"Math",
"A*C",
"A",
"C",
"A*D",
"A",
"D",
"Math.max(B*C, B*D)",
"Math.max",
"Math",
"B*C",
"B",
"C",
"B*D",
"B",
"D",
"pw.close()",
"pw.close",
"pw",
"String[] args",
"args",
"static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int ni() {\n return Integer.parseInt(next());\n }\n \n long nl() {\n return Long.parseLong(next());\n }\n \n double nd() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"FastScanner",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int ni() {\n return Integer.parseInt(next());\n }",
"ni",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nl() {\n return Long.parseLong(next());\n }",
"nl",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nd() {\n return Double.parseDouble(next());\n }",
"nd",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n //static final long MOD = 1000000007L;\n static final long DIV2 = 500000004L;\n static final long MOD = 998244353L;\n static final int INF = 50000000;\n static final int NINF = -500000000;\n \n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter pw = new PrintWriter(System.out);\n \n long A = sc.nl();\n long B = sc.nl();\n long C = sc.nl();\n long D = sc.nl();\n pw.println(Math.max(Math.max(A*C,A*D),Math.max(B*C, B*D)));\n pw.close();\n }\n \n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int ni() {\n return Integer.parseInt(next());\n }\n \n long nl() {\n return Long.parseLong(next());\n }\n \n double nd() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"public class Main {\n //static final long MOD = 1000000007L;\n static final long DIV2 = 500000004L;\n static final long MOD = 998244353L;\n static final int INF = 50000000;\n static final int NINF = -500000000;\n \n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter pw = new PrintWriter(System.out);\n \n long A = sc.nl();\n long B = sc.nl();\n long C = sc.nl();\n long D = sc.nl();\n pw.println(Math.max(Math.max(A*C,A*D),Math.max(B*C, B*D)));\n pw.close();\n }\n \n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int ni() {\n return Integer.parseInt(next());\n }\n \n long nl() {\n return Long.parseLong(next());\n }\n \n double nd() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
//static final long MOD = 1000000007L;
static final long DIV2 = 500000004L;
static final long MOD = 998244353L;
static final int INF = 50000000;
static final int NINF = -500000000;
public static void main(String[] args) {
FastScanner sc = new FastScanner();
PrintWriter pw = new PrintWriter(System.out);
long A = sc.nl();
long B = sc.nl();
long C = sc.nl();
long D = sc.nl();
pw.println(Math.max(Math.max(A*C,A*D),Math.max(B*C, B*D)));
pw.close();
}
static class FastScanner {
BufferedReader br;
StringTokenizer st;
public FastScanner() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int ni() {
return Integer.parseInt(next());
}
long nl() {
return Long.parseLong(next());
}
double nd() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
} |
[
7,
15,
13,
17,
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,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
0,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
184,
20
],
[
184,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
23,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
42,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
42,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
42,
63
],
[
63,
64
],
[
42,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
42,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
42,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
42,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
42,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
90,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
98,
102
],
[
21,
103
],
[
103,
104
],
[
184,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
105,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
116,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
121,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
115,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
105,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
143,
144
],
[
105,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
152,
157
],
[
157,
158
],
[
157,
159
],
[
152,
160
],
[
160,
161
],
[
161,
162
],
[
152,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
168,
169
],
[
147,
170
],
[
170,
171
],
[
145,
172
],
[
172,
173
],
[
105,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
181,
182
],
[
0,
183
],
[
183,
184
],
[
183,
185
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.Random;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) {\n FastScanner fs=new FastScanner();\n int T=1;\n for (int tt=0; tt<T; tt++) {\n long a = fs.nextLong(),b = fs.nextLong(),c = fs.nextLong(),d = fs.nextLong();\n long ans;\n ans = a*c;\n long ans1 = a*d;\n long ans2 = b*c;\n long ans3 = b*d;\n System.out.println(Math.max(ans,Math.max(ans1, Math.max(ans2, ans3)))); \n\n}\n}\n \n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n \n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Random;",
"Random",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n public static void main(String[] args) {\n FastScanner fs=new FastScanner();\n int T=1;\n for (int tt=0; tt<T; tt++) {\n long a = fs.nextLong(),b = fs.nextLong(),c = fs.nextLong(),d = fs.nextLong();\n long ans;\n ans = a*c;\n long ans1 = a*d;\n long ans2 = b*c;\n long ans3 = b*d;\n System.out.println(Math.max(ans,Math.max(ans1, Math.max(ans2, ans3)))); \n\n}\n}\n \n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n \n}",
"Main",
"public static void main(String[] args) {\n FastScanner fs=new FastScanner();\n int T=1;\n for (int tt=0; tt<T; tt++) {\n long a = fs.nextLong(),b = fs.nextLong(),c = fs.nextLong(),d = fs.nextLong();\n long ans;\n ans = a*c;\n long ans1 = a*d;\n long ans2 = b*c;\n long ans3 = b*d;\n System.out.println(Math.max(ans,Math.max(ans1, Math.max(ans2, ans3)))); \n\n}\n}",
"main",
"{\n FastScanner fs=new FastScanner();\n int T=1;\n for (int tt=0; tt<T; tt++) {\n long a = fs.nextLong(),b = fs.nextLong(),c = fs.nextLong(),d = fs.nextLong();\n long ans;\n ans = a*c;\n long ans1 = a*d;\n long ans2 = b*c;\n long ans3 = b*d;\n System.out.println(Math.max(ans,Math.max(ans1, Math.max(ans2, ans3)))); \n\n}\n}",
"FastScanner fs=new FastScanner();",
"fs",
"new FastScanner()",
"int T=1;",
"T",
"1",
"for (int tt=0; tt<T; tt++) {\n long a = fs.nextLong(),b = fs.nextLong(),c = fs.nextLong(),d = fs.nextLong();\n long ans;\n ans = a*c;\n long ans1 = a*d;\n long ans2 = b*c;\n long ans3 = b*d;\n System.out.println(Math.max(ans,Math.max(ans1, Math.max(ans2, ans3)))); \n\n}",
"int tt=0;",
"int tt=0;",
"tt",
"0",
"tt<T",
"tt",
"T",
"tt++",
"tt++",
"tt",
"{\n long a = fs.nextLong(),b = fs.nextLong(),c = fs.nextLong(),d = fs.nextLong();\n long ans;\n ans = a*c;\n long ans1 = a*d;\n long ans2 = b*c;\n long ans3 = b*d;\n System.out.println(Math.max(ans,Math.max(ans1, Math.max(ans2, ans3)))); \n\n}",
"{\n long a = fs.nextLong(),b = fs.nextLong(),c = fs.nextLong(),d = fs.nextLong();\n long ans;\n ans = a*c;\n long ans1 = a*d;\n long ans2 = b*c;\n long ans3 = b*d;\n System.out.println(Math.max(ans,Math.max(ans1, Math.max(ans2, ans3)))); \n\n}",
"long a = fs.nextLong()",
"a",
"fs.nextLong()",
"fs.nextLong",
"fs",
"b = fs.nextLong()",
"b",
"fs.nextLong()",
"fs.nextLong",
"fs",
"c = fs.nextLong()",
"c",
"fs.nextLong()",
"fs.nextLong",
"fs",
"d = fs.nextLong();",
"d",
"fs.nextLong()",
"fs.nextLong",
"fs",
"long ans;",
"ans",
"ans = a*c",
"ans",
"a*c",
"a",
"c",
"long ans1 = a*d;",
"ans1",
"a*d",
"a",
"d",
"long ans2 = b*c;",
"ans2",
"b*c",
"b",
"c",
"long ans3 = b*d;",
"ans3",
"b*d",
"b",
"d",
"System.out.println(Math.max(ans,Math.max(ans1, Math.max(ans2, ans3))))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.max(ans,Math.max(ans1, Math.max(ans2, ans3)))",
"Math.max",
"Math",
"ans",
"Math.max(ans1, Math.max(ans2, ans3))",
"Math.max",
"Math",
"ans1",
"Math.max(ans2, ans3)",
"Math.max",
"Math",
"ans2",
"ans3",
"String[] args",
"args",
"static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }",
"FastScanner",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st=new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"next",
"{\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st=new StringTokenizer(br.readLine());\n }",
"st=new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }",
"readArray",
"{\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }",
"int[] a=new int[n];",
"a",
"new int[n]",
"n",
"for (int i=0; i<n; i++) a[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextInt();",
"a[i]=nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public class Main {\n public static void main(String[] args) {\n FastScanner fs=new FastScanner();\n int T=1;\n for (int tt=0; tt<T; tt++) {\n long a = fs.nextLong(),b = fs.nextLong(),c = fs.nextLong(),d = fs.nextLong();\n long ans;\n ans = a*c;\n long ans1 = a*d;\n long ans2 = b*c;\n long ans3 = b*d;\n System.out.println(Math.max(ans,Math.max(ans1, Math.max(ans2, ans3)))); \n\n}\n}\n \n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n \n}",
"public class Main {\n public static void main(String[] args) {\n FastScanner fs=new FastScanner();\n int T=1;\n for (int tt=0; tt<T; tt++) {\n long a = fs.nextLong(),b = fs.nextLong(),c = fs.nextLong(),d = fs.nextLong();\n long ans;\n ans = a*c;\n long ans1 = a*d;\n long ans2 = b*c;\n long ans3 = b*d;\n System.out.println(Math.max(ans,Math.max(ans1, Math.max(ans2, ans3)))); \n\n}\n}\n \n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n \n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Random;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
FastScanner fs=new FastScanner();
int T=1;
for (int tt=0; tt<T; tt++) {
long a = fs.nextLong(),b = fs.nextLong(),c = fs.nextLong(),d = fs.nextLong();
long ans;
ans = a*c;
long ans1 = a*d;
long ans2 = b*c;
long ans3 = b*d;
System.out.println(Math.max(ans,Math.max(ans1, Math.max(ans2, ans3))));
}
}
static class FastScanner {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st=new StringTokenizer("");
String next() {
while (!st.hasMoreTokens())
try {
st=new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
int[] readArray(int n) {
int[] a=new int[n];
for (int i=0; i<n; i++) a[i]=nextInt();
return a;
}
long nextLong() {
return Long.parseLong(next());
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
4,
18,
18,
13,
17,
41,
13,
4,
18,
13,
4,
18,
18,
13,
17,
41,
13,
4,
18,
13,
4,
18,
18,
13,
17,
41,
13,
4,
18,
13,
4,
18,
18,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
2,
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
],
[
98,
11
],
[
98,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
20,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
14,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
14,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
14,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
14,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
74,
76
],
[
71,
77
],
[
77,
78
],
[
77,
79
],
[
68,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
83,
85
],
[
80,
86
],
[
86,
87
],
[
86,
88
],
[
14,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
12,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
]
| [
"\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String[] s=br.readLine().split(\" \");\n long a=Long.parseLong(s[0].trim());\n long b=Long.parseLong(s[1].trim());\n long c=Long.parseLong(s[2].trim());\n long d=Long.parseLong(s[3].trim());\n long res=Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d));\n System.out.println(res);\n\n\n }\n\n\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String[] s=br.readLine().split(\" \");\n long a=Long.parseLong(s[0].trim());\n long b=Long.parseLong(s[1].trim());\n long c=Long.parseLong(s[2].trim());\n long d=Long.parseLong(s[3].trim());\n long res=Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d));\n System.out.println(res);\n\n\n }\n\n\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String[] s=br.readLine().split(\" \");\n long a=Long.parseLong(s[0].trim());\n long b=Long.parseLong(s[1].trim());\n long c=Long.parseLong(s[2].trim());\n long d=Long.parseLong(s[3].trim());\n long res=Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d));\n System.out.println(res);\n\n\n }",
"main",
"{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String[] s=br.readLine().split(\" \");\n long a=Long.parseLong(s[0].trim());\n long b=Long.parseLong(s[1].trim());\n long c=Long.parseLong(s[2].trim());\n long d=Long.parseLong(s[3].trim());\n long res=Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d));\n System.out.println(res);\n\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",
"\" \"",
"long a=Long.parseLong(s[0].trim());",
"a",
"Long.parseLong(s[0].trim())",
"Long.parseLong",
"Long",
"s[0].trim()",
"s[0].trim",
"s[0]",
"s",
"0",
"long b=Long.parseLong(s[1].trim());",
"b",
"Long.parseLong(s[1].trim())",
"Long.parseLong",
"Long",
"s[1].trim()",
"s[1].trim",
"s[1]",
"s",
"1",
"long c=Long.parseLong(s[2].trim());",
"c",
"Long.parseLong(s[2].trim())",
"Long.parseLong",
"Long",
"s[2].trim()",
"s[2].trim",
"s[2]",
"s",
"2",
"long d=Long.parseLong(s[3].trim());",
"d",
"Long.parseLong(s[3].trim())",
"Long.parseLong",
"Long",
"s[3].trim()",
"s[3].trim",
"s[3]",
"s",
"3",
"long res=Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d));",
"res",
"Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d))",
"Math.max",
"Math",
"Math.max(a*c,a*d)",
"Math.max",
"Math",
"a*c",
"a",
"c",
"a*d",
"a",
"d",
"Math.max(b*c,b*d)",
"Math.max",
"Math",
"b*c",
"b",
"c",
"b*d",
"b",
"d",
"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) throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String[] s=br.readLine().split(\" \");\n long a=Long.parseLong(s[0].trim());\n long b=Long.parseLong(s[1].trim());\n long c=Long.parseLong(s[2].trim());\n long d=Long.parseLong(s[3].trim());\n long res=Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d));\n System.out.println(res);\n\n\n }\n\n\n\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String[] s=br.readLine().split(\" \");\n long a=Long.parseLong(s[0].trim());\n long b=Long.parseLong(s[1].trim());\n long c=Long.parseLong(s[2].trim());\n long d=Long.parseLong(s[3].trim());\n long res=Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d));\n System.out.println(res);\n\n\n }\n\n\n\n}",
"Main"
]
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String[] s=br.readLine().split(" ");
long a=Long.parseLong(s[0].trim());
long b=Long.parseLong(s[1].trim());
long c=Long.parseLong(s[2].trim());
long d=Long.parseLong(s[3].trim());
long res=Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d));
System.out.println(res);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
85,
5
],
[
85,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
6,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n long ac = a * c;\n long ad = a * d;\n long bc = b * c;\n long bd = b * d;\n long max = ac;\n if (max < ad) max = ad;\n if (max < bc) max = bc;\n if (max < bd) max = bd;\n System.out.print(max);\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 long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n long ac = a * c;\n long ad = a * d;\n long bc = b * c;\n long bd = b * d;\n long max = ac;\n if (max < ad) max = ad;\n if (max < bc) max = bc;\n if (max < bd) max = bd;\n System.out.print(max);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n long ac = a * c;\n long ad = a * d;\n long bc = b * c;\n long bd = b * d;\n long max = ac;\n if (max < ad) max = ad;\n if (max < bc) max = bc;\n if (max < bd) max = bd;\n System.out.print(max);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n long ac = a * c;\n long ad = a * d;\n long bc = b * c;\n long bd = b * d;\n long max = ac;\n if (max < ad) max = ad;\n if (max < bc) max = bc;\n if (max < bd) max = bd;\n System.out.print(max);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long ac = a * c;",
"ac",
"a * c",
"a",
"c",
"long ad = a * d;",
"ad",
"a * d",
"a",
"d",
"long bc = b * c;",
"bc",
"b * c",
"b",
"c",
"long bd = b * d;",
"bd",
"b * d",
"b",
"d",
"long max = ac;",
"max",
"ac",
"if (max < ad) max = ad;",
"max < ad",
"max",
"ad",
"max = ad",
"max",
"ad",
"if (max < bc) max = bc;",
"max < bc",
"max",
"bc",
"max = bc",
"max",
"bc",
"if (max < bd) max = bd;",
"max < bd",
"max",
"bd",
"max = bd",
"max",
"bd",
"System.out.print(max)",
"System.out.print",
"System.out",
"System",
"System.out",
"max",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n long ac = a * c;\n long ad = a * d;\n long bc = b * c;\n long bd = b * d;\n long max = ac;\n if (max < ad) max = ad;\n if (max < bc) max = bc;\n if (max < bd) max = bd;\n System.out.print(max);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n long ac = a * c;\n long ad = a * d;\n long bc = b * c;\n long bd = b * d;\n long max = ac;\n if (max < ad) max = ad;\n if (max < bc) max = bc;\n if (max < bd) max = bd;\n System.out.print(max);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
long ac = a * c;
long ad = a * d;
long bc = b * c;
long bd = b * d;
long max = ac;
if (max < ad) max = ad;
if (max < bc) max = bc;
if (max < bd) max = bd;
System.out.print(max);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
18,
13,
13,
41,
13,
0,
13,
2,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
2,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
2,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
2,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
112,
5
],
[
112,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
8,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
8,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
8,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
8,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
6,
97
],
[
97,
98
],
[
112,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
99,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n void run(String[] args){\n Scanner scan=new Scanner(System.in);\n long a=scan.nextLong();\n long b=scan.nextLong();\n long c=scan.nextLong();\n long d=scan.nextLong();\n long max=Long.MIN_VALUE;\n long answer;\n answer=a*c;\n if(max<answer){\n max=answer;\n }\n answer=a*d;\n if(max<answer){\n max=answer;\n }\n answer=b*c;\n if(max<answer){\n max=answer;\n }\n answer=b*d;\n if(max<answer){\n max=answer;\n }\n System.out.println(max);\n }\n public static void main(String args[]){\n Main printer = new Main();\n printer.run(args);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n void run(String[] args){\n Scanner scan=new Scanner(System.in);\n long a=scan.nextLong();\n long b=scan.nextLong();\n long c=scan.nextLong();\n long d=scan.nextLong();\n long max=Long.MIN_VALUE;\n long answer;\n answer=a*c;\n if(max<answer){\n max=answer;\n }\n answer=a*d;\n if(max<answer){\n max=answer;\n }\n answer=b*c;\n if(max<answer){\n max=answer;\n }\n answer=b*d;\n if(max<answer){\n max=answer;\n }\n System.out.println(max);\n }\n public static void main(String args[]){\n Main printer = new Main();\n printer.run(args);\n }\n}",
"Main",
"void run(String[] args){\n Scanner scan=new Scanner(System.in);\n long a=scan.nextLong();\n long b=scan.nextLong();\n long c=scan.nextLong();\n long d=scan.nextLong();\n long max=Long.MIN_VALUE;\n long answer;\n answer=a*c;\n if(max<answer){\n max=answer;\n }\n answer=a*d;\n if(max<answer){\n max=answer;\n }\n answer=b*c;\n if(max<answer){\n max=answer;\n }\n answer=b*d;\n if(max<answer){\n max=answer;\n }\n System.out.println(max);\n }",
"run",
"{\n Scanner scan=new Scanner(System.in);\n long a=scan.nextLong();\n long b=scan.nextLong();\n long c=scan.nextLong();\n long d=scan.nextLong();\n long max=Long.MIN_VALUE;\n long answer;\n answer=a*c;\n if(max<answer){\n max=answer;\n }\n answer=a*d;\n if(max<answer){\n max=answer;\n }\n answer=b*c;\n if(max<answer){\n max=answer;\n }\n answer=b*d;\n if(max<answer){\n max=answer;\n }\n System.out.println(max);\n }",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"long a=scan.nextLong();",
"a",
"scan.nextLong()",
"scan.nextLong",
"scan",
"long b=scan.nextLong();",
"b",
"scan.nextLong()",
"scan.nextLong",
"scan",
"long c=scan.nextLong();",
"c",
"scan.nextLong()",
"scan.nextLong",
"scan",
"long d=scan.nextLong();",
"d",
"scan.nextLong()",
"scan.nextLong",
"scan",
"long max=Long.MIN_VALUE;",
"max",
"Long.MIN_VALUE",
"Long",
"Long.MIN_VALUE",
"long answer;",
"answer",
"answer=a*c",
"answer",
"a*c",
"a",
"c",
"if(max<answer){\n max=answer;\n }",
"max<answer",
"max",
"answer",
"{\n max=answer;\n }",
"max=answer",
"max",
"answer",
"answer=a*d",
"answer",
"a*d",
"a",
"d",
"if(max<answer){\n max=answer;\n }",
"max<answer",
"max",
"answer",
"{\n max=answer;\n }",
"max=answer",
"max",
"answer",
"answer=b*c",
"answer",
"b*c",
"b",
"c",
"if(max<answer){\n max=answer;\n }",
"max<answer",
"max",
"answer",
"{\n max=answer;\n }",
"max=answer",
"max",
"answer",
"answer=b*d",
"answer",
"b*d",
"b",
"d",
"if(max<answer){\n max=answer;\n }",
"max<answer",
"max",
"answer",
"{\n max=answer;\n }",
"max=answer",
"max",
"answer",
"System.out.println(max)",
"System.out.println",
"System.out",
"System",
"System.out",
"max",
"String[] args",
"args",
"public static void main(String args[]){\n Main printer = new Main();\n printer.run(args);\n }",
"main",
"{\n Main printer = new Main();\n printer.run(args);\n }",
"Main printer = new Main();",
"printer",
"new Main()",
"printer.run(args)",
"printer.run",
"printer",
"args",
"String args[]",
"args",
"public class Main {\n void run(String[] args){\n Scanner scan=new Scanner(System.in);\n long a=scan.nextLong();\n long b=scan.nextLong();\n long c=scan.nextLong();\n long d=scan.nextLong();\n long max=Long.MIN_VALUE;\n long answer;\n answer=a*c;\n if(max<answer){\n max=answer;\n }\n answer=a*d;\n if(max<answer){\n max=answer;\n }\n answer=b*c;\n if(max<answer){\n max=answer;\n }\n answer=b*d;\n if(max<answer){\n max=answer;\n }\n System.out.println(max);\n }\n public static void main(String args[]){\n Main printer = new Main();\n printer.run(args);\n }\n}",
"public class Main {\n void run(String[] args){\n Scanner scan=new Scanner(System.in);\n long a=scan.nextLong();\n long b=scan.nextLong();\n long c=scan.nextLong();\n long d=scan.nextLong();\n long max=Long.MIN_VALUE;\n long answer;\n answer=a*c;\n if(max<answer){\n max=answer;\n }\n answer=a*d;\n if(max<answer){\n max=answer;\n }\n answer=b*c;\n if(max<answer){\n max=answer;\n }\n answer=b*d;\n if(max<answer){\n max=answer;\n }\n System.out.println(max);\n }\n public static void main(String args[]){\n Main printer = new Main();\n printer.run(args);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
void run(String[] args){
Scanner scan=new Scanner(System.in);
long a=scan.nextLong();
long b=scan.nextLong();
long c=scan.nextLong();
long d=scan.nextLong();
long max=Long.MIN_VALUE;
long answer;
answer=a*c;
if(max<answer){
max=answer;
}
answer=a*d;
if(max<answer){
max=answer;
}
answer=b*c;
if(max<answer){
max=answer;
}
answer=b*d;
if(max<answer){
max=answer;
}
System.out.println(max);
}
public static void main(String args[]){
Main printer = new Main();
printer.run(args);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
4,
18,
13,
4,
18,
13,
20,
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,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
28,
13,
13,
30,
30,
0,
13,
4,
18,
13,
13,
13,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
338,
23
],
[
338,
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
],
[
338,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
61,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
61,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
84,
88
],
[
61,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
91,
95
],
[
61,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
98,
102
],
[
61,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
105,
109
],
[
61,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
59,
117
],
[
117,
118
],
[
59,
119
],
[
119,
120
],
[
59,
121
],
[
121,
122
],
[
338,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
123,
127
],
[
127,
128
],
[
127,
129
],
[
123,
131
],
[
131,
132
],
[
123,
133
],
[
133,
134
],
[
123,
135
],
[
135,
136
],
[
123,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
137,
145
],
[
145,
146
],
[
123,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
150,
155
],
[
155,
156
],
[
156,
157
],
[
149,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
166,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
176,
177
],
[
175,
178
],
[
162,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
149,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
123,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
194,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
199,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
194,
208
],
[
208,
209
],
[
208,
210
],
[
194,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
215,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
194,
224
],
[
224,
225
],
[
224,
226
],
[
194,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
227,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
238,
239
],
[
238,
240
],
[
233,
241
],
[
241,
242
],
[
242,
243
],
[
232,
244
],
[
244,
245
],
[
244,
246
],
[
232,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
249,
251
],
[
232,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
194,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
123,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
263,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
269,
272
],
[
262,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
260,
277
],
[
277,
278
],
[
123,
279
],
[
279,
280
],
[
279,
281
],
[
281,
282
],
[
282,
283
],
[
286,
284
],
[
296,
285
],
[
293,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
286,
290
],
[
290,
291
],
[
290,
292
],
[
293,
293
],
[
293,
294
],
[
293,
295
],
[
296,
296
],
[
296,
297
],
[
296,
298
],
[
286,
299
],
[
299,
300
],
[
299,
301
],
[
301,
302
],
[
279,
303
],
[
303,
304
],
[
123,
305
],
[
305,
306
],
[
305,
307
],
[
307,
308
],
[
307,
309
],
[
309,
310
],
[
338,
311
],
[
311,
312
],
[
311,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
316,
317
],
[
316,
318
],
[
318,
319
],
[
318,
320
],
[
315,
321
],
[
321,
322
],
[
321,
323
],
[
321,
324
],
[
325,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
328,
329
],
[
329,
330
],
[
328,
331
],
[
328,
332
],
[
315,
333
],
[
333,
334
],
[
313,
335
],
[
335,
336
],
[
0,
337
],
[
337,
338
],
[
337,
339
]
]
| [
"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 InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BProductMax solver = new BProductMax();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BProductMax {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n int d = in.nextInt();\n\n long max1 = Math.max(a, b);\n long max2 = Math.max(c, d);\n long min1 = Math.min(a, b);\n long min2 = Math.min(c, d);\n\n out.println(Misc.max(new long[]{max1 * max2, max1 * min2, max2 * min1, min1 * min2}));\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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 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 static class Misc {\n public static long max(long[] a) {\n long max = Long.MIN_VALUE;\n for (long i : a) {\n max = Math.max(i, max);\n }\n return max;\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BProductMax solver = new BProductMax();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BProductMax {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n int d = in.nextInt();\n\n long max1 = Math.max(a, b);\n long max2 = Math.max(c, d);\n long min1 = Math.min(a, b);\n long min2 = Math.min(c, d);\n\n out.println(Misc.max(new long[]{max1 * max2, max1 * min2, max2 * min1, min1 * min2}));\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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 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 static class Misc {\n public static long max(long[] a) {\n long max = Long.MIN_VALUE;\n for (long i : a) {\n max = Math.max(i, max);\n }\n return max;\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 BProductMax solver = new BProductMax();\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 BProductMax solver = new BProductMax();\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)",
"BProductMax solver = new BProductMax();",
"solver",
"new BProductMax()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class BProductMax {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n int d = in.nextInt();\n\n long max1 = Math.max(a, b);\n long max2 = Math.max(c, d);\n long min1 = Math.min(a, b);\n long min2 = Math.min(c, d);\n\n out.println(Misc.max(new long[]{max1 * max2, max1 * min2, max2 * min1, min1 * min2}));\n }\n\n }",
"BProductMax",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n int d = in.nextInt();\n\n long max1 = Math.max(a, b);\n long max2 = Math.max(c, d);\n long min1 = Math.min(a, b);\n long min2 = Math.min(c, d);\n\n out.println(Misc.max(new long[]{max1 * max2, max1 * min2, max2 * min1, min1 * min2}));\n }",
"solve",
"{\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n int d = in.nextInt();\n\n long max1 = Math.max(a, b);\n long max2 = Math.max(c, d);\n long min1 = Math.min(a, b);\n long min2 = Math.min(c, d);\n\n out.println(Misc.max(new long[]{max1 * max2, max1 * min2, max2 * min1, min1 * min2}));\n }",
"int a = in.nextInt();",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"int b = in.nextInt();",
"b",
"in.nextInt()",
"in.nextInt",
"in",
"int c = in.nextInt();",
"c",
"in.nextInt()",
"in.nextInt",
"in",
"int d = in.nextInt();",
"d",
"in.nextInt()",
"in.nextInt",
"in",
"long max1 = Math.max(a, b);",
"max1",
"Math.max(a, b)",
"Math.max",
"Math",
"a",
"b",
"long max2 = Math.max(c, d);",
"max2",
"Math.max(c, d)",
"Math.max",
"Math",
"c",
"d",
"long min1 = Math.min(a, b);",
"min1",
"Math.min(a, b)",
"Math.min",
"Math",
"a",
"b",
"long min2 = Math.min(c, d);",
"min2",
"Math.min(c, d)",
"Math.min",
"Math",
"c",
"d",
"out.println(Misc.max(new long[]{max1 * max2, max1 * min2, max2 * min1, min1 * min2}))",
"out.println",
"out",
"Misc.max(new long[]{max1 * max2, max1 * min2, max2 * min1, min1 * min2})",
"Misc.max",
"Misc",
"new long[]{max1 * max2, max1 * min2, max2 * min1, min1 * min2}",
"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 private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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 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 }",
"InputReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"private InputReader.SpaceCharFilter filter;",
"filter",
"public InputReader(InputStream stream) {\n this.stream = stream;\n }",
"InputReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"if (numChars == -1) {\n throw new InputMismatchException();\n }",
"numChars == -1",
"numChars",
"-1",
"1",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0) {\n return -1;\n }",
"numChars <= 0",
"numChars",
"0",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public 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 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 }",
"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 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",
"int 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",
"static class Misc {\n public static long max(long[] a) {\n long max = Long.MIN_VALUE;\n for (long i : a) {\n max = Math.max(i, max);\n }\n return max;\n }\n\n }",
"Misc",
"public static long max(long[] a) {\n long max = Long.MIN_VALUE;\n for (long i : a) {\n max = Math.max(i, max);\n }\n return max;\n }",
"max",
"{\n long max = Long.MIN_VALUE;\n for (long i : a) {\n max = Math.max(i, max);\n }\n return max;\n }",
"long max = Long.MIN_VALUE;",
"max",
"Long.MIN_VALUE",
"Long",
"Long.MIN_VALUE",
"for (long i : a) {\n max = Math.max(i, max);\n }",
"long i",
"a",
"{\n max = Math.max(i, max);\n }",
"{\n max = Math.max(i, max);\n }",
"max = Math.max(i, max)",
"max",
"Math.max(i, max)",
"Math.max",
"Math",
"i",
"max",
"return max;",
"max",
"long[] a",
"a",
"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 BProductMax solver = new BProductMax();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BProductMax {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n int d = in.nextInt();\n\n long max1 = Math.max(a, b);\n long max2 = Math.max(c, d);\n long min1 = Math.min(a, b);\n long min2 = Math.min(c, d);\n\n out.println(Misc.max(new long[]{max1 * max2, max1 * min2, max2 * min1, min1 * min2}));\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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 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 static class Misc {\n public static long max(long[] a) {\n long max = Long.MIN_VALUE;\n for (long i : a) {\n max = Math.max(i, max);\n }\n return max;\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 BProductMax solver = new BProductMax();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BProductMax {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n int d = in.nextInt();\n\n long max1 = Math.max(a, b);\n long max2 = Math.max(c, d);\n long min1 = Math.min(a, b);\n long min2 = Math.min(c, d);\n\n out.println(Misc.max(new long[]{max1 * max2, max1 * min2, max2 * min1, min1 * min2}));\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public 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 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 static class Misc {\n public static long max(long[] a) {\n long max = Long.MIN_VALUE;\n for (long i : a) {\n max = Math.max(i, max);\n }\n return max;\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;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
BProductMax solver = new BProductMax();
solver.solve(1, in, out);
out.close();
}
static class BProductMax {
public void solve(int testNumber, InputReader in, PrintWriter out) {
int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
int d = in.nextInt();
long max1 = Math.max(a, b);
long max2 = Math.max(c, d);
long min1 = Math.min(a, b);
long min2 = Math.min(c, d);
out.println(Misc.max(new long[]{max1 * max2, max1 * min2, max2 * min1, min1 * min2}));
}
}
static class InputReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private InputReader.SpaceCharFilter filter;
public InputReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1) {
throw new InputMismatchException();
}
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0) {
return -1;
}
}
return buf[curChar++];
}
public int nextInt() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
int res = 0;
do {
if (c < '0' || c > '9') {
throw new InputMismatchException();
}
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public 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);
}
}
static class Misc {
public static long max(long[] a) {
long max = Long.MIN_VALUE;
for (long i : a) {
max = Math.max(i, max);
}
return max;
}
}
}
|
[
7,
6,
12,
13,
30,
29,
2,
18,
13,
13,
18,
13,
13,
23,
13,
23,
13,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
17,
4,
18,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
13,
40,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
41,
13,
4,
13,
13,
2,
13,
17,
41,
13,
2,
2,
13,
13,
13,
14,
2,
2,
13,
17,
17,
29,
13,
29,
2,
2,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
13,
29,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
13,
20,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
23,
13,
12,
13,
30,
42,
40,
4,
18,
13,
30,
38,
5,
13,
30,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
6,
13,
12,
13,
30,
4,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
13,
2,
18,
13,
13,
17,
4,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
13,
2,
18,
13,
13,
17,
4,
13,
23,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
2,
3
],
[
2,
4
],
[
4,
5
],
[
5,
6
],
[
6,
7
],
[
7,
8
],
[
7,
9
],
[
6,
10
],
[
10,
11
],
[
10,
12
],
[
2,
13
],
[
13,
14
],
[
2,
15
],
[
15,
16
],
[
0,
17
],
[
17,
18
],
[
17,
19
],
[
0,
20
],
[
20,
21
],
[
20,
22
],
[
0,
23
],
[
431,
24
],
[
431,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
431,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
36,
38
],
[
32,
39
],
[
39,
40
],
[
39,
41
],
[
32,
42
],
[
42,
43
],
[
43,
44
],
[
30,
45
],
[
45,
46
],
[
431,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
51,
56
],
[
56,
57
],
[
47,
58
],
[
58,
59
],
[
431,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
64,
69
],
[
60,
70
],
[
70,
71
],
[
60,
72
],
[
72,
73
],
[
431,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
76,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
85,
88
],
[
88,
89
],
[
88,
90
],
[
76,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
76,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
98,
104
],
[
104,
105
],
[
76,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
74,
112
],
[
112,
113
],
[
74,
114
],
[
114,
115
],
[
431,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
122,
124
],
[
122,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
118,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
118,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
141,
143
],
[
134,
144
],
[
144,
145
],
[
145,
146
],
[
134,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
152,
153
],
[
153,
154
],
[
152,
155
],
[
116,
156
],
[
156,
157
],
[
431,
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
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
160,
182
],
[
182,
183
],
[
158,
184
],
[
184,
185
],
[
158,
186
],
[
186,
187
],
[
431,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
188,
192
],
[
192,
193
],
[
188,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
196,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
202,
206
],
[
194,
207
],
[
207,
208
],
[
194,
209
],
[
209,
210
],
[
188,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
213,
217
],
[
217,
218
],
[
218,
219
],
[
217,
220
],
[
217,
221
],
[
213,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
222,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
222,
232
],
[
232,
233
],
[
233,
234
],
[
222,
235
],
[
236,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
237,
241
],
[
241,
242
],
[
242,
243
],
[
241,
244
],
[
211,
245
],
[
245,
246
],
[
431,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
247,
251
],
[
251,
252
],
[
247,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
255,
259
],
[
259,
260
],
[
259,
261
],
[
253,
262
],
[
262,
263
],
[
247,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
267,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
273,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
266,
281
],
[
281,
282
],
[
282,
283
],
[
283,
284
],
[
247,
285
],
[
285,
286
],
[
285,
287
],
[
287,
288
],
[
288,
289
],
[
289,
290
],
[
290,
291
],
[
289,
292
],
[
292,
293
],
[
247,
294
],
[
294,
295
],
[
294,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
299,
300
],
[
298,
301
],
[
301,
302
],
[
247,
303
],
[
303,
304
],
[
303,
305
],
[
305,
306
],
[
306,
307
],
[
306,
308
],
[
305,
310
],
[
310,
311
],
[
311,
312
],
[
312,
313
],
[
312,
314
],
[
310,
315
],
[
315,
316
],
[
315,
317
],
[
310,
318
],
[
318,
319
],
[
319,
320
],
[
310,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
322,
326
],
[
326,
327
],
[
305,
328
],
[
328,
329
],
[
303,
330
],
[
330,
331
],
[
247,
332
],
[
332,
333
],
[
332,
334
],
[
334,
335
],
[
335,
336
],
[
335,
337
],
[
334,
339
],
[
339,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
339,
344
],
[
344,
345
],
[
344,
346
],
[
339,
347
],
[
347,
348
],
[
348,
349
],
[
339,
350
],
[
350,
351
],
[
351,
352
],
[
352,
353
],
[
352,
354
],
[
351,
355
],
[
355,
356
],
[
334,
357
],
[
357,
358
],
[
332,
359
],
[
359,
360
],
[
431,
361
],
[
361,
362
],
[
361,
363
],
[
363,
364
],
[
363,
365
],
[
365,
366
],
[
366,
367
],
[
366,
368
],
[
363,
369
],
[
369,
370
],
[
361,
371
],
[
371,
372
],
[
371,
373
],
[
373,
374
],
[
374,
375
],
[
375,
376
],
[
376,
377
],
[
376,
378
],
[
374,
379
],
[
379,
380
],
[
379,
381
],
[
381,
382
],
[
381,
383
],
[
374,
384
],
[
384,
385
],
[
385,
386
],
[
374,
387
],
[
388,
388
],
[
388,
389
],
[
389,
390
],
[
389,
391
],
[
391,
392
],
[
392,
393
],
[
392,
394
],
[
391,
395
],
[
373,
396
],
[
396,
397
],
[
371,
398
],
[
398,
399
],
[
361,
400
],
[
400,
401
],
[
400,
402
],
[
402,
403
],
[
403,
404
],
[
404,
405
],
[
405,
406
],
[
405,
407
],
[
403,
408
],
[
408,
409
],
[
408,
410
],
[
410,
411
],
[
410,
412
],
[
403,
413
],
[
413,
414
],
[
414,
415
],
[
403,
416
],
[
417,
417
],
[
417,
418
],
[
418,
419
],
[
418,
420
],
[
420,
421
],
[
421,
422
],
[
421,
423
],
[
420,
424
],
[
402,
425
],
[
425,
426
],
[
400,
427
],
[
427,
428
],
[
361,
429
],
[
0,
430
],
[
430,
431
],
[
430,
432
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main{\n\t\n\tstatic int mod=(int)1e9+7;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\t\n\t\t\tlong a[]=in.readLongArray(2);\n\t\t\tlong b[]=in.readLongArray(2);\n\t\t\tlong ans=Long.MIN_VALUE;\n\t\t\tfor(long i: a) {\n\t\t\t\tfor(long j: b) ans=max(ans,i*j);\n\t\t\t}\n\t\t\tout.println(ans);\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}\n\n\t\n\t\n/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}\n\t\n\tstatic long max(long a, long b) {\n\t\treturn a>b ? a : b;\n\t}\n\t\n\tstatic int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}\n\t\n\tstatic class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}\n\t\n\tstatic class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}\n\t\n\tstatic class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}\n\t\n}",
"Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t}",
"public int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}",
"compare",
"{\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}",
"return p1.u-p2.u;",
"p1.u-p2.u",
"p1.u",
"p1",
"p1.u",
"p2.u",
"p2",
"p2.u",
"Pair p1",
"p1",
"Pair p2",
"p2",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\t\n\tstatic int mod=(int)1e9+7;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\t\n\t\t\tlong a[]=in.readLongArray(2);\n\t\t\tlong b[]=in.readLongArray(2);\n\t\t\tlong ans=Long.MIN_VALUE;\n\t\t\tfor(long i: a) {\n\t\t\t\tfor(long j: b) ans=max(ans,i*j);\n\t\t\t}\n\t\t\tout.println(ans);\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}\n\n\t\n\t\n/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}\n\t\n\tstatic long max(long a, long b) {\n\t\treturn a>b ? a : b;\n\t}\n\t\n\tstatic int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}\n\t\n\tstatic class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}\n\t\n\tstatic class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}\n\t\n\tstatic class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}\n\t\n}",
"Main",
"static int mod=(int)1e9+7;",
"mod",
"(int)1e9+7",
"(int)1e9",
"7",
"public static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\t\n\t\t\tlong a[]=in.readLongArray(2);\n\t\t\tlong b[]=in.readLongArray(2);\n\t\t\tlong ans=Long.MIN_VALUE;\n\t\t\tfor(long i: a) {\n\t\t\t\tfor(long j: b) ans=max(ans,i*j);\n\t\t\t}\n\t\t\tout.println(ans);\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}",
"main",
"{\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\t\n\t\t\tlong a[]=in.readLongArray(2);\n\t\t\tlong b[]=in.readLongArray(2);\n\t\t\tlong ans=Long.MIN_VALUE;\n\t\t\tfor(long i: a) {\n\t\t\t\tfor(long j: b) ans=max(ans,i*j);\n\t\t\t}\n\t\t\tout.println(ans);\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}",
"Writer out=new Writer(System.out);",
"out",
"new Writer(System.out)",
"Reader in=new Reader(System.in);",
"in",
"new Reader(System.in)",
"int ts=1;",
"ts",
"1",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}",
"abs",
"{\n\t\treturn a>0 ? a : -a;\n\t}",
"return a>0 ? a : -a;",
"a>0 ? a : -a",
"a>0",
"a",
"0",
"a",
"-a",
"a",
"int a",
"a",
"static long max(long a, long b) {\n\t\treturn a>b ? a : b;\n\t}",
"max",
"{\n\t\treturn a>b ? a : b;\n\t}",
"return a>b ? a : b;",
"a>b ? a : b",
"a>b",
"a",
"b",
"a",
"b",
"long a",
"a",
"long b",
"b",
"static int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}",
"pow",
"{\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}",
"if(m==0) return 1;",
"m==0",
"m",
"0",
"return 1;",
"1",
"int temp=pow(n,m/2);",
"temp",
"pow(n,m/2)",
"pow",
"n",
"m/2",
"m",
"2",
"long res=(((long)temp*temp)%mod);",
"res",
"(((long)temp*temp)%mod)",
"((long)temp*temp)",
"(long)temp",
"temp",
"mod",
"if(m%2==0) return (int)res;",
"m%2==0",
"m%2",
"m",
"2",
"0",
"return (int)res;",
"(int)res",
"return (int)((res*n)%mod);",
"(int)((res*n)%mod)",
"(res*n)",
"res",
"n",
"mod",
"int n",
"n",
"int m",
"m",
"static void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}",
"sort",
"{\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}",
"ArrayList<Integer> list=new ArrayList<>();",
"list",
"new ArrayList<>()",
"for (int i:a) list.add(i);",
"int i",
"a",
"list.add(i);",
"list.add(i)",
"list.add",
"list",
"i",
"Collections.sort(list)",
"Collections.sort",
"Collections",
"list",
"for (int i=0; i<a.length; i++) a[i]=list.get(i);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"a[i]=list.get(i);",
"a[i]=list.get(i)",
"a[i]",
"a",
"i",
"list.get(i)",
"list.get",
"list",
"i",
"int[] a",
"a",
"static int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}",
"array",
"{\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}",
"int a[]=new int[n];",
"a",
"new int[n]",
"n",
"for(int i=0; i<n; i++) a[i]=value;",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=value;",
"a[i]=value",
"a[i]",
"a",
"i",
"value",
"return a;",
"a",
"int n",
"n",
"int value",
"value",
"static class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"Pair",
"int u",
"u",
"v;",
"v",
"Pair(int u, int v){this.u=u; this.v=v;}",
"Pair",
"{this.u=u; this.v=v;}",
"this.u=u",
"this.u",
"this",
"this.u",
"u",
"this.v=v",
"this.v",
"this",
"this.v",
"v",
"int u",
"u",
"int v",
"v",
"static void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}",
"sort",
"{\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}",
"List<Pair> al=new ArrayList<>(Arrays.asList(coll));",
"al",
"new ArrayList<>(Arrays.asList(coll))",
"Collections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t})",
"Collections.sort",
"Collections",
"al",
"new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t}",
"for(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<al.size()",
"i",
"al.size()",
"al.size",
"al",
"i++",
"i++",
"i",
"{\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}",
"{\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}",
"coll[i]=al.get(i)",
"coll[i]",
"coll",
"i",
"al.get(i)",
"al.get",
"al",
"i",
"Pair [] coll",
"coll",
"static class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}",
"Reader",
"BufferedReader br;",
"br",
"StringTokenizer to;",
"to",
"Reader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}",
"Reader",
"{\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}",
"br=new BufferedReader(new InputStreamReader(stream))",
"br",
"new BufferedReader(new InputStreamReader(stream))",
"to=new StringTokenizer(\"\")",
"to",
"new StringTokenizer(\"\")",
"InputStream stream",
"stream",
"String next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}",
"next",
"{\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}",
"while(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}",
"!to.hasMoreTokens()",
"to.hasMoreTokens()",
"to.hasMoreTokens",
"to",
"{\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}",
"try {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}",
"catch(IOException e) {}",
"IOException e",
"{}",
"{\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}",
"to=new StringTokenizer(br.readLine())",
"to",
"new StringTokenizer(br.readLine())",
"return to.nextToken();",
"to.nextToken()",
"to.nextToken",
"to",
"int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"int [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}",
"readArray",
"{\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}",
"int a[]=new int[n];",
"a",
"new int[n]",
"n",
"for(int i=0; i<n ;i++) a[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextInt();",
"a[i]=nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}",
"readLongArray",
"{\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}",
"long a[]=new long[n];",
"a",
"new long[n]",
"n",
"for(int i=0; i<n ;i++) a[i]=nextLong();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextLong();",
"a[i]=nextLong()",
"a[i]",
"a",
"i",
"nextLong()",
"nextLong",
"return a;",
"a",
"int n",
"n",
"static class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}",
"Writer",
"Writer(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}",
"Writer",
"{\n\t\t\tsuper(stream);\n\t\t}",
"super(stream)",
"super",
"stream",
"OutputStream stream",
"stream",
"void println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}",
"println",
"{\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}",
"for(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<array.length",
"i",
"array.length",
"array",
"array.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"{\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"print(array[i]+\" \")",
"print",
"array[i]+\" \"",
"array[i]",
"array",
"i",
"\" \"",
"println()",
"println",
"int [] array",
"array",
"void println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}",
"println",
"{\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}",
"for(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<array.length",
"i",
"array.length",
"array",
"array.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"{\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}",
"print(array[i]+\" \")",
"print",
"array[i]+\" \"",
"array[i]",
"array",
"i",
"\" \"",
"println()",
"println",
"long [] array",
"array",
"PrintWriter",
"public class Main{\n\t\n\tstatic int mod=(int)1e9+7;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\t\n\t\t\tlong a[]=in.readLongArray(2);\n\t\t\tlong b[]=in.readLongArray(2);\n\t\t\tlong ans=Long.MIN_VALUE;\n\t\t\tfor(long i: a) {\n\t\t\t\tfor(long j: b) ans=max(ans,i*j);\n\t\t\t}\n\t\t\tout.println(ans);\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}\n\n\t\n\t\n/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}\n\t\n\tstatic long max(long a, long b) {\n\t\treturn a>b ? a : b;\n\t}\n\t\n\tstatic int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}\n\t\n\tstatic class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}\n\t\n\tstatic class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}\n\t\n\tstatic class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}\n\t\n}",
"public class Main{\n\t\n\tstatic int mod=(int)1e9+7;\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\tWriter out=new Writer(System.out);\n\t\tReader in=new Reader(System.in);\n\t\tint ts=1;\n\t\t\n\t\touter: while(ts-->0) {\t\n\t\t\t\n\t\t\tlong a[]=in.readLongArray(2);\n\t\t\tlong b[]=in.readLongArray(2);\n\t\t\tlong ans=Long.MIN_VALUE;\n\t\t\tfor(long i: a) {\n\t\t\t\tfor(long j: b) ans=max(ans,i*j);\n\t\t\t}\n\t\t\tout.println(ans);\n\t\t}\n\t\tout.close();\t\t\n\t\t\n\t}\n\n\t\n\t\n/*********************************** UTILITY CODE BELOW **************************************/\t\n\t\t\n\tstatic int abs(int a) {\n\t\treturn a>0 ? a : -a;\n\t}\n\t\n\tstatic long max(long a, long b) {\n\t\treturn a>b ? a : b;\n\t}\n\t\n\tstatic int pow(int n, int m) {\n\t\tif(m==0) return 1;\n\t\tint temp=pow(n,m/2);\n\t\tlong res=(((long)temp*temp)%mod);\n\t\tif(m%2==0) return (int)res;\n\t\treturn (int)((res*n)%mod);\n\t}\n\t\n\tstatic class Pair{\n\t\tint u, v;\n\t\t\n\t\tPair(int u, int v){this.u=u; this.v=v;}\n\t\t\n\t\tstatic void sort(Pair [] coll) {\t\t\n\t\t\tList<Pair> al=new ArrayList<>(Arrays.asList(coll));\n\t\t\tCollections.sort(al,new Comparator<Pair>() {\n\t\t\t\tpublic int compare(Pair p1, Pair p2) {\n\t\t\t\t\treturn p1.u-p2.u;\n\t\t\t\t}\t\n\t\t\t});\n\t\t\tfor(int i=0; i<al.size(); i++) {\n\t\t\t\tcoll[i]=al.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> list=new ArrayList<>();\n\t\tfor (int i:a) list.add(i);\n\t\tCollections.sort(list);\n\t\tfor (int i=0; i<a.length; i++) a[i]=list.get(i);\n\t}\n\t\n\tstatic int [] array(int n, int value) {\t\n\t\tint a[]=new int[n];\n\t\tfor(int i=0; i<n; i++) a[i]=value;\n\t\treturn a;\n\t}\n\t\n\tstatic class Reader{\n\t\t\n\t\tBufferedReader br;\n\t\tStringTokenizer to;\n\t\t\n\t\tReader(InputStream stream){\n\t\t\tbr=new BufferedReader(new InputStreamReader(stream));\n\t\t\tto=new StringTokenizer(\"\");\n\t\t}\n\t\t\n\t\tString next() {\n\t\t\twhile(!to.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tto=new StringTokenizer(br.readLine());\t\n\t\t\t\t}catch(IOException e) {}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn to.nextToken();\n\t\t\t\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint [] readArray(int n) {\n\t\t\tint a[]=new int[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong [] readLongArray(int n) {\n\t\t\tlong a[]=new long[n];\n\t\t\tfor(int i=0; i<n ;i++) a[i]=nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}\n\t\n\tstatic class Writer extends PrintWriter{\n\t\tWriter(OutputStream stream){\n\t\t\tsuper(stream);\n\t\t}\n\t\tvoid println(int [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t\tvoid println(long [] array) {\n\t\t\tfor(int i=0; i<array.length; i++) {\n\t\t\t\tprint(array[i]+\" \");\n\t\t\t}\n\t\t\tprintln();\n\t\t}\n\t}\n\t\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main{
static int mod=(int)1e9+7;
public static void main(String[] args) throws IOException {
Writer out=new Writer(System.out);
Reader in=new Reader(System.in);
int ts=1;
outer: while(ts-->0) {
long a[]=in.readLongArray(2);
long b[]=in.readLongArray(2);
long ans=Long.MIN_VALUE;
for(long i: a) {
for(long j: b) ans=max(ans,i*j);
}
out.println(ans);
}
out.close();
}
/*********************************** UTILITY CODE BELOW **************************************/
static int abs(int a) {
return a>0 ? a : -a;
}
static long max(long a, long b) {
return a>b ? a : b;
}
static int pow(int n, int m) {
if(m==0) return 1;
int temp=pow(n,m/2);
long res=(((long)temp*temp)%mod);
if(m%2==0) return (int)res;
return (int)((res*n)%mod);
}
static class Pair{
int u, v;
Pair(int u, int v){this.u=u; this.v=v;}
static void sort(Pair [] coll) {
List<Pair> al=new ArrayList<>(Arrays.asList(coll));
Collections.sort(al,new Comparator<Pair>() {
public int compare(Pair p1, Pair p2) {
return p1.u-p2.u;
}
});
for(int i=0; i<al.size(); i++) {
coll[i]=al.get(i);
}
}
}
static void sort(int[] a) {
ArrayList<Integer> list=new ArrayList<>();
for (int i:a) list.add(i);
Collections.sort(list);
for (int i=0; i<a.length; i++) a[i]=list.get(i);
}
static int [] array(int n, int value) {
int a[]=new int[n];
for(int i=0; i<n; i++) a[i]=value;
return a;
}
static class Reader{
BufferedReader br;
StringTokenizer to;
Reader(InputStream stream){
br=new BufferedReader(new InputStreamReader(stream));
to=new StringTokenizer("");
}
String next() {
while(!to.hasMoreTokens()) {
try {
to=new StringTokenizer(br.readLine());
}catch(IOException e) {}
}
return to.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
int [] readArray(int n) {
int a[]=new int[n];
for(int i=0; i<n ;i++) a[i]=nextInt();
return a;
}
long [] readLongArray(int n) {
long a[]=new long[n];
for(int i=0; i<n ;i++) a[i]=nextLong();
return a;
}
}
static class Writer extends PrintWriter{
Writer(OutputStream stream){
super(stream);
}
void println(int [] array) {
for(int i=0; i<array.length; i++) {
print(array[i]+" ");
}
println();
}
void println(long [] array) {
for(int i=0; i<array.length; i++) {
print(array[i]+" ");
}
println();
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
18,
13,
13,
14,
2,
13,
2,
13,
13,
0,
13,
2,
13,
13,
14,
2,
13,
2,
13,
13,
0,
13,
2,
13,
13,
14,
2,
13,
2,
13,
13,
0,
13,
2,
13,
13,
14,
2,
13,
2,
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
],
[
90,
5
],
[
90,
6
],
[
6,
7
],
[
6,
8
],
[
90,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
11,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
11,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
11,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
48,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
11,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
59,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
11,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
70,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
11,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
9,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n static Scanner stdIn = new Scanner(System.in);\n public static void main(String[] args){\n long a = stdIn.nextLong();\n long b = stdIn.nextLong();\n long c = stdIn.nextLong();\n long d = stdIn.nextLong();\n\n long max = Long.MIN_VALUE;\n if(max < a * c)\n max = a * c;\n if(max < a * d)\n max = a * d;\n if(max < b * c)\n max = b * c;\n if(max < b * d)\n max = b * d;\n \n System.out.println(max);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n static Scanner stdIn = new Scanner(System.in);\n public static void main(String[] args){\n long a = stdIn.nextLong();\n long b = stdIn.nextLong();\n long c = stdIn.nextLong();\n long d = stdIn.nextLong();\n\n long max = Long.MIN_VALUE;\n if(max < a * c)\n max = a * c;\n if(max < a * d)\n max = a * d;\n if(max < b * c)\n max = b * c;\n if(max < b * d)\n max = b * d;\n \n System.out.println(max);\n }\n}",
"Main",
"static Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"public static void main(String[] args){\n long a = stdIn.nextLong();\n long b = stdIn.nextLong();\n long c = stdIn.nextLong();\n long d = stdIn.nextLong();\n\n long max = Long.MIN_VALUE;\n if(max < a * c)\n max = a * c;\n if(max < a * d)\n max = a * d;\n if(max < b * c)\n max = b * c;\n if(max < b * d)\n max = b * d;\n \n System.out.println(max);\n }",
"main",
"{\n long a = stdIn.nextLong();\n long b = stdIn.nextLong();\n long c = stdIn.nextLong();\n long d = stdIn.nextLong();\n\n long max = Long.MIN_VALUE;\n if(max < a * c)\n max = a * c;\n if(max < a * d)\n max = a * d;\n if(max < b * c)\n max = b * c;\n if(max < b * d)\n max = b * d;\n \n System.out.println(max);\n }",
"long a = stdIn.nextLong();",
"a",
"stdIn.nextLong()",
"stdIn.nextLong",
"stdIn",
"long b = stdIn.nextLong();",
"b",
"stdIn.nextLong()",
"stdIn.nextLong",
"stdIn",
"long c = stdIn.nextLong();",
"c",
"stdIn.nextLong()",
"stdIn.nextLong",
"stdIn",
"long d = stdIn.nextLong();",
"d",
"stdIn.nextLong()",
"stdIn.nextLong",
"stdIn",
"long max = Long.MIN_VALUE;",
"max",
"Long.MIN_VALUE",
"Long",
"Long.MIN_VALUE",
"if(max < a * c)\n max = a * c;",
"max < a * c",
"max",
"a * c",
"a",
"c",
"max = a * c",
"max",
"a * c",
"a",
"c",
"if(max < a * d)\n max = a * d;",
"max < a * d",
"max",
"a * d",
"a",
"d",
"max = a * d",
"max",
"a * d",
"a",
"d",
"if(max < b * c)\n max = b * c;",
"max < b * c",
"max",
"b * c",
"b",
"c",
"max = b * c",
"max",
"b * c",
"b",
"c",
"if(max < b * d)\n max = b * d;",
"max < b * d",
"max",
"b * d",
"b",
"d",
"max = b * d",
"max",
"b * d",
"b",
"d",
"System.out.println(max)",
"System.out.println",
"System.out",
"System",
"System.out",
"max",
"String[] args",
"args",
"public class Main {\n static Scanner stdIn = new Scanner(System.in);\n public static void main(String[] args){\n long a = stdIn.nextLong();\n long b = stdIn.nextLong();\n long c = stdIn.nextLong();\n long d = stdIn.nextLong();\n\n long max = Long.MIN_VALUE;\n if(max < a * c)\n max = a * c;\n if(max < a * d)\n max = a * d;\n if(max < b * c)\n max = b * c;\n if(max < b * d)\n max = b * d;\n \n System.out.println(max);\n }\n}",
"public class Main {\n static Scanner stdIn = new Scanner(System.in);\n public static void main(String[] args){\n long a = stdIn.nextLong();\n long b = stdIn.nextLong();\n long c = stdIn.nextLong();\n long d = stdIn.nextLong();\n\n long max = Long.MIN_VALUE;\n if(max < a * c)\n max = a * c;\n if(max < a * d)\n max = a * d;\n if(max < b * c)\n max = b * c;\n if(max < b * d)\n max = b * d;\n \n System.out.println(max);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
static Scanner stdIn = new Scanner(System.in);
public static void main(String[] args){
long a = stdIn.nextLong();
long b = stdIn.nextLong();
long c = stdIn.nextLong();
long d = stdIn.nextLong();
long max = Long.MIN_VALUE;
if(max < a * c)
max = a * c;
if(max < a * d)
max = a * d;
if(max < b * c)
max = b * c;
if(max < b * d)
max = b * d;
System.out.println(max);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
18,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
168,
8
],
[
168,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
11,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
11,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
11,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
11,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
11,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
11,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
62,
66
],
[
11,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
69,
73
],
[
11,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
76,
80
],
[
11,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
9,
87
],
[
87,
88
],
[
168,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
100,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
105,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
99,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
89,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
127,
128
],
[
89,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
136,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
152,
153
],
[
131,
154
],
[
154,
155
],
[
129,
156
],
[
156,
157
],
[
89,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
162,
165
],
[
165,
166
],
[
0,
167
],
[
167,
168
],
[
167,
169
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) throws Exception {\n\t\tFastScanner fs = new FastScanner();\n\t\tlong a = fs.nextInt() , b = fs.nextInt(), c = fs.nextInt(), d = fs.nextInt();\n\t\tlong ans = Long.MAX_VALUE;\n\t\tlong ans1 = a*c;\n\t\tlong ans2 = a*d;\n\t\tlong ans3 = b*c;\n\t\tlong ans4 = b*d;\n\t\tlong temp1 = Math.max(ans1, ans2);\n\t\tlong temp2 = Math.max(ans3, ans4);\n\t\tans = Math.max(temp1, temp2);\n\t\tSystem.out.println(ans);\n\t}\n\t\n\tstatic class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\t\n\tpublic static void main(String[] args) throws Exception {\n\t\tFastScanner fs = new FastScanner();\n\t\tlong a = fs.nextInt() , b = fs.nextInt(), c = fs.nextInt(), d = fs.nextInt();\n\t\tlong ans = Long.MAX_VALUE;\n\t\tlong ans1 = a*c;\n\t\tlong ans2 = a*d;\n\t\tlong ans3 = b*c;\n\t\tlong ans4 = b*d;\n\t\tlong temp1 = Math.max(ans1, ans2);\n\t\tlong temp2 = Math.max(ans3, ans4);\n\t\tans = Math.max(temp1, temp2);\n\t\tSystem.out.println(ans);\n\t}\n\t\n\tstatic class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tFastScanner fs = new FastScanner();\n\t\tlong a = fs.nextInt() , b = fs.nextInt(), c = fs.nextInt(), d = fs.nextInt();\n\t\tlong ans = Long.MAX_VALUE;\n\t\tlong ans1 = a*c;\n\t\tlong ans2 = a*d;\n\t\tlong ans3 = b*c;\n\t\tlong ans4 = b*d;\n\t\tlong temp1 = Math.max(ans1, ans2);\n\t\tlong temp2 = Math.max(ans3, ans4);\n\t\tans = Math.max(temp1, temp2);\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tFastScanner fs = new FastScanner();\n\t\tlong a = fs.nextInt() , b = fs.nextInt(), c = fs.nextInt(), d = fs.nextInt();\n\t\tlong ans = Long.MAX_VALUE;\n\t\tlong ans1 = a*c;\n\t\tlong ans2 = a*d;\n\t\tlong ans3 = b*c;\n\t\tlong ans4 = b*d;\n\t\tlong temp1 = Math.max(ans1, ans2);\n\t\tlong temp2 = Math.max(ans3, ans4);\n\t\tans = Math.max(temp1, temp2);\n\t\tSystem.out.println(ans);\n\t}",
"FastScanner fs = new FastScanner();",
"fs",
"new FastScanner()",
"long a = fs.nextInt()",
"a",
"fs.nextInt()",
"fs.nextInt",
"fs",
"b = fs.nextInt()",
"b",
"fs.nextInt()",
"fs.nextInt",
"fs",
"c = fs.nextInt()",
"c",
"fs.nextInt()",
"fs.nextInt",
"fs",
"d = fs.nextInt();",
"d",
"fs.nextInt()",
"fs.nextInt",
"fs",
"long ans = Long.MAX_VALUE;",
"ans",
"Long.MAX_VALUE",
"Long",
"Long.MAX_VALUE",
"long ans1 = a*c;",
"ans1",
"a*c",
"a",
"c",
"long ans2 = a*d;",
"ans2",
"a*d",
"a",
"d",
"long ans3 = b*c;",
"ans3",
"b*c",
"b",
"c",
"long ans4 = b*d;",
"ans4",
"b*d",
"b",
"d",
"long temp1 = Math.max(ans1, ans2);",
"temp1",
"Math.max(ans1, ans2)",
"Math.max",
"Math",
"ans1",
"ans2",
"long temp2 = Math.max(ans3, ans4);",
"temp2",
"Math.max(ans3, ans4)",
"Math.max",
"Math",
"ans3",
"ans4",
"ans = Math.max(temp1, temp2)",
"ans",
"Math.max(temp1, temp2)",
"Math.max",
"Math",
"temp1",
"temp2",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"static class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}",
"FastScanner",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st=new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"String next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"while (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t}",
"st=new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"int[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}",
"readArray",
"{\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}",
"int[] a=new int[n];",
"a",
"new int[n]",
"n",
"for (int i=0; i<n; i++) a[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextInt();",
"a[i]=nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public class Main {\n\t\n\tpublic static void main(String[] args) throws Exception {\n\t\tFastScanner fs = new FastScanner();\n\t\tlong a = fs.nextInt() , b = fs.nextInt(), c = fs.nextInt(), d = fs.nextInt();\n\t\tlong ans = Long.MAX_VALUE;\n\t\tlong ans1 = a*c;\n\t\tlong ans2 = a*d;\n\t\tlong ans3 = b*c;\n\t\tlong ans4 = b*d;\n\t\tlong temp1 = Math.max(ans1, ans2);\n\t\tlong temp2 = Math.max(ans3, ans4);\n\t\tans = Math.max(temp1, temp2);\n\t\tSystem.out.println(ans);\n\t}\n\t\n\tstatic class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n}",
"public class Main {\n\t\n\tpublic static void main(String[] args) throws Exception {\n\t\tFastScanner fs = new FastScanner();\n\t\tlong a = fs.nextInt() , b = fs.nextInt(), c = fs.nextInt(), d = fs.nextInt();\n\t\tlong ans = Long.MAX_VALUE;\n\t\tlong ans1 = a*c;\n\t\tlong ans2 = a*d;\n\t\tlong ans3 = b*c;\n\t\tlong ans4 = b*d;\n\t\tlong temp1 = Math.max(ans1, ans2);\n\t\tlong temp2 = Math.max(ans3, ans4);\n\t\tans = Math.max(temp1, temp2);\n\t\tSystem.out.println(ans);\n\t}\n\t\n\tstatic class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
FastScanner fs = new FastScanner();
long a = fs.nextInt() , b = fs.nextInt(), c = fs.nextInt(), d = fs.nextInt();
long ans = Long.MAX_VALUE;
long ans1 = a*c;
long ans2 = a*d;
long ans3 = b*c;
long ans4 = b*d;
long temp1 = Math.max(ans1, ans2);
long temp2 = Math.max(ans3, ans4);
ans = Math.max(temp1, temp2);
System.out.println(ans);
}
static class FastScanner {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st=new StringTokenizer("");
String next() {
while (!st.hasMoreTokens())
try {
st=new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
int[] readArray(int n) {
int[] a=new int[n];
for (int i=0; i<n; i++) a[i]=nextInt();
return a;
}
long nextLong() {
return Long.parseLong(next());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
17,
0,
18,
13,
17,
2,
13,
13,
0,
18,
13,
17,
2,
13,
13,
0,
18,
13,
17,
2,
13,
13,
0,
18,
13,
17,
2,
13,
13,
41,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
18,
13,
13,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
40,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
69,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
82,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
6,
99
],
[
99,
100
]
]
| [
"import java.util.Scanner;\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n\n long[] s = new long[4];\n s[0] = a*c;\n s[1] = a*d;\n s[2] = b*c;\n s[3] = b*d;\n\n long ans = s[0];\n for(int i = 0; i < 4; i++) {\n if(ans < s[i]) ans = s[i];\n }\n\n System.out.println(ans);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n\n long[] s = new long[4];\n s[0] = a*c;\n s[1] = a*d;\n s[2] = b*c;\n s[3] = b*d;\n\n long ans = s[0];\n for(int i = 0; i < 4; i++) {\n if(ans < s[i]) ans = s[i];\n }\n\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n\n long[] s = new long[4];\n s[0] = a*c;\n s[1] = a*d;\n s[2] = b*c;\n s[3] = b*d;\n\n long ans = s[0];\n for(int i = 0; i < 4; i++) {\n if(ans < s[i]) ans = s[i];\n }\n\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n\n long[] s = new long[4];\n s[0] = a*c;\n s[1] = a*d;\n s[2] = b*c;\n s[3] = b*d;\n\n long ans = s[0];\n for(int i = 0; i < 4; i++) {\n if(ans < s[i]) ans = s[i];\n }\n\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long[] s = new long[4];",
"s",
"new long[4]",
"4",
"s[0] = a*c",
"s[0]",
"s",
"0",
"a*c",
"a",
"c",
"s[1] = a*d",
"s[1]",
"s",
"1",
"a*d",
"a",
"d",
"s[2] = b*c",
"s[2]",
"s",
"2",
"b*c",
"b",
"c",
"s[3] = b*d",
"s[3]",
"s",
"3",
"b*d",
"b",
"d",
"long ans = s[0];",
"ans",
"s[0]",
"s",
"0",
"for(int i = 0; i < 4; i++) {\n if(ans < s[i]) ans = s[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n if(ans < s[i]) ans = s[i];\n }",
"{\n if(ans < s[i]) ans = s[i];\n }",
"if(ans < s[i]) ans = s[i];",
"ans < s[i]",
"ans",
"s[i]",
"s",
"i",
"ans = s[i]",
"ans",
"s[i]",
"s",
"i",
"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) {
Scanner sc = new Scanner(System.in);
long a = sc.nextInt();
long b = sc.nextInt();
long c = sc.nextInt();
long d = sc.nextInt();
long[] s = new long[4];
s[0] = a*c;
s[1] = a*d;
s[2] = b*c;
s[3] = b*d;
long ans = s[0];
for(int i = 0; i < 4; i++) {
if(ans < s[i]) ans = s[i];
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
0,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
41,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
92,
5
],
[
92,
6
],
[
6,
7
],
[
92,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
12,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
18,
21
],
[
21,
22
],
[
22,
23
],
[
12,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
12,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
38,
39
],
[
12,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
46,
47
],
[
12,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
12,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
12,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
12,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
12,
80
],
[
80,
81
],
[
80,
82
],
[
12,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
8,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tstatic Long num;\n\tpublic static void main(String[] args) {\n\n\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tLong a = Long.parseLong(sc.next());\n\t\t\tLong b = Long.parseLong(sc.next());\n\t\t\tLong c = Long.parseLong(sc.next());\n\t\t\tLong d = Long.parseLong(sc.next());\n\t\t\t\n\t\t\t\n\t\t\tnum = a*c;\n\t\t\tnum = Math.max(num,a*d);\n\t\t\tnum = Math.max(num,b*c);\n\t\t\tnum = Math.max(num,b*d);\n\t\t\tLong anser = num;\n\t\t\tSystem.out.println(anser);\n\t\t}\n\t}\t\t\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tstatic Long num;\n\tpublic static void main(String[] args) {\n\n\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tLong a = Long.parseLong(sc.next());\n\t\t\tLong b = Long.parseLong(sc.next());\n\t\t\tLong c = Long.parseLong(sc.next());\n\t\t\tLong d = Long.parseLong(sc.next());\n\t\t\t\n\t\t\t\n\t\t\tnum = a*c;\n\t\t\tnum = Math.max(num,a*d);\n\t\t\tnum = Math.max(num,b*c);\n\t\t\tnum = Math.max(num,b*d);\n\t\t\tLong anser = num;\n\t\t\tSystem.out.println(anser);\n\t\t}\n\t}\t\t\n}",
"Main",
"static Long num;",
"num",
"public static void main(String[] args) {\n\n\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tLong a = Long.parseLong(sc.next());\n\t\t\tLong b = Long.parseLong(sc.next());\n\t\t\tLong c = Long.parseLong(sc.next());\n\t\t\tLong d = Long.parseLong(sc.next());\n\t\t\t\n\t\t\t\n\t\t\tnum = a*c;\n\t\t\tnum = Math.max(num,a*d);\n\t\t\tnum = Math.max(num,b*c);\n\t\t\tnum = Math.max(num,b*d);\n\t\t\tLong anser = num;\n\t\t\tSystem.out.println(anser);\n\t\t}\n\t}",
"main",
"{\n\n\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tLong a = Long.parseLong(sc.next());\n\t\t\tLong b = Long.parseLong(sc.next());\n\t\t\tLong c = Long.parseLong(sc.next());\n\t\t\tLong d = Long.parseLong(sc.next());\n\t\t\t\n\t\t\t\n\t\t\tnum = a*c;\n\t\t\tnum = Math.max(num,a*d);\n\t\t\tnum = Math.max(num,b*c);\n\t\t\tnum = Math.max(num,b*d);\n\t\t\tLong anser = num;\n\t\t\tSystem.out.println(anser);\n\t\t}\n\t}",
"try (Scanner sc = new Scanner(System.in)) {\n\t\t\tLong a = Long.parseLong(sc.next());\n\t\t\tLong b = Long.parseLong(sc.next());\n\t\t\tLong c = Long.parseLong(sc.next());\n\t\t\tLong d = Long.parseLong(sc.next());\n\t\t\t\n\t\t\t\n\t\t\tnum = a*c;\n\t\t\tnum = Math.max(num,a*d);\n\t\t\tnum = Math.max(num,b*c);\n\t\t\tnum = Math.max(num,b*d);\n\t\t\tLong anser = num;\n\t\t\tSystem.out.println(anser);\n\t\t}",
"{\n\t\t\tLong a = Long.parseLong(sc.next());\n\t\t\tLong b = Long.parseLong(sc.next());\n\t\t\tLong c = Long.parseLong(sc.next());\n\t\t\tLong d = Long.parseLong(sc.next());\n\t\t\t\n\t\t\t\n\t\t\tnum = a*c;\n\t\t\tnum = Math.max(num,a*d);\n\t\t\tnum = Math.max(num,b*c);\n\t\t\tnum = Math.max(num,b*d);\n\t\t\tLong anser = num;\n\t\t\tSystem.out.println(anser);\n\t\t}",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"Long a = Long.parseLong(sc.next());",
"a",
"Long.parseLong(sc.next())",
"Long.parseLong",
"Long",
"sc.next()",
"sc.next",
"sc",
"Long b = Long.parseLong(sc.next());",
"b",
"Long.parseLong(sc.next())",
"Long.parseLong",
"Long",
"sc.next()",
"sc.next",
"sc",
"Long c = Long.parseLong(sc.next());",
"c",
"Long.parseLong(sc.next())",
"Long.parseLong",
"Long",
"sc.next()",
"sc.next",
"sc",
"Long d = Long.parseLong(sc.next());",
"d",
"Long.parseLong(sc.next())",
"Long.parseLong",
"Long",
"sc.next()",
"sc.next",
"sc",
"num = a*c",
"num",
"a*c",
"a",
"c",
"num = Math.max(num,a*d)",
"num",
"Math.max(num,a*d)",
"Math.max",
"Math",
"num",
"a*d",
"a",
"d",
"num = Math.max(num,b*c)",
"num",
"Math.max(num,b*c)",
"Math.max",
"Math",
"num",
"b*c",
"b",
"c",
"num = Math.max(num,b*d)",
"num",
"Math.max(num,b*d)",
"Math.max",
"Math",
"num",
"b*d",
"b",
"d",
"Long anser = num;",
"anser",
"num",
"System.out.println(anser)",
"System.out.println",
"System.out",
"System",
"System.out",
"anser",
"String[] args",
"args",
"public class Main {\n\tstatic Long num;\n\tpublic static void main(String[] args) {\n\n\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tLong a = Long.parseLong(sc.next());\n\t\t\tLong b = Long.parseLong(sc.next());\n\t\t\tLong c = Long.parseLong(sc.next());\n\t\t\tLong d = Long.parseLong(sc.next());\n\t\t\t\n\t\t\t\n\t\t\tnum = a*c;\n\t\t\tnum = Math.max(num,a*d);\n\t\t\tnum = Math.max(num,b*c);\n\t\t\tnum = Math.max(num,b*d);\n\t\t\tLong anser = num;\n\t\t\tSystem.out.println(anser);\n\t\t}\n\t}\t\t\n}",
"public class Main {\n\tstatic Long num;\n\tpublic static void main(String[] args) {\n\n\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tLong a = Long.parseLong(sc.next());\n\t\t\tLong b = Long.parseLong(sc.next());\n\t\t\tLong c = Long.parseLong(sc.next());\n\t\t\tLong d = Long.parseLong(sc.next());\n\t\t\t\n\t\t\t\n\t\t\tnum = a*c;\n\t\t\tnum = Math.max(num,a*d);\n\t\t\tnum = Math.max(num,b*c);\n\t\t\tnum = Math.max(num,b*d);\n\t\t\tLong anser = num;\n\t\t\tSystem.out.println(anser);\n\t\t}\n\t}\t\t\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
static Long num;
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in)) {
Long a = Long.parseLong(sc.next());
Long b = Long.parseLong(sc.next());
Long c = Long.parseLong(sc.next());
Long d = Long.parseLong(sc.next());
num = a*c;
num = Math.max(num,a*d);
num = Math.max(num,b*c);
num = Math.max(num,b*d);
Long anser = num;
System.out.println(anser);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
13,
29,
4,
13,
2,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
13,
13,
4,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
0,
13,
20,
2,
13,
17,
4,
18,
13,
13,
17,
0,
18,
13,
17,
17,
11,
1,
41,
13,
17,
2,
2,
13,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
11,
1,
41,
13,
2,
13,
13,
2,
13,
13,
1,
0,
13,
13,
30,
30,
0,
18,
13,
13,
17,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
13,
23,
13,
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
],
[
370,
14
],
[
370,
15
],
[
15,
16
],
[
370,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
19,
26
],
[
26,
27
],
[
26,
28
],
[
19,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
29,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
34,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
34,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
34,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
34,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
34,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
34,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
78,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
86,
90
],
[
19,
91
],
[
91,
92
],
[
92,
93
],
[
17,
94
],
[
94,
95
],
[
370,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
98,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
96,
112
],
[
112,
113
],
[
96,
114
],
[
114,
115
],
[
370,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
124,
126
],
[
124,
127
],
[
116,
128
],
[
128,
129
],
[
116,
130
],
[
130,
131
],
[
370,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
138,
140
],
[
141,
142
],
[
141,
143
],
[
134,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
144,
148
],
[
134,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
134,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
154,
164
],
[
164,
165
],
[
165,
166
],
[
154,
167
],
[
168,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
169,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
180,
182
],
[
176,
183
],
[
183,
184
],
[
183,
185
],
[
176,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
176,
190
],
[
191,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
370,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
199,
203
],
[
203,
204
],
[
203,
205
],
[
203,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
207,
210
],
[
199,
211
],
[
211,
212
],
[
212,
213
],
[
211,
214
],
[
199,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
215,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
222,
224
],
[
215,
225
],
[
225,
226
],
[
226,
227
],
[
215,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
233
],
[
233,
234
],
[
234,
235
],
[
233,
236
],
[
197,
237
],
[
237,
238
],
[
370,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
241,
245
],
[
245,
246
],
[
245,
247
],
[
245,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
249,
252
],
[
241,
253
],
[
253,
254
],
[
254,
255
],
[
253,
256
],
[
241,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
257,
262
],
[
262,
263
],
[
262,
264
],
[
264,
265
],
[
264,
266
],
[
257,
267
],
[
267,
268
],
[
268,
269
],
[
257,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
271,
275
],
[
275,
276
],
[
276,
277
],
[
275,
278
],
[
239,
279
],
[
279,
280
],
[
370,
281
],
[
281,
282
],
[
281,
283
],
[
283,
284
],
[
281,
285
],
[
285,
286
],
[
281,
287
],
[
287,
288
],
[
287,
289
],
[
289,
290
],
[
290,
291
],
[
290,
292
],
[
281,
293
],
[
293,
294
],
[
293,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
297,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
296,
305
],
[
305,
306
],
[
306,
307
],
[
307,
308
],
[
307,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
306,
313
],
[
313,
314
],
[
314,
315
],
[
314,
316
],
[
295,
317
],
[
317,
318
],
[
318,
319
],
[
319,
320
],
[
281,
321
],
[
321,
322
],
[
321,
323
],
[
323,
324
],
[
324,
325
],
[
325,
326
],
[
326,
327
],
[
325,
328
],
[
328,
329
],
[
281,
330
],
[
330,
331
],
[
330,
332
],
[
332,
333
],
[
333,
334
],
[
334,
335
],
[
335,
336
],
[
334,
337
],
[
337,
338
],
[
281,
339
],
[
339,
340
],
[
339,
341
],
[
341,
342
],
[
342,
343
],
[
343,
344
],
[
344,
345
],
[
343,
346
],
[
346,
347
],
[
281,
348
],
[
348,
349
],
[
348,
350
],
[
350,
351
],
[
351,
352
],
[
351,
353
],
[
350,
354
],
[
354,
355
],
[
355,
356
],
[
355,
357
],
[
357,
358
],
[
358,
359
],
[
359,
360
],
[
354,
361
],
[
361,
362
],
[
362,
363
],
[
362,
364
],
[
364,
365
],
[
365,
366
],
[
350,
367
],
[
367,
368
],
[
0,
369
],
[
369,
370
],
[
369,
371
]
]
| [
"import java.util.*;\nimport java.util.Scanner;\nimport java.io.*;\nimport javax.lang.model.util.ElementScanner6; \n\npublic class Main\n{\n\n public static void main(String args[])\n { \n\n FastReader in=new FastReader();\n PrintWriter pr = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n int t=1;\n \n //t=in.nextInt();\n while(t-->0)\n {\n long a=in.nextLong();\n long b=in.nextLong();\n long c=in.nextLong();\n long d=in.nextLong();\n \n long m1=a*c;\n long m2=a*d;\n long m3=b*c;\n long m4=b*d;\n pr.println(Math.max(m1,Math.max(m2,Math.max(m3, m4))));\n \n\n }\n pr.flush();\n }\n\n\n\n \n static int gcd(int a,int b)\n {\n \n if(a==0)\n return b;\n return gcd(a%b,b);\n }\n\n static int lcm(int a,int b)\n {\n return (a*b)/gcd(a,b);\n }\n\n\n static boolean prime[];\n\n static void sieveofe()\n {\n int n=1000000;\n \n prime=new boolean[n+1];\n Arrays.fill(prime,true);\n prime[1]=false;\n for(int i=2;i*i<=n;i++)\n {\n if(prime[i]==true)\n {\n for(int j=i*i;j<=n;j+=i)\n {\n prime[j]=false;\n }\n }\n }\n \n \n }\n \n static void sort(long[] a) {\n\t\tArrayList<Long> l = new ArrayList<>();\n\t\tfor (long i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n\t}\n \n \n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor (int i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n }\n\n \n static class FastReader\n { \n BufferedReader br; \n StringTokenizer st; \n\n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n\n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n\n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n\n long nextLong() \n { \n return Long.parseLong(next()); \n } \n\n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n\n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n\n \n \n}",
"import java.util.*;",
"util.*",
"java",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.io.*;",
"io.*",
"java",
"import javax.lang.model.util.ElementScanner6;",
"ElementScanner6",
"javax.lang.model.util",
"public class Main\n{\n\n public static void main(String args[])\n { \n\n FastReader in=new FastReader();\n PrintWriter pr = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n int t=1;\n \n //t=in.nextInt();\n while(t-->0)\n {\n long a=in.nextLong();\n long b=in.nextLong();\n long c=in.nextLong();\n long d=in.nextLong();\n \n long m1=a*c;\n long m2=a*d;\n long m3=b*c;\n long m4=b*d;\n pr.println(Math.max(m1,Math.max(m2,Math.max(m3, m4))));\n \n\n }\n pr.flush();\n }\n\n\n\n \n static int gcd(int a,int b)\n {\n \n if(a==0)\n return b;\n return gcd(a%b,b);\n }\n\n static int lcm(int a,int b)\n {\n return (a*b)/gcd(a,b);\n }\n\n\n static boolean prime[];\n\n static void sieveofe()\n {\n int n=1000000;\n \n prime=new boolean[n+1];\n Arrays.fill(prime,true);\n prime[1]=false;\n for(int i=2;i*i<=n;i++)\n {\n if(prime[i]==true)\n {\n for(int j=i*i;j<=n;j+=i)\n {\n prime[j]=false;\n }\n }\n }\n \n \n }\n \n static void sort(long[] a) {\n\t\tArrayList<Long> l = new ArrayList<>();\n\t\tfor (long i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n\t}\n \n \n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor (int i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n }\n\n \n static class FastReader\n { \n BufferedReader br; \n StringTokenizer st; \n\n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n\n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n\n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n\n long nextLong() \n { \n return Long.parseLong(next()); \n } \n\n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n\n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n\n \n \n}",
"Main",
"static boolean prime[];",
"prime",
"public static void main(String args[])\n { \n\n FastReader in=new FastReader();\n PrintWriter pr = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n int t=1;\n \n //t=in.nextInt();\n while(t-->0)\n {\n long a=in.nextLong();\n long b=in.nextLong();\n long c=in.nextLong();\n long d=in.nextLong();\n \n long m1=a*c;\n long m2=a*d;\n long m3=b*c;\n long m4=b*d;\n pr.println(Math.max(m1,Math.max(m2,Math.max(m3, m4))));\n \n\n }\n pr.flush();\n }",
"main",
"{ \n\n FastReader in=new FastReader();\n PrintWriter pr = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n int t=1;\n \n //t=in.nextInt();\n while(t-->0)\n {\n long a=in.nextLong();\n long b=in.nextLong();\n long c=in.nextLong();\n long d=in.nextLong();\n \n long m1=a*c;\n long m2=a*d;\n long m3=b*c;\n long m4=b*d;\n pr.println(Math.max(m1,Math.max(m2,Math.max(m3, m4))));\n \n\n }\n pr.flush();\n }",
"FastReader in=new FastReader();",
"in",
"new FastReader()",
"PrintWriter pr = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));",
"pr",
"new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)))",
"int t=1;",
"t",
"1",
"while(t-->0)\n {\n long a=in.nextLong();\n long b=in.nextLong();\n long c=in.nextLong();\n long d=in.nextLong();\n \n long m1=a*c;\n long m2=a*d;\n long m3=b*c;\n long m4=b*d;\n pr.println(Math.max(m1,Math.max(m2,Math.max(m3, m4))));\n \n\n }",
"t-->0",
"t--",
"t",
"0",
"{\n long a=in.nextLong();\n long b=in.nextLong();\n long c=in.nextLong();\n long d=in.nextLong();\n \n long m1=a*c;\n long m2=a*d;\n long m3=b*c;\n long m4=b*d;\n pr.println(Math.max(m1,Math.max(m2,Math.max(m3, m4))));\n \n\n }",
"long a=in.nextLong();",
"a",
"in.nextLong()",
"in.nextLong",
"in",
"long b=in.nextLong();",
"b",
"in.nextLong()",
"in.nextLong",
"in",
"long c=in.nextLong();",
"c",
"in.nextLong()",
"in.nextLong",
"in",
"long d=in.nextLong();",
"d",
"in.nextLong()",
"in.nextLong",
"in",
"long m1=a*c;",
"m1",
"a*c",
"a",
"c",
"long m2=a*d;",
"m2",
"a*d",
"a",
"d",
"long m3=b*c;",
"m3",
"b*c",
"b",
"c",
"long m4=b*d;",
"m4",
"b*d",
"b",
"d",
"pr.println(Math.max(m1,Math.max(m2,Math.max(m3, m4))))",
"pr.println",
"pr",
"Math.max(m1,Math.max(m2,Math.max(m3, m4)))",
"Math.max",
"Math",
"m1",
"Math.max(m2,Math.max(m3, m4))",
"Math.max",
"Math",
"m2",
"Math.max(m3, m4)",
"Math.max",
"Math",
"m3",
"m4",
"pr.flush()",
"pr.flush",
"pr",
"String args[]",
"args",
"static int gcd(int a,int b)\n {\n \n if(a==0)\n return b;\n return gcd(a%b,b);\n }",
"gcd",
"{\n \n if(a==0)\n return b;\n return gcd(a%b,b);\n }",
"if(a==0)\n return b;",
"a==0",
"a",
"0",
"return b;",
"b",
"return gcd(a%b,b);",
"gcd(a%b,b)",
"gcd",
"a%b",
"a",
"b",
"b",
"int a",
"a",
"int b",
"b",
"static int lcm(int a,int b)\n {\n return (a*b)/gcd(a,b);\n }",
"lcm",
"{\n return (a*b)/gcd(a,b);\n }",
"return (a*b)/gcd(a,b);",
"(a*b)/gcd(a,b)",
"(a*b)",
"a",
"b",
"gcd(a,b)",
"gcd",
"a",
"b",
"int a",
"a",
"int b",
"b",
"static void sieveofe()\n {\n int n=1000000;\n \n prime=new boolean[n+1];\n Arrays.fill(prime,true);\n prime[1]=false;\n for(int i=2;i*i<=n;i++)\n {\n if(prime[i]==true)\n {\n for(int j=i*i;j<=n;j+=i)\n {\n prime[j]=false;\n }\n }\n }\n \n \n }",
"sieveofe",
"{\n int n=1000000;\n \n prime=new boolean[n+1];\n Arrays.fill(prime,true);\n prime[1]=false;\n for(int i=2;i*i<=n;i++)\n {\n if(prime[i]==true)\n {\n for(int j=i*i;j<=n;j+=i)\n {\n prime[j]=false;\n }\n }\n }\n \n \n }",
"int n=1000000;",
"n",
"1000000",
"prime=new boolean[n+1]",
"prime",
"new boolean[n+1]",
"n+1",
"n",
"1",
"Arrays.fill(prime,true)",
"Arrays.fill",
"Arrays",
"prime",
"true",
"prime[1]=false",
"prime[1]",
"prime",
"1",
"false",
"for(int i=2;i*i<=n;i++)\n {\n if(prime[i]==true)\n {\n for(int j=i*i;j<=n;j+=i)\n {\n prime[j]=false;\n }\n }\n }",
"int i=2;",
"int i=2;",
"i",
"2",
"i*i<=n",
"i*i",
"i",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(prime[i]==true)\n {\n for(int j=i*i;j<=n;j+=i)\n {\n prime[j]=false;\n }\n }\n }",
"{\n if(prime[i]==true)\n {\n for(int j=i*i;j<=n;j+=i)\n {\n prime[j]=false;\n }\n }\n }",
"if(prime[i]==true)\n {\n for(int j=i*i;j<=n;j+=i)\n {\n prime[j]=false;\n }\n }",
"prime[i]==true",
"prime[i]",
"prime",
"i",
"true",
"{\n for(int j=i*i;j<=n;j+=i)\n {\n prime[j]=false;\n }\n }",
"for(int j=i*i;j<=n;j+=i)\n {\n prime[j]=false;\n }",
"int j=i*i;",
"int j=i*i;",
"j",
"i*i",
"i",
"i",
"j<=n",
"j",
"n",
"j+=i",
"j+=i",
"j",
"i",
"{\n prime[j]=false;\n }",
"{\n prime[j]=false;\n }",
"prime[j]=false",
"prime[j]",
"prime",
"j",
"false",
"static void sort(long[] a) {\n\t\tArrayList<Long> l = new ArrayList<>();\n\t\tfor (long i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n\t}",
"sort",
"{\n\t\tArrayList<Long> l = new ArrayList<>();\n\t\tfor (long i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n\t}",
"ArrayList<Long> l = new ArrayList<>();",
"l",
"new ArrayList<>()",
"for (long i : a)\n\t\t\tl.add(i);",
"long i",
"a",
"l.add(i);",
"l.add(i)",
"l.add",
"l",
"i",
"Collections.sort(l)",
"Collections.sort",
"Collections",
"l",
"for (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"a[i] = l.get(i);",
"a[i] = l.get(i)",
"a[i]",
"a",
"i",
"l.get(i)",
"l.get",
"l",
"i",
"long[] a",
"a",
"static void sort(int[] a) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor (int i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n }",
"sort",
"{\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor (int i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n }",
"ArrayList<Integer> l = new ArrayList<>();",
"l",
"new ArrayList<>()",
"for (int i : a)\n\t\t\tl.add(i);",
"int i",
"a",
"l.add(i);",
"l.add(i)",
"l.add",
"l",
"i",
"Collections.sort(l)",
"Collections.sort",
"Collections",
"l",
"for (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"a[i] = l.get(i);",
"a[i] = l.get(i)",
"a[i]",
"a",
"i",
"l.get(i)",
"l.get",
"l",
"i",
"int[] a",
"a",
"static class FastReader\n { \n BufferedReader br; \n StringTokenizer st; \n\n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n\n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n\n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n\n long nextLong() \n { \n return Long.parseLong(next()); \n } \n\n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n\n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n }",
"FastReader",
"{ \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n }",
"br = new BufferedReader(new\n InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n InputStreamReader(System.in))",
"String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }",
"next",
"{ \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }",
"while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{ \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }",
"try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }",
"catch (IOException e) \n { \n e.printStackTrace(); \n }",
"IOException e",
"{ \n e.printStackTrace(); \n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ \n st = new StringTokenizer(br.readLine()); \n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() \n { \n return Integer.parseInt(next()); \n }",
"nextInt",
"{ \n return Integer.parseInt(next()); \n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() \n { \n return Long.parseLong(next()); \n }",
"nextLong",
"{ \n return Long.parseLong(next()); \n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() \n { \n return Double.parseDouble(next()); \n }",
"nextDouble",
"{ \n return Double.parseDouble(next()); \n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }",
"nextLine",
"{ \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }",
"String str = \"\";",
"str",
"\"\"",
"try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }",
"catch (IOException e) \n { \n e.printStackTrace(); \n }",
"IOException e",
"{ \n e.printStackTrace(); \n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ \n str = br.readLine(); \n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main\n{\n\n public static void main(String args[])\n { \n\n FastReader in=new FastReader();\n PrintWriter pr = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n int t=1;\n \n //t=in.nextInt();\n while(t-->0)\n {\n long a=in.nextLong();\n long b=in.nextLong();\n long c=in.nextLong();\n long d=in.nextLong();\n \n long m1=a*c;\n long m2=a*d;\n long m3=b*c;\n long m4=b*d;\n pr.println(Math.max(m1,Math.max(m2,Math.max(m3, m4))));\n \n\n }\n pr.flush();\n }\n\n\n\n \n static int gcd(int a,int b)\n {\n \n if(a==0)\n return b;\n return gcd(a%b,b);\n }\n\n static int lcm(int a,int b)\n {\n return (a*b)/gcd(a,b);\n }\n\n\n static boolean prime[];\n\n static void sieveofe()\n {\n int n=1000000;\n \n prime=new boolean[n+1];\n Arrays.fill(prime,true);\n prime[1]=false;\n for(int i=2;i*i<=n;i++)\n {\n if(prime[i]==true)\n {\n for(int j=i*i;j<=n;j+=i)\n {\n prime[j]=false;\n }\n }\n }\n \n \n }\n \n static void sort(long[] a) {\n\t\tArrayList<Long> l = new ArrayList<>();\n\t\tfor (long i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n\t}\n \n \n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor (int i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n }\n\n \n static class FastReader\n { \n BufferedReader br; \n StringTokenizer st; \n\n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n\n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n\n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n\n long nextLong() \n { \n return Long.parseLong(next()); \n } \n\n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n\n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n\n \n \n}",
"public class Main\n{\n\n public static void main(String args[])\n { \n\n FastReader in=new FastReader();\n PrintWriter pr = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n int t=1;\n \n //t=in.nextInt();\n while(t-->0)\n {\n long a=in.nextLong();\n long b=in.nextLong();\n long c=in.nextLong();\n long d=in.nextLong();\n \n long m1=a*c;\n long m2=a*d;\n long m3=b*c;\n long m4=b*d;\n pr.println(Math.max(m1,Math.max(m2,Math.max(m3, m4))));\n \n\n }\n pr.flush();\n }\n\n\n\n \n static int gcd(int a,int b)\n {\n \n if(a==0)\n return b;\n return gcd(a%b,b);\n }\n\n static int lcm(int a,int b)\n {\n return (a*b)/gcd(a,b);\n }\n\n\n static boolean prime[];\n\n static void sieveofe()\n {\n int n=1000000;\n \n prime=new boolean[n+1];\n Arrays.fill(prime,true);\n prime[1]=false;\n for(int i=2;i*i<=n;i++)\n {\n if(prime[i]==true)\n {\n for(int j=i*i;j<=n;j+=i)\n {\n prime[j]=false;\n }\n }\n }\n \n \n }\n \n static void sort(long[] a) {\n\t\tArrayList<Long> l = new ArrayList<>();\n\t\tfor (long i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n\t}\n \n \n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor (int i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n }\n\n \n static class FastReader\n { \n BufferedReader br; \n StringTokenizer st; \n\n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n\n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n\n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n\n long nextLong() \n { \n return Long.parseLong(next()); \n } \n\n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n\n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n\n \n \n}",
"Main"
]
| import java.util.*;
import java.util.Scanner;
import java.io.*;
import javax.lang.model.util.ElementScanner6;
public class Main
{
public static void main(String args[])
{
FastReader in=new FastReader();
PrintWriter pr = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
int t=1;
//t=in.nextInt();
while(t-->0)
{
long a=in.nextLong();
long b=in.nextLong();
long c=in.nextLong();
long d=in.nextLong();
long m1=a*c;
long m2=a*d;
long m3=b*c;
long m4=b*d;
pr.println(Math.max(m1,Math.max(m2,Math.max(m3, m4))));
}
pr.flush();
}
static int gcd(int a,int b)
{
if(a==0)
return b;
return gcd(a%b,b);
}
static int lcm(int a,int b)
{
return (a*b)/gcd(a,b);
}
static boolean prime[];
static void sieveofe()
{
int n=1000000;
prime=new boolean[n+1];
Arrays.fill(prime,true);
prime[1]=false;
for(int i=2;i*i<=n;i++)
{
if(prime[i]==true)
{
for(int j=i*i;j<=n;j+=i)
{
prime[j]=false;
}
}
}
}
static void sort(long[] a) {
ArrayList<Long> l = new ArrayList<>();
for (long i : a)
l.add(i);
Collections.sort(l);
for (int i = 0; i < a.length; i++)
a[i] = l.get(i);
}
static void sort(int[] a) {
ArrayList<Integer> l = new ArrayList<>();
for (int i : a)
l.add(i);
Collections.sort(l);
for (int i = 0; i < a.length; i++)
a[i] = l.get(i);
}
static class FastReader
{
BufferedReader br;
StringTokenizer st;
public FastReader()
{
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next()
{
while (st == null || !st.hasMoreElements())
{
try
{
st = new StringTokenizer(br.readLine());
}
catch (IOException e)
{
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt()
{
return Integer.parseInt(next());
}
long nextLong()
{
return Long.parseLong(next());
}
double nextDouble()
{
return Double.parseDouble(next());
}
String nextLine()
{
String str = "";
try
{
str = br.readLine();
}
catch (IOException e)
{
e.printStackTrace();
}
return str;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
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,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
39,
13,
13,
13,
13,
4,
18,
13,
13,
4,
18,
13,
18,
13,
17,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
108,
17
],
[
108,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
27,
29
],
[
20,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
35,
36
],
[
36,
37
],
[
20,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
44,
45
],
[
20,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
20,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
59,
60
],
[
60,
61
],
[
20,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
20,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
20,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
20,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
20,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
84,
87
],
[
84,
88
],
[
20,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
20,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
96,
98
],
[
20,
99
],
[
99,
100
],
[
100,
101
],
[
20,
102
],
[
102,
103
],
[
103,
104
],
[
18,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\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 long a = Long.parseLong(st.nextToken());\n long b = Long.parseLong(st.nextToken());\n long c = Long.parseLong(st.nextToken());\n long d = Long.parseLong(st.nextToken());\n \n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n\n long[] ans_array = {ans1, ans2, ans3, ans4};\n\n Arrays.sort(ans_array);\n\n pw.println(ans_array[3]);\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.Arrays;",
"Arrays",
"java.util",
"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 long a = Long.parseLong(st.nextToken());\n long b = Long.parseLong(st.nextToken());\n long c = Long.parseLong(st.nextToken());\n long d = Long.parseLong(st.nextToken());\n \n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n\n long[] ans_array = {ans1, ans2, ans3, ans4};\n\n Arrays.sort(ans_array);\n\n pw.println(ans_array[3]);\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 long a = Long.parseLong(st.nextToken());\n long b = Long.parseLong(st.nextToken());\n long c = Long.parseLong(st.nextToken());\n long d = Long.parseLong(st.nextToken());\n \n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n\n long[] ans_array = {ans1, ans2, ans3, ans4};\n\n Arrays.sort(ans_array);\n\n pw.println(ans_array[3]);\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 long a = Long.parseLong(st.nextToken());\n long b = Long.parseLong(st.nextToken());\n long c = Long.parseLong(st.nextToken());\n long d = Long.parseLong(st.nextToken());\n \n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n\n long[] ans_array = {ans1, ans2, ans3, ans4};\n\n Arrays.sort(ans_array);\n\n pw.println(ans_array[3]);\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())",
"long a = Long.parseLong(st.nextToken());",
"a",
"Long.parseLong(st.nextToken())",
"Long.parseLong",
"Long",
"st.nextToken()",
"st.nextToken",
"st",
"long b = Long.parseLong(st.nextToken());",
"b",
"Long.parseLong(st.nextToken())",
"Long.parseLong",
"Long",
"st.nextToken()",
"st.nextToken",
"st",
"long c = Long.parseLong(st.nextToken());",
"c",
"Long.parseLong(st.nextToken())",
"Long.parseLong",
"Long",
"st.nextToken()",
"st.nextToken",
"st",
"long d = Long.parseLong(st.nextToken());",
"d",
"Long.parseLong(st.nextToken())",
"Long.parseLong",
"Long",
"st.nextToken()",
"st.nextToken",
"st",
"long ans1 = a * c;",
"ans1",
"a * c",
"a",
"c",
"long ans2 = a * d;",
"ans2",
"a * d",
"a",
"d",
"long ans3 = b * c;",
"ans3",
"b * c",
"b",
"c",
"long ans4 = b * d;",
"ans4",
"b * d",
"b",
"d",
"long[] ans_array = {ans1, ans2, ans3, ans4};",
"ans_array",
"{ans1, ans2, ans3, ans4}",
"ans1",
"ans2",
"ans3",
"ans4",
"Arrays.sort(ans_array)",
"Arrays.sort",
"Arrays",
"ans_array",
"pw.println(ans_array[3])",
"pw.println",
"pw",
"ans_array[3]",
"ans_array",
"3",
"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 long a = Long.parseLong(st.nextToken());\n long b = Long.parseLong(st.nextToken());\n long c = Long.parseLong(st.nextToken());\n long d = Long.parseLong(st.nextToken());\n \n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n\n long[] ans_array = {ans1, ans2, ans3, ans4};\n\n Arrays.sort(ans_array);\n\n pw.println(ans_array[3]);\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 long a = Long.parseLong(st.nextToken());\n long b = Long.parseLong(st.nextToken());\n long c = Long.parseLong(st.nextToken());\n long d = Long.parseLong(st.nextToken());\n \n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n\n long[] ans_array = {ans1, ans2, ans3, ans4};\n\n Arrays.sort(ans_array);\n\n pw.println(ans_array[3]);\n br.close();\n pw.close();\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
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());
long a = Long.parseLong(st.nextToken());
long b = Long.parseLong(st.nextToken());
long c = Long.parseLong(st.nextToken());
long d = Long.parseLong(st.nextToken());
long ans1 = a * c;
long ans2 = a * d;
long ans3 = b * c;
long ans4 = b * d;
long[] ans_array = {ans1, ans2, ans3, ans4};
Arrays.sort(ans_array);
pw.println(ans_array[3]);
br.close();
pw.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
13,
13,
2,
13,
17,
30,
4,
18,
13,
17,
29,
14,
2,
2,
13,
13,
2,
13,
17,
30,
4,
18,
13,
17,
29,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
4,
18,
13,
13,
13,
4,
18,
13,
13,
13,
4,
18,
13,
13,
12,
13,
30,
0,
13,
20,
4,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
17,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
18,
13,
13,
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,
14,
2,
13,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
0,
13,
17,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
29,
40,
2,
2,
13,
17,
2,
13,
17,
23,
13,
12,
13,
30,
41,
13,
42,
2,
2,
0,
13,
4,
13,
40,
17,
4,
13,
13,
29,
13,
12,
13,
30,
29,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
13,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
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,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
2,
13,
17,
0,
13,
4,
13,
29,
8,
13,
40,
13,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
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,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
2,
13,
17,
0,
13,
4,
13,
29,
8,
13,
40,
13,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
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,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
822,
20
],
[
822,
21
],
[
21,
22
],
[
822,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
25,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
25,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
25,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
25,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
57,
62
],
[
49,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
71,
76
],
[
25,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
25,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
25,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
25,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
25,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
102,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
107,
111
],
[
25,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
822,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
118,
124
],
[
124,
125
],
[
125,
126
],
[
116,
127
],
[
127,
128
],
[
822,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
129,
136
],
[
136,
137
],
[
129,
138
],
[
138,
139
],
[
129,
140
],
[
140,
141
],
[
129,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
147,
149
],
[
144,
150
],
[
150,
151
],
[
150,
152
],
[
144,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
156,
158
],
[
129,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
165,
166
],
[
165,
167
],
[
161,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
171,
173
],
[
159,
174
],
[
174,
175
],
[
129,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
184,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
193,
196
],
[
183,
197
],
[
197,
198
],
[
197,
199
],
[
178,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
204,
205
],
[
205,
206
],
[
178,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
129,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
217,
221
],
[
221,
222
],
[
221,
223
],
[
212,
224
],
[
224,
225
],
[
129,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
229,
230
],
[
228,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
233,
238
],
[
238,
239
],
[
232,
240
],
[
240,
241
],
[
240,
242
],
[
228,
243
],
[
243,
244
],
[
129,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
129,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
255,
258
],
[
258,
259
],
[
129,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
262,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
262,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
270,
275
],
[
275,
276
],
[
276,
277
],
[
277,
278
],
[
276,
279
],
[
275,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
262,
284
],
[
284,
285
],
[
285,
286
],
[
286,
287
],
[
129,
288
],
[
288,
289
],
[
288,
290
],
[
290,
291
],
[
291,
292
],
[
291,
293
],
[
290,
294
],
[
294,
295
],
[
294,
296
],
[
290,
297
],
[
297,
298
],
[
290,
299
],
[
299,
300
],
[
300,
301
],
[
301,
302
],
[
302,
303
],
[
302,
304
],
[
304,
305
],
[
301,
306
],
[
306,
307
],
[
300,
308
],
[
308,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
310,
314
],
[
314,
315
],
[
314,
316
],
[
309,
317
],
[
317,
318
],
[
317,
319
],
[
290,
320
],
[
320,
321
],
[
321,
322
],
[
321,
323
],
[
320,
324
],
[
324,
325
],
[
325,
326
],
[
325,
327
],
[
324,
328
],
[
328,
329
],
[
328,
330
],
[
330,
331
],
[
290,
332
],
[
332,
333
],
[
333,
334
],
[
334,
335
],
[
334,
336
],
[
333,
337
],
[
337,
338
],
[
337,
339
],
[
332,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
343,
344
],
[
344,
345
],
[
344,
346
],
[
343,
347
],
[
347,
348
],
[
347,
349
],
[
340,
350
],
[
350,
351
],
[
350,
352
],
[
352,
353
],
[
290,
354
],
[
354,
355
],
[
355,
356
],
[
355,
357
],
[
357,
358
],
[
355,
359
],
[
129,
360
],
[
360,
361
],
[
360,
362
],
[
362,
363
],
[
363,
364
],
[
363,
365
],
[
362,
366
],
[
366,
367
],
[
366,
368
],
[
362,
369
],
[
369,
370
],
[
362,
371
],
[
371,
372
],
[
372,
373
],
[
373,
374
],
[
374,
375
],
[
374,
376
],
[
376,
377
],
[
373,
378
],
[
378,
379
],
[
372,
380
],
[
380,
381
],
[
381,
382
],
[
382,
383
],
[
383,
384
],
[
383,
385
],
[
382,
386
],
[
386,
387
],
[
386,
388
],
[
381,
389
],
[
389,
390
],
[
389,
391
],
[
362,
392
],
[
392,
393
],
[
393,
394
],
[
393,
395
],
[
392,
396
],
[
396,
397
],
[
397,
398
],
[
397,
399
],
[
396,
400
],
[
400,
401
],
[
400,
402
],
[
402,
403
],
[
362,
404
],
[
404,
405
],
[
405,
406
],
[
406,
407
],
[
406,
408
],
[
405,
409
],
[
409,
410
],
[
409,
411
],
[
404,
412
],
[
412,
413
],
[
413,
414
],
[
413,
415
],
[
415,
416
],
[
416,
417
],
[
416,
418
],
[
415,
419
],
[
419,
420
],
[
419,
421
],
[
412,
422
],
[
422,
423
],
[
422,
424
],
[
424,
425
],
[
362,
426
],
[
426,
427
],
[
427,
428
],
[
427,
429
],
[
429,
430
],
[
427,
431
],
[
129,
432
],
[
432,
433
],
[
432,
434
],
[
434,
435
],
[
435,
436
],
[
435,
437
],
[
434,
439
],
[
439,
440
],
[
440,
441
],
[
441,
442
],
[
441,
443
],
[
439,
444
],
[
444,
445
],
[
444,
446
],
[
439,
447
],
[
447,
448
],
[
448,
449
],
[
439,
450
],
[
450,
451
],
[
451,
452
],
[
452,
453
],
[
452,
454
],
[
451,
455
],
[
455,
456
],
[
434,
457
],
[
457,
458
],
[
432,
459
],
[
459,
460
],
[
129,
461
],
[
461,
462
],
[
461,
463
],
[
463,
464
],
[
464,
465
],
[
464,
466
],
[
463,
468
],
[
468,
469
],
[
469,
470
],
[
470,
471
],
[
470,
472
],
[
468,
473
],
[
473,
474
],
[
473,
475
],
[
468,
476
],
[
476,
477
],
[
477,
478
],
[
468,
479
],
[
479,
480
],
[
480,
481
],
[
481,
482
],
[
481,
483
],
[
480,
484
],
[
484,
485
],
[
463,
486
],
[
486,
487
],
[
461,
488
],
[
488,
489
],
[
129,
490
],
[
490,
491
],
[
490,
492
],
[
492,
493
],
[
493,
494
],
[
493,
495
],
[
492,
497
],
[
497,
498
],
[
498,
499
],
[
499,
500
],
[
499,
501
],
[
497,
502
],
[
502,
503
],
[
502,
504
],
[
497,
505
],
[
505,
506
],
[
506,
507
],
[
497,
508
],
[
508,
509
],
[
509,
510
],
[
510,
511
],
[
510,
512
],
[
509,
513
],
[
513,
514
],
[
492,
515
],
[
515,
516
],
[
490,
517
],
[
517,
518
],
[
129,
519
],
[
519,
520
],
[
519,
521
],
[
521,
522
],
[
522,
523
],
[
522,
524
],
[
521,
526
],
[
526,
527
],
[
527,
528
],
[
528,
529
],
[
528,
530
],
[
526,
531
],
[
531,
532
],
[
531,
533
],
[
526,
534
],
[
534,
535
],
[
535,
536
],
[
526,
537
],
[
537,
538
],
[
538,
539
],
[
539,
540
],
[
539,
541
],
[
538,
542
],
[
542,
543
],
[
521,
544
],
[
544,
545
],
[
519,
546
],
[
546,
547
],
[
129,
548
],
[
548,
549
],
[
548,
550
],
[
550,
551
],
[
551,
552
],
[
551,
553
],
[
550,
555
],
[
555,
556
],
[
556,
557
],
[
557,
558
],
[
557,
559
],
[
555,
560
],
[
560,
561
],
[
560,
562
],
[
555,
563
],
[
563,
564
],
[
564,
565
],
[
555,
566
],
[
566,
567
],
[
567,
568
],
[
568,
569
],
[
568,
570
],
[
567,
571
],
[
571,
572
],
[
550,
573
],
[
573,
574
],
[
548,
575
],
[
575,
576
],
[
129,
577
],
[
577,
578
],
[
577,
579
],
[
579,
580
],
[
580,
581
],
[
580,
582
],
[
579,
585
],
[
585,
586
],
[
586,
587
],
[
587,
588
],
[
587,
589
],
[
585,
590
],
[
590,
591
],
[
590,
592
],
[
585,
593
],
[
593,
594
],
[
594,
595
],
[
585,
596
],
[
596,
597
],
[
597,
598
],
[
598,
599
],
[
599,
600
],
[
599,
601
],
[
597,
602
],
[
602,
603
],
[
602,
604
],
[
597,
605
],
[
605,
606
],
[
606,
607
],
[
597,
608
],
[
608,
609
],
[
609,
610
],
[
610,
611
],
[
611,
612
],
[
611,
613
],
[
610,
614
],
[
609,
615
],
[
615,
616
],
[
579,
617
],
[
617,
618
],
[
577,
619
],
[
619,
620
],
[
577,
621
],
[
621,
622
],
[
129,
623
],
[
623,
624
],
[
623,
625
],
[
625,
626
],
[
626,
627
],
[
626,
628
],
[
625,
631
],
[
631,
632
],
[
632,
633
],
[
633,
634
],
[
633,
635
],
[
631,
636
],
[
636,
637
],
[
636,
638
],
[
631,
639
],
[
639,
640
],
[
640,
641
],
[
631,
642
],
[
642,
643
],
[
643,
644
],
[
644,
645
],
[
645,
646
],
[
645,
647
],
[
643,
648
],
[
648,
649
],
[
648,
650
],
[
643,
651
],
[
651,
652
],
[
652,
653
],
[
643,
654
],
[
654,
655
],
[
655,
656
],
[
656,
657
],
[
657,
658
],
[
657,
659
],
[
656,
660
],
[
655,
661
],
[
661,
662
],
[
625,
663
],
[
663,
664
],
[
623,
665
],
[
665,
666
],
[
623,
667
],
[
667,
668
],
[
129,
669
],
[
669,
670
],
[
669,
671
],
[
671,
672
],
[
672,
673
],
[
672,
674
],
[
671,
677
],
[
677,
678
],
[
678,
679
],
[
679,
680
],
[
679,
681
],
[
677,
682
],
[
682,
683
],
[
682,
684
],
[
677,
685
],
[
685,
686
],
[
686,
687
],
[
677,
688
],
[
688,
689
],
[
689,
690
],
[
690,
691
],
[
691,
692
],
[
691,
693
],
[
689,
694
],
[
694,
695
],
[
694,
696
],
[
689,
697
],
[
697,
698
],
[
698,
699
],
[
689,
700
],
[
700,
701
],
[
701,
702
],
[
702,
703
],
[
703,
704
],
[
703,
705
],
[
702,
706
],
[
701,
707
],
[
707,
708
],
[
671,
709
],
[
709,
710
],
[
669,
711
],
[
711,
712
],
[
669,
713
],
[
713,
714
],
[
129,
715
],
[
715,
716
],
[
715,
717
],
[
717,
718
],
[
718,
719
],
[
718,
720
],
[
717,
723
],
[
723,
724
],
[
724,
725
],
[
725,
726
],
[
725,
727
],
[
723,
728
],
[
728,
729
],
[
728,
730
],
[
723,
731
],
[
731,
732
],
[
732,
733
],
[
723,
734
],
[
734,
735
],
[
735,
736
],
[
736,
737
],
[
737,
738
],
[
737,
739
],
[
735,
740
],
[
740,
741
],
[
740,
742
],
[
735,
743
],
[
743,
744
],
[
744,
745
],
[
735,
746
],
[
746,
747
],
[
747,
748
],
[
748,
749
],
[
749,
750
],
[
749,
751
],
[
748,
752
],
[
747,
753
],
[
753,
754
],
[
717,
755
],
[
755,
756
],
[
715,
757
],
[
757,
758
],
[
715,
759
],
[
759,
760
],
[
129,
761
],
[
761,
762
],
[
761,
763
],
[
763,
764
],
[
764,
765
],
[
764,
766
],
[
763,
769
],
[
769,
770
],
[
770,
771
],
[
771,
772
],
[
771,
773
],
[
769,
774
],
[
774,
775
],
[
774,
776
],
[
769,
777
],
[
777,
778
],
[
778,
779
],
[
769,
780
],
[
780,
781
],
[
781,
782
],
[
782,
783
],
[
783,
784
],
[
783,
785
],
[
781,
786
],
[
786,
787
],
[
786,
788
],
[
781,
789
],
[
789,
790
],
[
790,
791
],
[
781,
792
],
[
792,
793
],
[
793,
794
],
[
794,
795
],
[
795,
796
],
[
795,
797
],
[
794,
798
],
[
793,
799
],
[
799,
800
],
[
763,
801
],
[
801,
802
],
[
761,
803
],
[
803,
804
],
[
761,
805
],
[
805,
806
],
[
129,
807
],
[
807,
808
],
[
807,
809
],
[
809,
810
],
[
810,
811
],
[
811,
812
],
[
812,
813
],
[
812,
814
],
[
810,
815
],
[
815,
816
],
[
816,
817
],
[
815,
818
],
[
807,
819
],
[
819,
820
],
[
0,
821
],
[
821,
822
],
[
821,
823
]
]
| [
"// package beginner00178;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.InputMismatchException;\n\npublic class Main {\n\tprivate static PrintWriter out;\n\n\tpublic static void solve() {\n\t\tIn in = new In();\n\t\t// BEFORE SUBMISSION :: Change class name to Main and comment out package name\n\t\t// !!!\n\t\tlong a = in.nl();\n\t\tlong b = in.nl();\n\t\tlong c = in.nl();\n\t\tlong d = in.nl();\n\n\t\tif (a == b && a == 0) {\n\t\t\tout.println(0);\n\t\t\treturn;\n\t\t} else if (c == d && c == 0) {\n\t\t\tout.println(0);\n\t\t\treturn;\n\t\t}\n\n\t\tlong cand1 = b * d;\n\t\tlong cand2 = a * c;\n\t\tlong cand3 = a * d;\n\t\tlong cand4 = b * c;\n\n\t\tlong ans = Math.max(Math.max(cand1, cand2), Math.max(cand3, cand4));\n\n\t\tout.println(ans);\n\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// long start = System.nanoTime();\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t\t// System.out.println(\"Elapsed: \" + (System.nanoTime() - start) / 1000000 +\n\t\t// \"ns\");\n\t}\n\n\t@SuppressWarnings(\"unused\")\n\tprivate static class In {\n\t\tfinal private static int BUFFER_SIZE = 1024;\n\t\tprivate byte[] buf;\n\t\tprivate InputStream is;\n\t\tprivate int buflen;\n\t\tprivate int bufptr;\n\n\t\tpublic In() {\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic In(String input) {\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic int readByte() {\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tpublic int skip() {\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}\n\n\t\t/* Next character */\n\t\tpublic char nc() {\n\t\t\treturn (char) skip();\n\t\t}\n\n\t\t/* Next double */\n\t\tpublic double nd() {\n\t\t\treturn Double.parseDouble(ns());\n\t\t}\n\n\t\t/* Next string */\n\t\tpublic String ns() {\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\t/* Next integer */\n\t\tpublic int ni() {\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next long */\n\t\tpublic long nl() {\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next integer 1D array */\n\t\tpublic int[] nia(int n) {\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long 1D array */\n\t\tpublic long[] nla(int n) {\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string 1D array */\n\t\tpublic String[] nsa(int n) {\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char 1D array */\n\t\tpublic char[] nca(int n) {\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double 1D array */\n\t\tpublic double[] nda(int n) {\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next integer matrix */\n\t\tpublic int[][] nim(int n, int m) {\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long matrix */\n\t\tpublic long[][] nlm(int n, int m) {\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string matrix */\n\t\tpublic String[][] nsm(int n, int m) {\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char matrix */\n\t\tpublic char[][] ncm(int n, int m) {\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double matrix */\n\t\tpublic double[][] ndm(int n, int m) {\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic static void log(Object... o) {\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}\n\t}\n\n}",
"import java.io.ByteArrayInputStream;",
"ByteArrayInputStream",
"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.InputMismatchException;",
"InputMismatchException",
"java.util",
"public class Main {\n\tprivate static PrintWriter out;\n\n\tpublic static void solve() {\n\t\tIn in = new In();\n\t\t// BEFORE SUBMISSION :: Change class name to Main and comment out package name\n\t\t// !!!\n\t\tlong a = in.nl();\n\t\tlong b = in.nl();\n\t\tlong c = in.nl();\n\t\tlong d = in.nl();\n\n\t\tif (a == b && a == 0) {\n\t\t\tout.println(0);\n\t\t\treturn;\n\t\t} else if (c == d && c == 0) {\n\t\t\tout.println(0);\n\t\t\treturn;\n\t\t}\n\n\t\tlong cand1 = b * d;\n\t\tlong cand2 = a * c;\n\t\tlong cand3 = a * d;\n\t\tlong cand4 = b * c;\n\n\t\tlong ans = Math.max(Math.max(cand1, cand2), Math.max(cand3, cand4));\n\n\t\tout.println(ans);\n\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// long start = System.nanoTime();\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t\t// System.out.println(\"Elapsed: \" + (System.nanoTime() - start) / 1000000 +\n\t\t// \"ns\");\n\t}\n\n\t@SuppressWarnings(\"unused\")\n\tprivate static class In {\n\t\tfinal private static int BUFFER_SIZE = 1024;\n\t\tprivate byte[] buf;\n\t\tprivate InputStream is;\n\t\tprivate int buflen;\n\t\tprivate int bufptr;\n\n\t\tpublic In() {\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic In(String input) {\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic int readByte() {\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tpublic int skip() {\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}\n\n\t\t/* Next character */\n\t\tpublic char nc() {\n\t\t\treturn (char) skip();\n\t\t}\n\n\t\t/* Next double */\n\t\tpublic double nd() {\n\t\t\treturn Double.parseDouble(ns());\n\t\t}\n\n\t\t/* Next string */\n\t\tpublic String ns() {\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\t/* Next integer */\n\t\tpublic int ni() {\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next long */\n\t\tpublic long nl() {\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next integer 1D array */\n\t\tpublic int[] nia(int n) {\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long 1D array */\n\t\tpublic long[] nla(int n) {\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string 1D array */\n\t\tpublic String[] nsa(int n) {\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char 1D array */\n\t\tpublic char[] nca(int n) {\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double 1D array */\n\t\tpublic double[] nda(int n) {\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next integer matrix */\n\t\tpublic int[][] nim(int n, int m) {\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long matrix */\n\t\tpublic long[][] nlm(int n, int m) {\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string matrix */\n\t\tpublic String[][] nsm(int n, int m) {\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char matrix */\n\t\tpublic char[][] ncm(int n, int m) {\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double matrix */\n\t\tpublic double[][] ndm(int n, int m) {\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic static void log(Object... o) {\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}\n\t}\n\n}",
"Main",
"private static PrintWriter out;",
"out",
"public static void solve() {\n\t\tIn in = new In();\n\t\t// BEFORE SUBMISSION :: Change class name to Main and comment out package name\n\t\t// !!!\n\t\tlong a = in.nl();\n\t\tlong b = in.nl();\n\t\tlong c = in.nl();\n\t\tlong d = in.nl();\n\n\t\tif (a == b && a == 0) {\n\t\t\tout.println(0);\n\t\t\treturn;\n\t\t} else if (c == d && c == 0) {\n\t\t\tout.println(0);\n\t\t\treturn;\n\t\t}\n\n\t\tlong cand1 = b * d;\n\t\tlong cand2 = a * c;\n\t\tlong cand3 = a * d;\n\t\tlong cand4 = b * c;\n\n\t\tlong ans = Math.max(Math.max(cand1, cand2), Math.max(cand3, cand4));\n\n\t\tout.println(ans);\n\n\t}",
"solve",
"{\n\t\tIn in = new In();\n\t\t// BEFORE SUBMISSION :: Change class name to Main and comment out package name\n\t\t// !!!\n\t\tlong a = in.nl();\n\t\tlong b = in.nl();\n\t\tlong c = in.nl();\n\t\tlong d = in.nl();\n\n\t\tif (a == b && a == 0) {\n\t\t\tout.println(0);\n\t\t\treturn;\n\t\t} else if (c == d && c == 0) {\n\t\t\tout.println(0);\n\t\t\treturn;\n\t\t}\n\n\t\tlong cand1 = b * d;\n\t\tlong cand2 = a * c;\n\t\tlong cand3 = a * d;\n\t\tlong cand4 = b * c;\n\n\t\tlong ans = Math.max(Math.max(cand1, cand2), Math.max(cand3, cand4));\n\n\t\tout.println(ans);\n\n\t}",
"In in = new In();",
"in",
"new In()",
"long a = in.nl();",
"a",
"in.nl()",
"in.nl",
"in",
"long b = in.nl();",
"b",
"in.nl()",
"in.nl",
"in",
"long c = in.nl();",
"c",
"in.nl()",
"in.nl",
"in",
"long d = in.nl();",
"d",
"in.nl()",
"in.nl",
"in",
"if (a == b && a == 0) {\n\t\t\tout.println(0);\n\t\t\treturn;\n\t\t} else if (c == d && c == 0) {\n\t\t\tout.println(0);\n\t\t\treturn;\n\t\t}",
"a == b && a == 0",
"a == b",
"a",
"b",
"a == 0",
"a",
"0",
"{\n\t\t\tout.println(0);\n\t\t\treturn;\n\t\t}",
"out.println(0)",
"out.println",
"out",
"0",
"return;",
"if (c == d && c == 0) {\n\t\t\tout.println(0);\n\t\t\treturn;\n\t\t}",
"c == d && c == 0",
"c == d",
"c",
"d",
"c == 0",
"c",
"0",
"{\n\t\t\tout.println(0);\n\t\t\treturn;\n\t\t}",
"out.println(0)",
"out.println",
"out",
"0",
"return;",
"long cand1 = b * d;",
"cand1",
"b * d",
"b",
"d",
"long cand2 = a * c;",
"cand2",
"a * c",
"a",
"c",
"long cand3 = a * d;",
"cand3",
"a * d",
"a",
"d",
"long cand4 = b * c;",
"cand4",
"b * c",
"b",
"c",
"long ans = Math.max(Math.max(cand1, cand2), Math.max(cand3, cand4));",
"ans",
"Math.max(Math.max(cand1, cand2), Math.max(cand3, cand4))",
"Math.max",
"Math",
"Math.max(cand1, cand2)",
"Math.max",
"Math",
"cand1",
"cand2",
"Math.max(cand3, cand4)",
"Math.max",
"Math",
"cand3",
"cand4",
"out.println(ans)",
"out.println",
"out",
"ans",
"public static void main(String[] args) throws IOException {\n\t\t// long start = System.nanoTime();\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t\t// System.out.println(\"Elapsed: \" + (System.nanoTime() - start) / 1000000 +\n\t\t// \"ns\");\n\t}",
"main",
"{\n\t\t// long start = System.nanoTime();\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t\t// System.out.println(\"Elapsed: \" + (System.nanoTime() - start) / 1000000 +\n\t\t// \"ns\");\n\t}",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"solve()",
"solve",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"private static class In {\n\t\tfinal private static int BUFFER_SIZE = 1024;\n\t\tprivate byte[] buf;\n\t\tprivate InputStream is;\n\t\tprivate int buflen;\n\t\tprivate int bufptr;\n\n\t\tpublic In() {\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic In(String input) {\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic int readByte() {\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tpublic int skip() {\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}\n\n\t\t/* Next character */\n\t\tpublic char nc() {\n\t\t\treturn (char) skip();\n\t\t}\n\n\t\t/* Next double */\n\t\tpublic double nd() {\n\t\t\treturn Double.parseDouble(ns());\n\t\t}\n\n\t\t/* Next string */\n\t\tpublic String ns() {\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\t/* Next integer */\n\t\tpublic int ni() {\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next long */\n\t\tpublic long nl() {\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next integer 1D array */\n\t\tpublic int[] nia(int n) {\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long 1D array */\n\t\tpublic long[] nla(int n) {\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string 1D array */\n\t\tpublic String[] nsa(int n) {\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char 1D array */\n\t\tpublic char[] nca(int n) {\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double 1D array */\n\t\tpublic double[] nda(int n) {\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next integer matrix */\n\t\tpublic int[][] nim(int n, int m) {\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long matrix */\n\t\tpublic long[][] nlm(int n, int m) {\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string matrix */\n\t\tpublic String[][] nsm(int n, int m) {\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char matrix */\n\t\tpublic char[][] ncm(int n, int m) {\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double matrix */\n\t\tpublic double[][] ndm(int n, int m) {\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic static void log(Object... o) {\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}\n\t}",
"In",
"final private static int BUFFER_SIZE = 1024;",
"BUFFER_SIZE",
"1024",
"private byte[] buf;",
"buf",
"private InputStream is;",
"is",
"private int buflen;",
"buflen",
"private int bufptr;",
"bufptr",
"public In() {\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}",
"In",
"{\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}",
"is = System.in",
"is",
"System.in",
"System",
"System.in",
"buf = new byte[BUFFER_SIZE]",
"buf",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"buflen = bufptr = 0",
"buflen",
"bufptr = 0",
"bufptr",
"0",
"public In(String input) {\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}",
"In",
"{\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}",
"is = new ByteArrayInputStream(input.getBytes())",
"is",
"new ByteArrayInputStream(input.getBytes())",
"buf = new byte[BUFFER_SIZE]",
"buf",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"buflen = bufptr = 0",
"buflen",
"bufptr = 0",
"bufptr",
"0",
"String input",
"input",
"public int readByte() {\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}",
"readByte",
"{\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}",
"if (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}",
"bufptr >= buflen",
"bufptr",
"buflen",
"{\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}",
"try {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"IOException ioe",
"{\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t}",
"buflen = is.read(buf)",
"buflen",
"is.read(buf)",
"is.read",
"is",
"buf",
"bufptr = 0",
"bufptr",
"0",
"if (buflen <= 0)\n\t\t\t\treturn -1;",
"buflen <= 0",
"buflen",
"0",
"return -1;",
"-1",
"1",
"return buf[bufptr++];",
"buf[bufptr++]",
"buf",
"bufptr++",
"bufptr",
"public boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}",
"isSpaceChar",
"{\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}",
"return !(c >= 33 && c <= 126);",
"!(c >= 33 && c <= 126)",
"(c >= 33 && c <= 126)",
"c >= 33",
"c",
"33",
"c <= 126",
"c",
"126",
"int c",
"c",
"public int skip() {\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}",
"skip",
"{\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}",
"int b;",
"b",
"while ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;",
"(b = readByte()) != -1 && isSpaceChar(b)",
"(b = readByte()) != -1",
"(b = readByte())",
"b",
"readByte()",
"readByte",
"-1",
"1",
"isSpaceChar(b)",
"isSpaceChar",
"b",
"return b;",
"b",
"/* Next character */\n\t\tpublic char nc() {\n\t\t\treturn (char) skip();\n\t\t}",
"nc",
"{\n\t\t\treturn (char) skip();\n\t\t}",
"return (char) skip();",
"(char) skip()",
"skip",
"/* Next double */\n\t\tpublic double nd() {\n\t\t\treturn Double.parseDouble(ns());\n\t\t}",
"nd",
"{\n\t\t\treturn Double.parseDouble(ns());\n\t\t}",
"return Double.parseDouble(ns());",
"Double.parseDouble(ns())",
"Double.parseDouble",
"Double",
"ns()",
"ns",
"/* Next string */\n\t\tpublic String ns() {\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}",
"ns",
"{\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}",
"final StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = skip();",
"b",
"skip()",
"skip",
"while (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}",
"!isSpaceChar(b)",
"isSpaceChar(b)",
"isSpaceChar",
"b",
"{\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"/* Next integer */\n\t\tpublic int ni() {\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}",
"ni",
"{\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}",
"boolean minus = false;",
"minus",
"false",
"int num = 0;",
"num",
"0",
"int b;",
"b",
"while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;",
"(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\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}",
"b == '-'",
"b",
"'-'",
"{\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"while (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}",
"b >= '0' && b <= '9'",
"b >= '0'",
"b",
"'0'",
"b <= '9'",
"b",
"'9'",
"{\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}",
"num = num * 10 + (b - '0')",
"num",
"num * 10 + (b - '0')",
"num * 10",
"num",
"10",
"(b - '0')",
"b",
"'0'",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return minus ? -num : num;",
"minus ? -num : num",
"minus",
"-num",
"num",
"num",
"/* Next long */\n\t\tpublic long nl() {\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}",
"nl",
"{\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}",
"boolean minus = false;",
"minus",
"false",
"long num = 0;",
"num",
"0",
"int b;",
"b",
"while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;",
"(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\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}",
"b == '-'",
"b",
"'-'",
"{\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"while (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}",
"b >= '0' && b <= '9'",
"b >= '0'",
"b",
"'0'",
"b <= '9'",
"b",
"'9'",
"{\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}",
"num = num * 10 + (b - '0')",
"num",
"num * 10 + (b - '0')",
"num * 10",
"num",
"10",
"(b - '0')",
"b",
"'0'",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return minus ? -num : num;",
"minus ? -num : num",
"minus",
"-num",
"num",
"num",
"/* Next integer 1D array */\n\t\tpublic int[] nia(int n) {\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}",
"nia",
"{\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}",
"final int[] arr = new int[n];",
"arr",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"arr[i] = ni();",
"arr[i] = ni()",
"arr[i]",
"arr",
"i",
"ni()",
"ni",
"return arr;",
"arr",
"int n",
"n",
"/* Next long 1D array */\n\t\tpublic long[] nla(int n) {\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}",
"nla",
"{\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}",
"final long[] arr = new long[n];",
"arr",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"arr[i] = nl();",
"arr[i] = nl()",
"arr[i]",
"arr",
"i",
"nl()",
"nl",
"return arr;",
"arr",
"int n",
"n",
"/* Next string 1D array */\n\t\tpublic String[] nsa(int n) {\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}",
"nsa",
"{\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}",
"final String[] arr = new String[n];",
"arr",
"new String[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"arr[i] = ns();",
"arr[i] = ns()",
"arr[i]",
"arr",
"i",
"ns()",
"ns",
"return arr;",
"arr",
"int n",
"n",
"/* Next char 1D array */\n\t\tpublic char[] nca(int n) {\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}",
"nca",
"{\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}",
"final char[] arr = new char[n];",
"arr",
"new char[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"arr[i] = nc();",
"arr[i] = nc()",
"arr[i]",
"arr",
"i",
"nc()",
"nc",
"return arr;",
"arr",
"int n",
"n",
"/* Next double 1D array */\n\t\tpublic double[] nda(int n) {\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}",
"nda",
"{\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}",
"final double[] arr = new double[n];",
"arr",
"new double[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"arr[i] = nc();",
"arr[i] = nc()",
"arr[i]",
"arr",
"i",
"nc()",
"nc",
"return arr;",
"arr",
"int n",
"n",
"/* Next integer matrix */\n\t\tpublic int[][] nim(int n, int m) {\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}",
"nim",
"{\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}",
"final int[][] arr = new int[n][m];",
"arr",
"new int[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"arr[i][j] = ni();",
"arr[i][j] = ni()",
"arr[i][j]",
"arr[i]",
"arr",
"i",
"j",
"ni()",
"ni",
"return arr;",
"arr",
"int n",
"n",
"int m",
"m",
"/* Next long matrix */\n\t\tpublic long[][] nlm(int n, int m) {\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}",
"nlm",
"{\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}",
"final long[][] arr = new long[n][m];",
"arr",
"new long[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"arr[i][j] = nl();",
"arr[i][j] = nl()",
"arr[i][j]",
"arr[i]",
"arr",
"i",
"j",
"nl()",
"nl",
"return arr;",
"arr",
"int n",
"n",
"int m",
"m",
"/* Next string matrix */\n\t\tpublic String[][] nsm(int n, int m) {\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}",
"nsm",
"{\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}",
"final String[][] arr = new String[n][m];",
"arr",
"new String[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"arr[i][j] = ns();",
"arr[i][j] = ns()",
"arr[i][j]",
"arr[i]",
"arr",
"i",
"j",
"ns()",
"ns",
"return arr;",
"arr",
"int n",
"n",
"int m",
"m",
"/* Next char matrix */\n\t\tpublic char[][] ncm(int n, int m) {\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}",
"ncm",
"{\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}",
"final char[][] arr = new char[n][m];",
"arr",
"new char[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"arr[i][j] = nc();",
"arr[i][j] = nc()",
"arr[i][j]",
"arr[i]",
"arr",
"i",
"j",
"nc()",
"nc",
"return arr;",
"arr",
"int n",
"n",
"int m",
"m",
"/* Next double matrix */\n\t\tpublic double[][] ndm(int n, int m) {\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}",
"ndm",
"{\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}",
"final double[][] arr = new double[n][m];",
"arr",
"new double[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();",
"for (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"arr[i][j] = nd();",
"arr[i][j] = nd()",
"arr[i][j]",
"arr[i]",
"arr",
"i",
"j",
"nd()",
"nd",
"return arr;",
"arr",
"int n",
"n",
"int m",
"m",
"public static void log(Object... o) {\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}",
"log",
"{\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}",
"System.out.println(Arrays.deepToString(o))",
"System.out.println",
"System.out",
"System",
"System.out",
"Arrays.deepToString(o)",
"Arrays.deepToString",
"Arrays",
"o",
"Object... o",
"o",
"public class Main {\n\tprivate static PrintWriter out;\n\n\tpublic static void solve() {\n\t\tIn in = new In();\n\t\t// BEFORE SUBMISSION :: Change class name to Main and comment out package name\n\t\t// !!!\n\t\tlong a = in.nl();\n\t\tlong b = in.nl();\n\t\tlong c = in.nl();\n\t\tlong d = in.nl();\n\n\t\tif (a == b && a == 0) {\n\t\t\tout.println(0);\n\t\t\treturn;\n\t\t} else if (c == d && c == 0) {\n\t\t\tout.println(0);\n\t\t\treturn;\n\t\t}\n\n\t\tlong cand1 = b * d;\n\t\tlong cand2 = a * c;\n\t\tlong cand3 = a * d;\n\t\tlong cand4 = b * c;\n\n\t\tlong ans = Math.max(Math.max(cand1, cand2), Math.max(cand3, cand4));\n\n\t\tout.println(ans);\n\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// long start = System.nanoTime();\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t\t// System.out.println(\"Elapsed: \" + (System.nanoTime() - start) / 1000000 +\n\t\t// \"ns\");\n\t}\n\n\t@SuppressWarnings(\"unused\")\n\tprivate static class In {\n\t\tfinal private static int BUFFER_SIZE = 1024;\n\t\tprivate byte[] buf;\n\t\tprivate InputStream is;\n\t\tprivate int buflen;\n\t\tprivate int bufptr;\n\n\t\tpublic In() {\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic In(String input) {\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic int readByte() {\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tpublic int skip() {\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}\n\n\t\t/* Next character */\n\t\tpublic char nc() {\n\t\t\treturn (char) skip();\n\t\t}\n\n\t\t/* Next double */\n\t\tpublic double nd() {\n\t\t\treturn Double.parseDouble(ns());\n\t\t}\n\n\t\t/* Next string */\n\t\tpublic String ns() {\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\t/* Next integer */\n\t\tpublic int ni() {\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next long */\n\t\tpublic long nl() {\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next integer 1D array */\n\t\tpublic int[] nia(int n) {\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long 1D array */\n\t\tpublic long[] nla(int n) {\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string 1D array */\n\t\tpublic String[] nsa(int n) {\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char 1D array */\n\t\tpublic char[] nca(int n) {\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double 1D array */\n\t\tpublic double[] nda(int n) {\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next integer matrix */\n\t\tpublic int[][] nim(int n, int m) {\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long matrix */\n\t\tpublic long[][] nlm(int n, int m) {\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string matrix */\n\t\tpublic String[][] nsm(int n, int m) {\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char matrix */\n\t\tpublic char[][] ncm(int n, int m) {\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double matrix */\n\t\tpublic double[][] ndm(int n, int m) {\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic static void log(Object... o) {\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}\n\t}\n\n}",
"public class Main {\n\tprivate static PrintWriter out;\n\n\tpublic static void solve() {\n\t\tIn in = new In();\n\t\t// BEFORE SUBMISSION :: Change class name to Main and comment out package name\n\t\t// !!!\n\t\tlong a = in.nl();\n\t\tlong b = in.nl();\n\t\tlong c = in.nl();\n\t\tlong d = in.nl();\n\n\t\tif (a == b && a == 0) {\n\t\t\tout.println(0);\n\t\t\treturn;\n\t\t} else if (c == d && c == 0) {\n\t\t\tout.println(0);\n\t\t\treturn;\n\t\t}\n\n\t\tlong cand1 = b * d;\n\t\tlong cand2 = a * c;\n\t\tlong cand3 = a * d;\n\t\tlong cand4 = b * c;\n\n\t\tlong ans = Math.max(Math.max(cand1, cand2), Math.max(cand3, cand4));\n\n\t\tout.println(ans);\n\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// long start = System.nanoTime();\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t\t// System.out.println(\"Elapsed: \" + (System.nanoTime() - start) / 1000000 +\n\t\t// \"ns\");\n\t}\n\n\t@SuppressWarnings(\"unused\")\n\tprivate static class In {\n\t\tfinal private static int BUFFER_SIZE = 1024;\n\t\tprivate byte[] buf;\n\t\tprivate InputStream is;\n\t\tprivate int buflen;\n\t\tprivate int bufptr;\n\n\t\tpublic In() {\n\t\t\tis = System.in;\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic In(String input) {\n\t\t\tis = new ByteArrayInputStream(input.getBytes());\n\t\t\tbuf = new byte[BUFFER_SIZE];\n\t\t\tbuflen = bufptr = 0;\n\t\t}\n\n\t\tpublic int readByte() {\n\t\t\tif (bufptr >= buflen) {\n\t\t\t\ttry {\n\t\t\t\t\tbuflen = is.read(buf);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tbufptr = 0;\n\t\t\t}\n\t\t\tif (buflen <= 0)\n\t\t\t\treturn -1;\n\t\t\treturn buf[bufptr++];\n\t\t}\n\n\t\tpublic boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tpublic int skip() {\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t\t;\n\t\t\treturn b;\n\t\t}\n\n\t\t/* Next character */\n\t\tpublic char nc() {\n\t\t\treturn (char) skip();\n\t\t}\n\n\t\t/* Next double */\n\t\tpublic double nd() {\n\t\t\treturn Double.parseDouble(ns());\n\t\t}\n\n\t\t/* Next string */\n\t\tpublic String ns() {\n\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\tint b = skip();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\t/* Next integer */\n\t\tpublic int ni() {\n\t\t\tboolean minus = false;\n\t\t\tint num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next long */\n\t\tpublic long nl() {\n\t\t\tboolean minus = false;\n\t\t\tlong num = 0;\n\t\t\tint b;\n\t\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t\t;\n\t\t\tif (b == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\twhile (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn minus ? -num : num;\n\t\t}\n\n\t\t/* Next integer 1D array */\n\t\tpublic int[] nia(int n) {\n\t\t\tfinal int[] arr = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long 1D array */\n\t\tpublic long[] nla(int n) {\n\t\t\tfinal long[] arr = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string 1D array */\n\t\tpublic String[] nsa(int n) {\n\t\t\tfinal String[] arr = new String[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char 1D array */\n\t\tpublic char[] nca(int n) {\n\t\t\tfinal char[] arr = new char[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double 1D array */\n\t\tpublic double[] nda(int n) {\n\t\t\tfinal double[] arr = new double[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tarr[i] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next integer matrix */\n\t\tpublic int[][] nim(int n, int m) {\n\t\t\tfinal int[][] arr = new int[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ni();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next long matrix */\n\t\tpublic long[][] nlm(int n, int m) {\n\t\t\tfinal long[][] arr = new long[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nl();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next string matrix */\n\t\tpublic String[][] nsm(int n, int m) {\n\t\t\tfinal String[][] arr = new String[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = ns();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next char matrix */\n\t\tpublic char[][] ncm(int n, int m) {\n\t\t\tfinal char[][] arr = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nc();\n\t\t\treturn arr;\n\t\t}\n\n\t\t/* Next double matrix */\n\t\tpublic double[][] ndm(int n, int m) {\n\t\t\tfinal double[][] arr = new double[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tfor (int j = 0; j < m; j++)\n\t\t\t\t\tarr[i][j] = nd();\n\t\t\treturn arr;\n\t\t}\n\n\t\tpublic static void log(Object... o) {\n\t\t\tSystem.out.println(Arrays.deepToString(o));\n\t\t}\n\t}\n\n}",
"Main"
]
| // package beginner00178;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.InputMismatchException;
public class Main {
private static PrintWriter out;
public static void solve() {
In in = new In();
// BEFORE SUBMISSION :: Change class name to Main and comment out package name
// !!!
long a = in.nl();
long b = in.nl();
long c = in.nl();
long d = in.nl();
if (a == b && a == 0) {
out.println(0);
return;
} else if (c == d && c == 0) {
out.println(0);
return;
}
long cand1 = b * d;
long cand2 = a * c;
long cand3 = a * d;
long cand4 = b * c;
long ans = Math.max(Math.max(cand1, cand2), Math.max(cand3, cand4));
out.println(ans);
}
public static void main(String[] args) throws IOException {
// long start = System.nanoTime();
out = new PrintWriter(System.out);
solve();
out.flush();
// System.out.println("Elapsed: " + (System.nanoTime() - start) / 1000000 +
// "ns");
}
@SuppressWarnings("unused")
private static class In {
final private static int BUFFER_SIZE = 1024;
private byte[] buf;
private InputStream is;
private int buflen;
private int bufptr;
public In() {
is = System.in;
buf = new byte[BUFFER_SIZE];
buflen = bufptr = 0;
}
public In(String input) {
is = new ByteArrayInputStream(input.getBytes());
buf = new byte[BUFFER_SIZE];
buflen = bufptr = 0;
}
public int readByte() {
if (bufptr >= buflen) {
try {
buflen = is.read(buf);
} catch (IOException ioe) {
throw new InputMismatchException();
}
bufptr = 0;
}
if (buflen <= 0)
return -1;
return buf[bufptr++];
}
public boolean isSpaceChar(int c) {
return !(c >= 33 && c <= 126);
}
public int skip() {
int b;
while ((b = readByte()) != -1 && isSpaceChar(b))
;
return b;
}
/* Next character */
public char nc() {
return (char) skip();
}
/* Next double */
public double nd() {
return Double.parseDouble(ns());
}
/* Next string */
public String ns() {
final StringBuilder sb = new StringBuilder();
int b = skip();
while (!isSpaceChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
/* Next integer */
public int ni() {
boolean minus = false;
int num = 0;
int b;
while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))
;
if (b == '-') {
minus = true;
b = readByte();
}
while (b >= '0' && b <= '9') {
num = num * 10 + (b - '0');
b = readByte();
}
return minus ? -num : num;
}
/* Next long */
public long nl() {
boolean minus = false;
long num = 0;
int b;
while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))
;
if (b == '-') {
minus = true;
b = readByte();
}
while (b >= '0' && b <= '9') {
num = num * 10 + (b - '0');
b = readByte();
}
return minus ? -num : num;
}
/* Next integer 1D array */
public int[] nia(int n) {
final int[] arr = new int[n];
for (int i = 0; i < n; i++)
arr[i] = ni();
return arr;
}
/* Next long 1D array */
public long[] nla(int n) {
final long[] arr = new long[n];
for (int i = 0; i < n; i++)
arr[i] = nl();
return arr;
}
/* Next string 1D array */
public String[] nsa(int n) {
final String[] arr = new String[n];
for (int i = 0; i < n; i++)
arr[i] = ns();
return arr;
}
/* Next char 1D array */
public char[] nca(int n) {
final char[] arr = new char[n];
for (int i = 0; i < n; i++)
arr[i] = nc();
return arr;
}
/* Next double 1D array */
public double[] nda(int n) {
final double[] arr = new double[n];
for (int i = 0; i < n; i++)
arr[i] = nc();
return arr;
}
/* Next integer matrix */
public int[][] nim(int n, int m) {
final int[][] arr = new int[n][m];
for (int i = 0; i < n; i++)
for (int j = 0; j < m; j++)
arr[i][j] = ni();
return arr;
}
/* Next long matrix */
public long[][] nlm(int n, int m) {
final long[][] arr = new long[n][m];
for (int i = 0; i < n; i++)
for (int j = 0; j < m; j++)
arr[i][j] = nl();
return arr;
}
/* Next string matrix */
public String[][] nsm(int n, int m) {
final String[][] arr = new String[n][m];
for (int i = 0; i < n; i++)
for (int j = 0; j < m; j++)
arr[i][j] = ns();
return arr;
}
/* Next char matrix */
public char[][] ncm(int n, int m) {
final char[][] arr = new char[n][m];
for (int i = 0; i < n; i++)
for (int j = 0; j < m; j++)
arr[i][j] = nc();
return arr;
}
/* Next double matrix */
public double[][] ndm(int n, int m) {
final double[][] arr = new double[n][m];
for (int i = 0; i < n; i++)
for (int j = 0; j < m; j++)
arr[i][j] = nd();
return arr;
}
public static void log(Object... o) {
System.out.println(Arrays.deepToString(o));
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
14,
2,
13,
17,
30,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
30,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
14,
2,
13,
17,
30,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
30,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
30,
14,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
2,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
142,
5
],
[
142,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
44,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
35,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
81,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
97,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
72,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
110,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
133,
134
],
[
133,
135
],
[
8,
136
],
[
136,
137
],
[
137,
138
],
[
6,
139
],
[
139,
140
],
[
0,
141
],
[
141,
142
],
[
141,
143
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\n\t\tlong ans = 0;\n\t\tif(a < 0 && b <= 0) {\n\t\t\tif(c < 0) {\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}else{\n\t\t\t\tans = b * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t}else if(c < 0 && d <= 0) {\n\t\t\tif(a < 0) {\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}else{\n\t\t\t\tans = a * d;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t}else {\n\t\t\tif(a * c > b * d) {\n\t\t\t\tSystem.out.print(a * c);\n\t\t\t}else {\n\t\t\t\tSystem.out.print(b * d);\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\n\t\tlong ans = 0;\n\t\tif(a < 0 && b <= 0) {\n\t\t\tif(c < 0) {\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}else{\n\t\t\t\tans = b * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t}else if(c < 0 && d <= 0) {\n\t\t\tif(a < 0) {\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}else{\n\t\t\t\tans = a * d;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t}else {\n\t\t\tif(a * c > b * d) {\n\t\t\t\tSystem.out.print(a * c);\n\t\t\t}else {\n\t\t\t\tSystem.out.print(b * d);\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\n\t\tlong ans = 0;\n\t\tif(a < 0 && b <= 0) {\n\t\t\tif(c < 0) {\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}else{\n\t\t\t\tans = b * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t}else if(c < 0 && d <= 0) {\n\t\t\tif(a < 0) {\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}else{\n\t\t\t\tans = a * d;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t}else {\n\t\t\tif(a * c > b * d) {\n\t\t\t\tSystem.out.print(a * c);\n\t\t\t}else {\n\t\t\t\tSystem.out.print(b * d);\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\n\t\tlong ans = 0;\n\t\tif(a < 0 && b <= 0) {\n\t\t\tif(c < 0) {\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}else{\n\t\t\t\tans = b * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t}else if(c < 0 && d <= 0) {\n\t\t\tif(a < 0) {\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}else{\n\t\t\t\tans = a * d;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t}else {\n\t\t\tif(a * c > b * d) {\n\t\t\t\tSystem.out.print(a * c);\n\t\t\t}else {\n\t\t\t\tSystem.out.print(b * d);\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long ans = 0;",
"ans",
"0",
"if(a < 0 && b <= 0) {\n\t\t\tif(c < 0) {\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}else{\n\t\t\t\tans = b * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t}else if(c < 0 && d <= 0) {\n\t\t\tif(a < 0) {\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}else{\n\t\t\t\tans = a * d;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t}else {\n\t\t\tif(a * c > b * d) {\n\t\t\t\tSystem.out.print(a * c);\n\t\t\t}else {\n\t\t\t\tSystem.out.print(b * d);\n\t\t\t}\n\t\t}",
"a < 0 && b <= 0",
"a < 0",
"a",
"0",
"b <= 0",
"b",
"0",
"{\n\t\t\tif(c < 0) {\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}else{\n\t\t\t\tans = b * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t}",
"if(c < 0) {\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}else{\n\t\t\t\tans = b * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}",
"c < 0",
"c",
"0",
"{\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}",
"ans = a * c",
"ans",
"a * c",
"a",
"c",
"System.out.print(ans)",
"System.out.print",
"System.out",
"System",
"System.out",
"ans",
"{\n\t\t\t\tans = b * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}",
"ans = b * c",
"ans",
"b * c",
"b",
"c",
"System.out.print(ans)",
"System.out.print",
"System.out",
"System",
"System.out",
"ans",
"if(c < 0 && d <= 0) {\n\t\t\tif(a < 0) {\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}else{\n\t\t\t\tans = a * d;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t}else {\n\t\t\tif(a * c > b * d) {\n\t\t\t\tSystem.out.print(a * c);\n\t\t\t}else {\n\t\t\t\tSystem.out.print(b * d);\n\t\t\t}\n\t\t}",
"c < 0 && d <= 0",
"c < 0",
"c",
"0",
"d <= 0",
"d",
"0",
"{\n\t\t\tif(a < 0) {\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}else{\n\t\t\t\tans = a * d;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t}",
"if(a < 0) {\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}else{\n\t\t\t\tans = a * d;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}",
"a < 0",
"a",
"0",
"{\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}",
"ans = a * c",
"ans",
"a * c",
"a",
"c",
"System.out.print(ans)",
"System.out.print",
"System.out",
"System",
"System.out",
"ans",
"{\n\t\t\t\tans = a * d;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}",
"ans = a * d",
"ans",
"a * d",
"a",
"d",
"System.out.print(ans)",
"System.out.print",
"System.out",
"System",
"System.out",
"ans",
"{\n\t\t\tif(a * c > b * d) {\n\t\t\t\tSystem.out.print(a * c);\n\t\t\t}else {\n\t\t\t\tSystem.out.print(b * d);\n\t\t\t}\n\t\t}",
"if(a * c > b * d) {\n\t\t\t\tSystem.out.print(a * c);\n\t\t\t}else {\n\t\t\t\tSystem.out.print(b * d);\n\t\t\t}",
"a * c > b * d",
"a * c",
"a",
"c",
"b * d",
"b",
"d",
"{\n\t\t\t\tSystem.out.print(a * c);\n\t\t\t}",
"System.out.print(a * c)",
"System.out.print",
"System.out",
"System",
"System.out",
"a * c",
"a",
"c",
"{\n\t\t\t\tSystem.out.print(b * d);\n\t\t\t}",
"System.out.print(b * d)",
"System.out.print",
"System.out",
"System",
"System.out",
"b * d",
"b",
"d",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\n\t\tlong ans = 0;\n\t\tif(a < 0 && b <= 0) {\n\t\t\tif(c < 0) {\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}else{\n\t\t\t\tans = b * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t}else if(c < 0 && d <= 0) {\n\t\t\tif(a < 0) {\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}else{\n\t\t\t\tans = a * d;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t}else {\n\t\t\tif(a * c > b * d) {\n\t\t\t\tSystem.out.print(a * c);\n\t\t\t}else {\n\t\t\t\tSystem.out.print(b * d);\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\n\t\tlong ans = 0;\n\t\tif(a < 0 && b <= 0) {\n\t\t\tif(c < 0) {\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}else{\n\t\t\t\tans = b * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t}else if(c < 0 && d <= 0) {\n\t\t\tif(a < 0) {\n\t\t\t\tans = a * c;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}else{\n\t\t\t\tans = a * d;\n\t\t\t\tSystem.out.print(ans);\n\t\t\t}\n\t\t}else {\n\t\t\tif(a * c > b * d) {\n\t\t\t\tSystem.out.print(a * c);\n\t\t\t}else {\n\t\t\t\tSystem.out.print(b * d);\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
long ans = 0;
if(a < 0 && b <= 0) {
if(c < 0) {
ans = a * c;
System.out.print(ans);
}else{
ans = b * c;
System.out.print(ans);
}
}else if(c < 0 && d <= 0) {
if(a < 0) {
ans = a * c;
System.out.print(ans);
}else{
ans = a * d;
System.out.print(ans);
}
}else {
if(a * c > b * d) {
System.out.print(a * c);
}else {
System.out.print(b * d);
}
}
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
20,
17,
0,
18,
13,
17,
2,
13,
13,
0,
18,
13,
17,
2,
13,
13,
0,
18,
13,
17,
2,
13,
13,
0,
18,
13,
17,
2,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
18,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
113,
8
],
[
113,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
11,
35
],
[
35,
36
],
[
36,
37
],
[
11,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
11,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
11,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
11,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
61,
65
],
[
11,
66
],
[
66,
67
],
[
66,
68
],
[
11,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
11,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
11,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
88,
90
],
[
11,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
11,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
11,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
9,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
]
| [
"import java.util.Scanner;\nimport java.util.Arrays;\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 b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n sc.close();\n\n long abMin = Math.min(a,b);\n long abMax = Math.max(a,b);\n long cdMin = Math.min(c,d);\n long cdMax = Math.max(c,d);\n\n long[] tmpAns = new long[4];\n tmpAns[0] = abMin * cdMin;\n tmpAns[1] = abMin * cdMax;\n tmpAns[2] = abMax * cdMin;\n tmpAns[3] = abMax * cdMax;\n\n Arrays.sort(tmpAns);\n\n System.out.println(tmpAns[3]);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"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 b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n sc.close();\n\n long abMin = Math.min(a,b);\n long abMax = Math.max(a,b);\n long cdMin = Math.min(c,d);\n long cdMax = Math.max(c,d);\n\n long[] tmpAns = new long[4];\n tmpAns[0] = abMin * cdMin;\n tmpAns[1] = abMin * cdMax;\n tmpAns[2] = abMax * cdMin;\n tmpAns[3] = abMax * cdMax;\n\n Arrays.sort(tmpAns);\n\n System.out.println(tmpAns[3]);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n sc.close();\n\n long abMin = Math.min(a,b);\n long abMax = Math.max(a,b);\n long cdMin = Math.min(c,d);\n long cdMax = Math.max(c,d);\n\n long[] tmpAns = new long[4];\n tmpAns[0] = abMin * cdMin;\n tmpAns[1] = abMin * cdMax;\n tmpAns[2] = abMax * cdMin;\n tmpAns[3] = abMax * cdMax;\n\n Arrays.sort(tmpAns);\n\n System.out.println(tmpAns[3]);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n sc.close();\n\n long abMin = Math.min(a,b);\n long abMax = Math.max(a,b);\n long cdMin = Math.min(c,d);\n long cdMax = Math.max(c,d);\n\n long[] tmpAns = new long[4];\n tmpAns[0] = abMin * cdMin;\n tmpAns[1] = abMin * cdMax;\n tmpAns[2] = abMax * cdMin;\n tmpAns[3] = abMax * cdMax;\n\n Arrays.sort(tmpAns);\n\n System.out.println(tmpAns[3]);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"long abMin = Math.min(a,b);",
"abMin",
"Math.min(a,b)",
"Math.min",
"Math",
"a",
"b",
"long abMax = Math.max(a,b);",
"abMax",
"Math.max(a,b)",
"Math.max",
"Math",
"a",
"b",
"long cdMin = Math.min(c,d);",
"cdMin",
"Math.min(c,d)",
"Math.min",
"Math",
"c",
"d",
"long cdMax = Math.max(c,d);",
"cdMax",
"Math.max(c,d)",
"Math.max",
"Math",
"c",
"d",
"long[] tmpAns = new long[4];",
"tmpAns",
"new long[4]",
"4",
"tmpAns[0] = abMin * cdMin",
"tmpAns[0]",
"tmpAns",
"0",
"abMin * cdMin",
"abMin",
"cdMin",
"tmpAns[1] = abMin * cdMax",
"tmpAns[1]",
"tmpAns",
"1",
"abMin * cdMax",
"abMin",
"cdMax",
"tmpAns[2] = abMax * cdMin",
"tmpAns[2]",
"tmpAns",
"2",
"abMax * cdMin",
"abMax",
"cdMin",
"tmpAns[3] = abMax * cdMax",
"tmpAns[3]",
"tmpAns",
"3",
"abMax * cdMax",
"abMax",
"cdMax",
"Arrays.sort(tmpAns)",
"Arrays.sort",
"Arrays",
"tmpAns",
"System.out.println(tmpAns[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"tmpAns[3]",
"tmpAns",
"3",
"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 b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n sc.close();\n\n long abMin = Math.min(a,b);\n long abMax = Math.max(a,b);\n long cdMin = Math.min(c,d);\n long cdMax = Math.max(c,d);\n\n long[] tmpAns = new long[4];\n tmpAns[0] = abMin * cdMin;\n tmpAns[1] = abMin * cdMax;\n tmpAns[2] = abMax * cdMin;\n tmpAns[3] = abMax * cdMax;\n\n Arrays.sort(tmpAns);\n\n System.out.println(tmpAns[3]);\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 b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n sc.close();\n\n long abMin = Math.min(a,b);\n long abMax = Math.max(a,b);\n long cdMin = Math.min(c,d);\n long cdMax = Math.max(c,d);\n\n long[] tmpAns = new long[4];\n tmpAns[0] = abMin * cdMin;\n tmpAns[1] = abMin * cdMax;\n tmpAns[2] = abMax * cdMin;\n tmpAns[3] = abMax * cdMax;\n\n Arrays.sort(tmpAns);\n\n System.out.println(tmpAns[3]);\n }\n}",
"Main"
]
| import java.util.Scanner;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
sc.close();
long abMin = Math.min(a,b);
long abMax = Math.max(a,b);
long cdMin = Math.min(c,d);
long cdMax = Math.max(c,d);
long[] tmpAns = new long[4];
tmpAns[0] = abMin * cdMin;
tmpAns[1] = abMin * cdMax;
tmpAns[2] = abMax * cdMin;
tmpAns[3] = abMax * cdMax;
Arrays.sort(tmpAns);
System.out.println(tmpAns[3]);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
82,
5
],
[
82,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
8,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
61,
65
],
[
8,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
68,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
6,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
]
| [
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long a1 = a * c;\n long a2 = a * d;\n long a3 = b * c;\n long a4 = b * d;\n \n long b1 = Math.max(a1, a2);\n long b2 = Math.max(a3, a4);\n long ans = Math.max(b1, b2);\n \n System.out.println(ans); \n \n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long a1 = a * c;\n long a2 = a * d;\n long a3 = b * c;\n long a4 = b * d;\n \n long b1 = Math.max(a1, a2);\n long b2 = Math.max(a3, a4);\n long ans = Math.max(b1, b2);\n \n System.out.println(ans); \n \n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long a1 = a * c;\n long a2 = a * d;\n long a3 = b * c;\n long a4 = b * d;\n \n long b1 = Math.max(a1, a2);\n long b2 = Math.max(a3, a4);\n long ans = Math.max(b1, b2);\n \n System.out.println(ans); \n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long a1 = a * c;\n long a2 = a * d;\n long a3 = b * c;\n long a4 = b * d;\n \n long b1 = Math.max(a1, a2);\n long b2 = Math.max(a3, a4);\n long ans = Math.max(b1, b2);\n \n System.out.println(ans); \n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long a1 = a * c;",
"a1",
"a * c",
"a",
"c",
"long a2 = a * d;",
"a2",
"a * d",
"a",
"d",
"long a3 = b * c;",
"a3",
"b * c",
"b",
"c",
"long a4 = b * d;",
"a4",
"b * d",
"b",
"d",
"long b1 = Math.max(a1, a2);",
"b1",
"Math.max(a1, a2)",
"Math.max",
"Math",
"a1",
"a2",
"long b2 = Math.max(a3, a4);",
"b2",
"Math.max(a3, a4)",
"Math.max",
"Math",
"a3",
"a4",
"long ans = Math.max(b1, b2);",
"ans",
"Math.max(b1, b2)",
"Math.max",
"Math",
"b1",
"b2",
"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 long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long a1 = a * c;\n long a2 = a * d;\n long a3 = b * c;\n long a4 = b * d;\n \n long b1 = Math.max(a1, a2);\n long b2 = Math.max(a3, a4);\n long ans = Math.max(b1, b2);\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 long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n \n long a1 = a * c;\n long a2 = a * d;\n long a3 = b * c;\n long a4 = b * d;\n \n long b1 = Math.max(a1, a2);\n long b2 = Math.max(a3, a4);\n long ans = Math.max(b1, b2);\n \n System.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);
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
long a1 = a * c;
long a2 = a * d;
long a3 = b * c;
long a4 = b * d;
long b1 = Math.max(a1, a2);
long b2 = Math.max(a3, a4);
long ans = Math.max(b1, b2);
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
13,
0,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
0,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
13,
17,
30,
29,
13,
29,
4,
13,
13,
2,
13,
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,
14,
2,
18,
13,
13,
18,
13,
2,
2,
13,
17,
13,
30,
14,
2,
4,
13,
18,
13,
2,
2,
13,
17,
13,
18,
13,
13,
17,
30,
0,
18,
13,
13,
17,
30,
14,
2,
4,
13,
18,
13,
13,
18,
13,
2,
2,
13,
17,
13,
17,
30,
0,
18,
13,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
2,
2,
13,
13,
2,
18,
13,
13,
17,
30,
40,
13,
40,
13,
0,
13,
2,
13,
17,
42,
2,
2,
13,
17,
2,
18,
13,
13,
17,
30,
40,
13,
40,
13,
41,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
2,
13,
17,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
2,
13,
17,
41,
13,
8,
2,
13,
13,
13,
2,
4,
18,
13,
2,
13,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
13,
17,
2,
13,
17,
17,
4,
18,
18,
13,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
387,
17
],
[
387,
18
],
[
18,
19
],
[
18,
20
],
[
387,
21
],
[
21,
22
],
[
387,
23
],
[
23,
24
],
[
23,
25
],
[
387,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
57,
58
],
[
28,
59
],
[
59,
60
],
[
26,
61
],
[
61,
62
],
[
387,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
65,
71
],
[
71,
72
],
[
71,
73
],
[
65,
74
],
[
74,
75
],
[
74,
76
],
[
65,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
83,
84
],
[
65,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
91,
92
],
[
65,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
99,
100
],
[
65,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
106,
107
],
[
107,
108
],
[
65,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
120,
121
],
[
120,
122
],
[
117,
123
],
[
123,
124
],
[
123,
125
],
[
114,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
129,
130
],
[
129,
131
],
[
126,
132
],
[
132,
133
],
[
132,
134
],
[
63,
135
],
[
135,
136
],
[
387,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
140,
146
],
[
146,
147
],
[
147,
148
],
[
139,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
150,
153
],
[
153,
154
],
[
153,
155
],
[
137,
156
],
[
156,
157
],
[
137,
158
],
[
158,
159
],
[
387,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
167,
175
],
[
175,
176
],
[
176,
177
],
[
167,
178
],
[
179,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
180,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
199,
203
],
[
195,
204
],
[
204,
205
],
[
204,
206
],
[
194,
207
],
[
193,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
180,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
219,
221
],
[
217,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
224,
228
],
[
216,
229
],
[
215,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
231,
235
],
[
162,
236
],
[
236,
237
],
[
236,
238
],
[
162,
239
],
[
239,
240
],
[
239,
241
],
[
162,
242
],
[
242,
243
],
[
242,
244
],
[
162,
245
],
[
245,
246
],
[
245,
247
],
[
162,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
253,
257
],
[
248,
258
],
[
258,
259
],
[
259,
260
],
[
258,
261
],
[
261,
262
],
[
162,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
265,
267
],
[
162,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
269,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
273,
277
],
[
268,
278
],
[
278,
279
],
[
279,
280
],
[
278,
281
],
[
281,
282
],
[
162,
283
],
[
283,
284
],
[
283,
285
],
[
162,
286
],
[
286,
287
],
[
287,
288
],
[
288,
289
],
[
288,
290
],
[
286,
291
],
[
291,
292
],
[
291,
293
],
[
286,
294
],
[
294,
295
],
[
295,
296
],
[
286,
297
],
[
298,
298
],
[
298,
299
],
[
299,
300
],
[
300,
301
],
[
301,
302
],
[
301,
303
],
[
300,
304
],
[
299,
305
],
[
305,
306
],
[
306,
307
],
[
306,
308
],
[
308,
309
],
[
309,
310
],
[
308,
311
],
[
308,
312
],
[
312,
313
],
[
312,
314
],
[
305,
315
],
[
315,
316
],
[
315,
317
],
[
317,
318
],
[
317,
319
],
[
162,
320
],
[
320,
321
],
[
320,
322
],
[
322,
323
],
[
323,
324
],
[
322,
325
],
[
322,
326
],
[
326,
327
],
[
326,
328
],
[
162,
329
],
[
329,
330
],
[
329,
331
],
[
331,
332
],
[
331,
333
],
[
162,
334
],
[
334,
335
],
[
334,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
336,
340
],
[
336,
341
],
[
341,
342
],
[
342,
343
],
[
343,
344
],
[
342,
345
],
[
345,
346
],
[
345,
347
],
[
342,
348
],
[
341,
349
],
[
162,
350
],
[
350,
351
],
[
351,
352
],
[
352,
353
],
[
352,
354
],
[
350,
355
],
[
355,
356
],
[
355,
357
],
[
350,
358
],
[
358,
359
],
[
359,
360
],
[
350,
361
],
[
362,
362
],
[
362,
363
],
[
363,
364
],
[
364,
365
],
[
365,
366
],
[
365,
367
],
[
363,
368
],
[
368,
369
],
[
369,
370
],
[
370,
371
],
[
370,
372
],
[
369,
373
],
[
373,
374
],
[
373,
375
],
[
368,
376
],
[
162,
377
],
[
377,
378
],
[
378,
379
],
[
379,
380
],
[
379,
381
],
[
160,
382
],
[
382,
383
],
[
160,
384
],
[
384,
385
],
[
0,
386
],
[
386,
387
],
[
386,
388
]
]
| [
"import java.io.*;\nimport java.math.BigDecimal;\nimport java.math.BigInteger;\nimport java.text.ParseException;\nimport java.util.*;\n\n\npublic class Main {\n\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static StringTokenizer st;\n static StringBuilder sb = new StringBuilder(\"\");\n\n static int[] inputArray(int n) throws IOException {\n int[] a = new int[n];\n st = new StringTokenizer(br.readLine());\n for(int i = 0 ; i < n ; i++) {\n a[i] = Integer.parseInt(st.nextToken());\n }\n return a;\n }\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n StringBuilder sb = new StringBuilder(\"\");\n st = new StringTokenizer(br.readLine());\n long a = Long.parseLong(st.nextToken());\n long b = Long.parseLong(st.nextToken());\n long c = Long.parseLong(st.nextToken());\n long d = Long.parseLong(st.nextToken());\n System.out.println(Math.max(Math.max(a*d , a*c) , Math.max(b*c , b*d)));\n }\n\n static int gcd(int a , int b) {\n if(a % b == 0) {\n return b;\n }\n return gcd(b , a % b);\n }\n\n static void longestGcdSeq(int a[] , int n) {\n int coprimes[] = new int[n];\n for(int i = 0 ; i < n ; i++) {\n if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }\n }\n //System.out.println(Arrays.toString(coprimes));\n int maxLen = 0 , startLen = 0 , endLen = 0;\n int i = 0;\n while(i < n && coprimes[i] == 1) {\n startLen++;\n i++;\n }\n i = n -1;\n while(i >= 0 && coprimes[i] == 1) {\n endLen++;\n i--;\n }\n int start = 0;\n for(i = 0 ; i < n ; i++) {\n if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }\n }\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n //System.out.println(startLen + \" \" + maxLen + \" \" + endLen);\n int contMax = startLen == n ? n : Math.max(startLen + endLen , maxLen) + 1;\n //System.out.println(contMax);\n for(int k = 2 ; k <= n ; k++) {\n System.out.print((contMax-1)/(k-1) + \" \");\n }\n System.out.println();\n }\n\n}\n/*\n\nif(tree.size == 2) {\n\n}\n\n5 8\n5 1 2 4 3\n0 1\n0 2\n0 3\n0 4\n0 5\n1 1000000000\n1 1\n1 500000000\n\n\n */",
"import java.io.*;",
"io.*",
"java",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.text.ParseException;",
"ParseException",
"java.text",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static StringTokenizer st;\n static StringBuilder sb = new StringBuilder(\"\");\n\n static int[] inputArray(int n) throws IOException {\n int[] a = new int[n];\n st = new StringTokenizer(br.readLine());\n for(int i = 0 ; i < n ; i++) {\n a[i] = Integer.parseInt(st.nextToken());\n }\n return a;\n }\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n StringBuilder sb = new StringBuilder(\"\");\n st = new StringTokenizer(br.readLine());\n long a = Long.parseLong(st.nextToken());\n long b = Long.parseLong(st.nextToken());\n long c = Long.parseLong(st.nextToken());\n long d = Long.parseLong(st.nextToken());\n System.out.println(Math.max(Math.max(a*d , a*c) , Math.max(b*c , b*d)));\n }\n\n static int gcd(int a , int b) {\n if(a % b == 0) {\n return b;\n }\n return gcd(b , a % b);\n }\n\n static void longestGcdSeq(int a[] , int n) {\n int coprimes[] = new int[n];\n for(int i = 0 ; i < n ; i++) {\n if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }\n }\n //System.out.println(Arrays.toString(coprimes));\n int maxLen = 0 , startLen = 0 , endLen = 0;\n int i = 0;\n while(i < n && coprimes[i] == 1) {\n startLen++;\n i++;\n }\n i = n -1;\n while(i >= 0 && coprimes[i] == 1) {\n endLen++;\n i--;\n }\n int start = 0;\n for(i = 0 ; i < n ; i++) {\n if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }\n }\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n //System.out.println(startLen + \" \" + maxLen + \" \" + endLen);\n int contMax = startLen == n ? n : Math.max(startLen + endLen , maxLen) + 1;\n //System.out.println(contMax);\n for(int k = 2 ; k <= n ; k++) {\n System.out.print((contMax-1)/(k-1) + \" \");\n }\n System.out.println();\n }\n\n}",
"Main",
"static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"static StringTokenizer st;",
"st",
"static StringBuilder sb = new StringBuilder(\"\");",
"sb",
"new StringBuilder(\"\")",
"static int[] inputArray(int n) throws IOException {\n int[] a = new int[n];\n st = new StringTokenizer(br.readLine());\n for(int i = 0 ; i < n ; i++) {\n a[i] = Integer.parseInt(st.nextToken());\n }\n return a;\n }",
"inputArray",
"{\n int[] a = new int[n];\n st = new StringTokenizer(br.readLine());\n for(int i = 0 ; i < n ; i++) {\n a[i] = Integer.parseInt(st.nextToken());\n }\n return a;\n }",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"for(int i = 0 ; i < n ; i++) {\n a[i] = Integer.parseInt(st.nextToken());\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = Integer.parseInt(st.nextToken());\n }",
"{\n a[i] = Integer.parseInt(st.nextToken());\n }",
"a[i] = Integer.parseInt(st.nextToken())",
"a[i]",
"a",
"i",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"return a;",
"a",
"int n",
"n",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n StringBuilder sb = new StringBuilder(\"\");\n st = new StringTokenizer(br.readLine());\n long a = Long.parseLong(st.nextToken());\n long b = Long.parseLong(st.nextToken());\n long c = Long.parseLong(st.nextToken());\n long d = Long.parseLong(st.nextToken());\n System.out.println(Math.max(Math.max(a*d , a*c) , Math.max(b*c , b*d)));\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n StringBuilder sb = new StringBuilder(\"\");\n st = new StringTokenizer(br.readLine());\n long a = Long.parseLong(st.nextToken());\n long b = Long.parseLong(st.nextToken());\n long c = Long.parseLong(st.nextToken());\n long d = Long.parseLong(st.nextToken());\n System.out.println(Math.max(Math.max(a*d , a*c) , Math.max(b*c , b*d)));\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st;",
"st",
"StringBuilder sb = new StringBuilder(\"\");",
"sb",
"new StringBuilder(\"\")",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"long a = Long.parseLong(st.nextToken());",
"a",
"Long.parseLong(st.nextToken())",
"Long.parseLong",
"Long",
"st.nextToken()",
"st.nextToken",
"st",
"long b = Long.parseLong(st.nextToken());",
"b",
"Long.parseLong(st.nextToken())",
"Long.parseLong",
"Long",
"st.nextToken()",
"st.nextToken",
"st",
"long c = Long.parseLong(st.nextToken());",
"c",
"Long.parseLong(st.nextToken())",
"Long.parseLong",
"Long",
"st.nextToken()",
"st.nextToken",
"st",
"long d = Long.parseLong(st.nextToken());",
"d",
"Long.parseLong(st.nextToken())",
"Long.parseLong",
"Long",
"st.nextToken()",
"st.nextToken",
"st",
"System.out.println(Math.max(Math.max(a*d , a*c) , Math.max(b*c , b*d)))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.max(Math.max(a*d , a*c) , Math.max(b*c , b*d))",
"Math.max",
"Math",
"Math.max(a*d , a*c)",
"Math.max",
"Math",
"a*d",
"a",
"d",
"a*c",
"a",
"c",
"Math.max(b*c , b*d)",
"Math.max",
"Math",
"b*c",
"b",
"c",
"b*d",
"b",
"d",
"String[] args",
"args",
"static int gcd(int a , int b) {\n if(a % b == 0) {\n return b;\n }\n return gcd(b , a % b);\n }",
"gcd",
"{\n if(a % b == 0) {\n return b;\n }\n return gcd(b , a % b);\n }",
"if(a % b == 0) {\n return b;\n }",
"a % b == 0",
"a % b",
"a",
"b",
"0",
"{\n return b;\n }",
"return b;",
"b",
"return gcd(b , a % b);",
"gcd(b , a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"static void longestGcdSeq(int a[] , int n) {\n int coprimes[] = new int[n];\n for(int i = 0 ; i < n ; i++) {\n if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }\n }\n //System.out.println(Arrays.toString(coprimes));\n int maxLen = 0 , startLen = 0 , endLen = 0;\n int i = 0;\n while(i < n && coprimes[i] == 1) {\n startLen++;\n i++;\n }\n i = n -1;\n while(i >= 0 && coprimes[i] == 1) {\n endLen++;\n i--;\n }\n int start = 0;\n for(i = 0 ; i < n ; i++) {\n if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }\n }\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n //System.out.println(startLen + \" \" + maxLen + \" \" + endLen);\n int contMax = startLen == n ? n : Math.max(startLen + endLen , maxLen) + 1;\n //System.out.println(contMax);\n for(int k = 2 ; k <= n ; k++) {\n System.out.print((contMax-1)/(k-1) + \" \");\n }\n System.out.println();\n }",
"longestGcdSeq",
"{\n int coprimes[] = new int[n];\n for(int i = 0 ; i < n ; i++) {\n if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }\n }\n //System.out.println(Arrays.toString(coprimes));\n int maxLen = 0 , startLen = 0 , endLen = 0;\n int i = 0;\n while(i < n && coprimes[i] == 1) {\n startLen++;\n i++;\n }\n i = n -1;\n while(i >= 0 && coprimes[i] == 1) {\n endLen++;\n i--;\n }\n int start = 0;\n for(i = 0 ; i < n ; i++) {\n if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }\n }\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n //System.out.println(startLen + \" \" + maxLen + \" \" + endLen);\n int contMax = startLen == n ? n : Math.max(startLen + endLen , maxLen) + 1;\n //System.out.println(contMax);\n for(int k = 2 ; k <= n ; k++) {\n System.out.print((contMax-1)/(k-1) + \" \");\n }\n System.out.println();\n }",
"int coprimes[] = new int[n];",
"coprimes",
"new int[n]",
"n",
"for(int i = 0 ; i < n ; i++) {\n if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }\n }",
"{\n if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }\n }",
"if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }",
"a[i] < a[(i+1)%n]",
"a[i]",
"a",
"i",
"a[(i+1)%n]",
"a",
"(i+1)%n",
"(i+1)",
"i",
"1",
"n",
"{\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }",
"if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }",
"gcd(a[(i+1)%n] , a[i]) != 1",
"gcd(a[(i+1)%n] , a[i])",
"gcd",
"a[(i+1)%n]",
"a",
"(i+1)%n",
"(i+1)",
"i",
"1",
"n",
"a[i]",
"a",
"i",
"1",
"{\n coprimes[i] = 1;\n }",
"coprimes[i] = 1",
"coprimes[i]",
"coprimes",
"i",
"1",
"{\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }",
"if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }",
"gcd(a[i] , a[(i+1)%n]) != 1",
"gcd(a[i] , a[(i+1)%n])",
"gcd",
"a[i]",
"a",
"i",
"a[(i+1)%n]",
"a",
"(i+1)%n",
"(i+1)",
"i",
"1",
"n",
"1",
"{\n coprimes[i] = 1;\n }",
"coprimes[i] = 1",
"coprimes[i]",
"coprimes",
"i",
"1",
"int maxLen = 0",
"maxLen",
"0",
"startLen = 0",
"startLen",
"0",
"endLen = 0;",
"endLen",
"0",
"int i = 0;",
"i",
"0",
"while(i < n && coprimes[i] == 1) {\n startLen++;\n i++;\n }",
"i < n && coprimes[i] == 1",
"i < n",
"i",
"n",
"coprimes[i] == 1",
"coprimes[i]",
"coprimes",
"i",
"1",
"{\n startLen++;\n i++;\n }",
"startLen++",
"startLen",
"i++",
"i",
"i = n -1",
"i",
"n -1",
"n",
"1",
"while(i >= 0 && coprimes[i] == 1) {\n endLen++;\n i--;\n }",
"i >= 0 && coprimes[i] == 1",
"i >= 0",
"i",
"0",
"coprimes[i] == 1",
"coprimes[i]",
"coprimes",
"i",
"1",
"{\n endLen++;\n i--;\n }",
"endLen++",
"endLen",
"i--",
"i",
"int start = 0;",
"start",
"0",
"for(i = 0 ; i < n ; i++) {\n if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }\n }",
"i = 0 ;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }\n }",
"{\n if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }\n }",
"if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }",
"coprimes[i] == 0",
"coprimes[i]",
"coprimes",
"i",
"0",
"{\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }",
"maxLen = Math.max(maxLen , i - start)",
"maxLen",
"Math.max(maxLen , i - start)",
"Math.max",
"Math",
"maxLen",
"i - start",
"i",
"start",
"start = i + 1",
"start",
"i + 1",
"i",
"1",
"maxLen = Math.max(maxLen , i - start)",
"maxLen",
"Math.max(maxLen , i - start)",
"Math.max",
"Math",
"maxLen",
"i - start",
"i",
"start",
"start = i + 1",
"start",
"i + 1",
"i",
"1",
"int contMax = startLen == n ? n : Math.max(startLen + endLen , maxLen) + 1;",
"contMax",
"startLen == n ? n : Math.max(startLen + endLen , maxLen) + 1",
"startLen == n",
"startLen",
"n",
"n",
"Math.max(startLen + endLen , maxLen) + 1",
"Math.max(startLen + endLen , maxLen)",
"Math.max",
"Math",
"startLen + endLen",
"startLen",
"endLen",
"maxLen",
"1",
"for(int k = 2 ; k <= n ; k++) {\n System.out.print((contMax-1)/(k-1) + \" \");\n }",
"int k = 2 ;",
"int k = 2 ;",
"k",
"2",
"k <= n",
"k",
"n",
"k++",
"k++",
"k",
"{\n System.out.print((contMax-1)/(k-1) + \" \");\n }",
"{\n System.out.print((contMax-1)/(k-1) + \" \");\n }",
"System.out.print((contMax-1)/(k-1) + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"(contMax-1)/(k-1) + \" \"",
"(contMax-1)/(k-1)",
"(contMax-1)",
"contMax",
"1",
"(k-1)",
"k",
"1",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"int a[]",
"a",
"int n",
"n",
"public class Main {\n\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static StringTokenizer st;\n static StringBuilder sb = new StringBuilder(\"\");\n\n static int[] inputArray(int n) throws IOException {\n int[] a = new int[n];\n st = new StringTokenizer(br.readLine());\n for(int i = 0 ; i < n ; i++) {\n a[i] = Integer.parseInt(st.nextToken());\n }\n return a;\n }\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n StringBuilder sb = new StringBuilder(\"\");\n st = new StringTokenizer(br.readLine());\n long a = Long.parseLong(st.nextToken());\n long b = Long.parseLong(st.nextToken());\n long c = Long.parseLong(st.nextToken());\n long d = Long.parseLong(st.nextToken());\n System.out.println(Math.max(Math.max(a*d , a*c) , Math.max(b*c , b*d)));\n }\n\n static int gcd(int a , int b) {\n if(a % b == 0) {\n return b;\n }\n return gcd(b , a % b);\n }\n\n static void longestGcdSeq(int a[] , int n) {\n int coprimes[] = new int[n];\n for(int i = 0 ; i < n ; i++) {\n if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }\n }\n //System.out.println(Arrays.toString(coprimes));\n int maxLen = 0 , startLen = 0 , endLen = 0;\n int i = 0;\n while(i < n && coprimes[i] == 1) {\n startLen++;\n i++;\n }\n i = n -1;\n while(i >= 0 && coprimes[i] == 1) {\n endLen++;\n i--;\n }\n int start = 0;\n for(i = 0 ; i < n ; i++) {\n if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }\n }\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n //System.out.println(startLen + \" \" + maxLen + \" \" + endLen);\n int contMax = startLen == n ? n : Math.max(startLen + endLen , maxLen) + 1;\n //System.out.println(contMax);\n for(int k = 2 ; k <= n ; k++) {\n System.out.print((contMax-1)/(k-1) + \" \");\n }\n System.out.println();\n }\n\n}",
"public class Main {\n\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n static StringTokenizer st;\n static StringBuilder sb = new StringBuilder(\"\");\n\n static int[] inputArray(int n) throws IOException {\n int[] a = new int[n];\n st = new StringTokenizer(br.readLine());\n for(int i = 0 ; i < n ; i++) {\n a[i] = Integer.parseInt(st.nextToken());\n }\n return a;\n }\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st;\n StringBuilder sb = new StringBuilder(\"\");\n st = new StringTokenizer(br.readLine());\n long a = Long.parseLong(st.nextToken());\n long b = Long.parseLong(st.nextToken());\n long c = Long.parseLong(st.nextToken());\n long d = Long.parseLong(st.nextToken());\n System.out.println(Math.max(Math.max(a*d , a*c) , Math.max(b*c , b*d)));\n }\n\n static int gcd(int a , int b) {\n if(a % b == 0) {\n return b;\n }\n return gcd(b , a % b);\n }\n\n static void longestGcdSeq(int a[] , int n) {\n int coprimes[] = new int[n];\n for(int i = 0 ; i < n ; i++) {\n if(a[i] < a[(i+1)%n]) {\n if(gcd(a[(i+1)%n] , a[i]) != 1) {\n coprimes[i] = 1;\n }\n }\n else {\n if(gcd(a[i] , a[(i+1)%n]) != 1) {\n coprimes[i] = 1;\n }\n }\n }\n //System.out.println(Arrays.toString(coprimes));\n int maxLen = 0 , startLen = 0 , endLen = 0;\n int i = 0;\n while(i < n && coprimes[i] == 1) {\n startLen++;\n i++;\n }\n i = n -1;\n while(i >= 0 && coprimes[i] == 1) {\n endLen++;\n i--;\n }\n int start = 0;\n for(i = 0 ; i < n ; i++) {\n if(coprimes[i] == 0) {\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n }\n }\n maxLen = Math.max(maxLen , i - start);\n start = i + 1;\n //System.out.println(startLen + \" \" + maxLen + \" \" + endLen);\n int contMax = startLen == n ? n : Math.max(startLen + endLen , maxLen) + 1;\n //System.out.println(contMax);\n for(int k = 2 ; k <= n ; k++) {\n System.out.print((contMax-1)/(k-1) + \" \");\n }\n System.out.println();\n }\n\n}",
"Main"
]
| import java.io.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.text.ParseException;
import java.util.*;
public class Main {
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
static StringTokenizer st;
static StringBuilder sb = new StringBuilder("");
static int[] inputArray(int n) throws IOException {
int[] a = new int[n];
st = new StringTokenizer(br.readLine());
for(int i = 0 ; i < n ; i++) {
a[i] = Integer.parseInt(st.nextToken());
}
return a;
}
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st;
StringBuilder sb = new StringBuilder("");
st = new StringTokenizer(br.readLine());
long a = Long.parseLong(st.nextToken());
long b = Long.parseLong(st.nextToken());
long c = Long.parseLong(st.nextToken());
long d = Long.parseLong(st.nextToken());
System.out.println(Math.max(Math.max(a*d , a*c) , Math.max(b*c , b*d)));
}
static int gcd(int a , int b) {
if(a % b == 0) {
return b;
}
return gcd(b , a % b);
}
static void longestGcdSeq(int a[] , int n) {
int coprimes[] = new int[n];
for(int i = 0 ; i < n ; i++) {
if(a[i] < a[(i+1)%n]) {
if(gcd(a[(i+1)%n] , a[i]) != 1) {
coprimes[i] = 1;
}
}
else {
if(gcd(a[i] , a[(i+1)%n]) != 1) {
coprimes[i] = 1;
}
}
}
//System.out.println(Arrays.toString(coprimes));
int maxLen = 0 , startLen = 0 , endLen = 0;
int i = 0;
while(i < n && coprimes[i] == 1) {
startLen++;
i++;
}
i = n -1;
while(i >= 0 && coprimes[i] == 1) {
endLen++;
i--;
}
int start = 0;
for(i = 0 ; i < n ; i++) {
if(coprimes[i] == 0) {
maxLen = Math.max(maxLen , i - start);
start = i + 1;
}
}
maxLen = Math.max(maxLen , i - start);
start = i + 1;
//System.out.println(startLen + " " + maxLen + " " + endLen);
int contMax = startLen == n ? n : Math.max(startLen + endLen , maxLen) + 1;
//System.out.println(contMax);
for(int k = 2 ; k <= n ; k++) {
System.out.print((contMax-1)/(k-1) + " ");
}
System.out.println();
}
}
/*
if(tree.size == 2) {
}
5 8
5 1 2 4 3
0 1
0 2
0 3
0 4
0 5
1 1000000000
1 1
1 500000000
*/ |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
4,
18,
20,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
4,
18,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
90,
8
],
[
90,
9
],
[
9,
10
],
[
90,
11
],
[
11,
12
],
[
90,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
19,
20
],
[
19,
21
],
[
15,
22
],
[
22,
23
],
[
23,
24
],
[
15,
25
],
[
25,
26
],
[
26,
27
],
[
13,
28
],
[
28,
29
],
[
90,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
32,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
32,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
32,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
32,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
32,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
32,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
]
| [
"import java.io.PrintWriter;\nimport java.util.*;\n\npublic class Main {\n\n static Scanner sc;\n static PrintWriter out;\n\n public static void main(String[] args) {\n sc = new Scanner(System.in);\n out = new PrintWriter(System.out);\n new Main().solve();\n out.flush();\n }\n\n public void solve() {\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n\n\n long res = b * c;\n res = Math.max(res, b * d);\n res = Math.max(res, a * c);\n res = Math.max(res, a * d);\n\n out.println(res);\n }\n\n\n\n}",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n static Scanner sc;\n static PrintWriter out;\n\n public static void main(String[] args) {\n sc = new Scanner(System.in);\n out = new PrintWriter(System.out);\n new Main().solve();\n out.flush();\n }\n\n public void solve() {\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n\n\n long res = b * c;\n res = Math.max(res, b * d);\n res = Math.max(res, a * c);\n res = Math.max(res, a * d);\n\n out.println(res);\n }\n\n\n\n}",
"Main",
"static Scanner sc;",
"sc",
"static PrintWriter out;",
"out",
"public static void main(String[] args) {\n sc = new Scanner(System.in);\n out = new PrintWriter(System.out);\n new Main().solve();\n out.flush();\n }",
"main",
"{\n sc = new Scanner(System.in);\n out = new PrintWriter(System.out);\n new Main().solve();\n out.flush();\n }",
"sc = new Scanner(System.in)",
"sc",
"new Scanner(System.in)",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"new Main().solve()",
"new Main().solve",
"new Main()",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"public void solve() {\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n\n\n long res = b * c;\n res = Math.max(res, b * d);\n res = Math.max(res, a * c);\n res = Math.max(res, a * d);\n\n out.println(res);\n }",
"solve",
"{\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n\n\n long res = b * c;\n res = Math.max(res, b * d);\n res = Math.max(res, a * c);\n res = Math.max(res, a * d);\n\n out.println(res);\n }",
"long a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long res = b * c;",
"res",
"b * c",
"b",
"c",
"res = Math.max(res, b * d)",
"res",
"Math.max(res, b * d)",
"Math.max",
"Math",
"res",
"b * d",
"b",
"d",
"res = Math.max(res, a * c)",
"res",
"Math.max(res, a * c)",
"Math.max",
"Math",
"res",
"a * c",
"a",
"c",
"res = Math.max(res, a * d)",
"res",
"Math.max(res, a * d)",
"Math.max",
"Math",
"res",
"a * d",
"a",
"d",
"out.println(res)",
"out.println",
"out",
"res",
"public class Main {\n\n static Scanner sc;\n static PrintWriter out;\n\n public static void main(String[] args) {\n sc = new Scanner(System.in);\n out = new PrintWriter(System.out);\n new Main().solve();\n out.flush();\n }\n\n public void solve() {\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n\n\n long res = b * c;\n res = Math.max(res, b * d);\n res = Math.max(res, a * c);\n res = Math.max(res, a * d);\n\n out.println(res);\n }\n\n\n\n}",
"public class Main {\n\n static Scanner sc;\n static PrintWriter out;\n\n public static void main(String[] args) {\n sc = new Scanner(System.in);\n out = new PrintWriter(System.out);\n new Main().solve();\n out.flush();\n }\n\n public void solve() {\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n\n\n long res = b * c;\n res = Math.max(res, b * d);\n res = Math.max(res, a * c);\n res = Math.max(res, a * d);\n\n out.println(res);\n }\n\n\n\n}",
"Main"
]
| import java.io.PrintWriter;
import java.util.*;
public class Main {
static Scanner sc;
static PrintWriter out;
public static void main(String[] args) {
sc = new Scanner(System.in);
out = new PrintWriter(System.out);
new Main().solve();
out.flush();
}
public void solve() {
long a = sc.nextInt();
long b = sc.nextInt();
long c = sc.nextInt();
long d = sc.nextInt();
long res = b * c;
res = Math.max(res, b * d);
res = Math.max(res, a * c);
res = Math.max(res, a * d);
out.println(res);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
162,
5
],
[
162,
6
],
[
6,
7
],
[
162,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
10,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
10,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
10,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
10,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
30,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
47,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
64,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
81,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
94,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
116,
117
],
[
116,
118
],
[
113,
119
],
[
119,
120
],
[
119,
121
],
[
8,
122
],
[
122,
123
],
[
162,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
162,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
138,
139
],
[
139,
140
],
[
162,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
148,
149
],
[
149,
150
],
[
162,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
155,
158
],
[
158,
159
],
[
159,
160
],
[
0,
161
],
[
161,
162
],
[
161,
163
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n\n static Scanner scanner;\n\n public static void main(String[] args) {\n scanner = new Scanner(System.in);\n\n long a=gl();\n long b=gl();\n long c=gl();\n long d=gl();\n\n\n if(a>=0 && c>=0) {\n System.out.println(b*d);\n } else if(a>=0 && d<0) {\n \tSystem.out.println(a*d);\n } else if(c>=0 && b<0) {\n \tSystem.out.println(c*b);\n } else if(a>=0) {\n \tSystem.out.println(b*d);\n } else if(c>=0) {\n \tSystem.out.println(b*d);\n } else {\n \tSystem.out.println(Math.max(a*c, b*d));\n }\n }\n\n // 文字列として入力を取得\n public static String gs() {\n return scanner.next();\n }\n\n // intとして入力を取得\n public static int gi() {\n return Integer.parseInt(scanner.next());\n }\n\n // longとして入力を取得\n public static long gl() {\n return Long.parseLong(scanner.next());\n }\n\n // doubleとして入力を取得\n public static double gd() {\n return Double.parseDouble(scanner.next());\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n static Scanner scanner;\n\n public static void main(String[] args) {\n scanner = new Scanner(System.in);\n\n long a=gl();\n long b=gl();\n long c=gl();\n long d=gl();\n\n\n if(a>=0 && c>=0) {\n System.out.println(b*d);\n } else if(a>=0 && d<0) {\n \tSystem.out.println(a*d);\n } else if(c>=0 && b<0) {\n \tSystem.out.println(c*b);\n } else if(a>=0) {\n \tSystem.out.println(b*d);\n } else if(c>=0) {\n \tSystem.out.println(b*d);\n } else {\n \tSystem.out.println(Math.max(a*c, b*d));\n }\n }\n\n // 文字列として入力を取得\n public static String gs() {\n return scanner.next();\n }\n\n // intとして入力を取得\n public static int gi() {\n return Integer.parseInt(scanner.next());\n }\n\n // longとして入力を取得\n public static long gl() {\n return Long.parseLong(scanner.next());\n }\n\n // doubleとして入力を取得\n public static double gd() {\n return Double.parseDouble(scanner.next());\n }\n}",
"Main",
"static Scanner scanner;",
"scanner",
"public static void main(String[] args) {\n scanner = new Scanner(System.in);\n\n long a=gl();\n long b=gl();\n long c=gl();\n long d=gl();\n\n\n if(a>=0 && c>=0) {\n System.out.println(b*d);\n } else if(a>=0 && d<0) {\n \tSystem.out.println(a*d);\n } else if(c>=0 && b<0) {\n \tSystem.out.println(c*b);\n } else if(a>=0) {\n \tSystem.out.println(b*d);\n } else if(c>=0) {\n \tSystem.out.println(b*d);\n } else {\n \tSystem.out.println(Math.max(a*c, b*d));\n }\n }",
"main",
"{\n scanner = new Scanner(System.in);\n\n long a=gl();\n long b=gl();\n long c=gl();\n long d=gl();\n\n\n if(a>=0 && c>=0) {\n System.out.println(b*d);\n } else if(a>=0 && d<0) {\n \tSystem.out.println(a*d);\n } else if(c>=0 && b<0) {\n \tSystem.out.println(c*b);\n } else if(a>=0) {\n \tSystem.out.println(b*d);\n } else if(c>=0) {\n \tSystem.out.println(b*d);\n } else {\n \tSystem.out.println(Math.max(a*c, b*d));\n }\n }",
"scanner = new Scanner(System.in)",
"scanner",
"new Scanner(System.in)",
"long a=gl();",
"a",
"gl()",
"gl",
"long b=gl();",
"b",
"gl()",
"gl",
"long c=gl();",
"c",
"gl()",
"gl",
"long d=gl();",
"d",
"gl()",
"gl",
"if(a>=0 && c>=0) {\n System.out.println(b*d);\n } else if(a>=0 && d<0) {\n \tSystem.out.println(a*d);\n } else if(c>=0 && b<0) {\n \tSystem.out.println(c*b);\n } else if(a>=0) {\n \tSystem.out.println(b*d);\n } else if(c>=0) {\n \tSystem.out.println(b*d);\n } else {\n \tSystem.out.println(Math.max(a*c, b*d));\n }",
"a>=0 && c>=0",
"a>=0",
"a",
"0",
"c>=0",
"c",
"0",
"{\n System.out.println(b*d);\n }",
"System.out.println(b*d)",
"System.out.println",
"System.out",
"System",
"System.out",
"b*d",
"b",
"d",
"if(a>=0 && d<0) {\n \tSystem.out.println(a*d);\n } else if(c>=0 && b<0) {\n \tSystem.out.println(c*b);\n } else if(a>=0) {\n \tSystem.out.println(b*d);\n } else if(c>=0) {\n \tSystem.out.println(b*d);\n } else {\n \tSystem.out.println(Math.max(a*c, b*d));\n }",
"a>=0 && d<0",
"a>=0",
"a",
"0",
"d<0",
"d",
"0",
"{\n \tSystem.out.println(a*d);\n }",
"System.out.println(a*d)",
"System.out.println",
"System.out",
"System",
"System.out",
"a*d",
"a",
"d",
"if(c>=0 && b<0) {\n \tSystem.out.println(c*b);\n } else if(a>=0) {\n \tSystem.out.println(b*d);\n } else if(c>=0) {\n \tSystem.out.println(b*d);\n } else {\n \tSystem.out.println(Math.max(a*c, b*d));\n }",
"c>=0 && b<0",
"c>=0",
"c",
"0",
"b<0",
"b",
"0",
"{\n \tSystem.out.println(c*b);\n }",
"System.out.println(c*b)",
"System.out.println",
"System.out",
"System",
"System.out",
"c*b",
"c",
"b",
"if(a>=0) {\n \tSystem.out.println(b*d);\n } else if(c>=0) {\n \tSystem.out.println(b*d);\n } else {\n \tSystem.out.println(Math.max(a*c, b*d));\n }",
"a>=0",
"a",
"0",
"{\n \tSystem.out.println(b*d);\n }",
"System.out.println(b*d)",
"System.out.println",
"System.out",
"System",
"System.out",
"b*d",
"b",
"d",
"if(c>=0) {\n \tSystem.out.println(b*d);\n } else {\n \tSystem.out.println(Math.max(a*c, b*d));\n }",
"c>=0",
"c",
"0",
"{\n \tSystem.out.println(b*d);\n }",
"System.out.println(b*d)",
"System.out.println",
"System.out",
"System",
"System.out",
"b*d",
"b",
"d",
"{\n \tSystem.out.println(Math.max(a*c, b*d));\n }",
"System.out.println(Math.max(a*c, b*d))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.max(a*c, b*d)",
"Math.max",
"Math",
"a*c",
"a",
"c",
"b*d",
"b",
"d",
"String[] args",
"args",
"// 文字列として入力を取得\n public static String gs() {\n return scanner.next();\n }",
"gs",
"{\n return scanner.next();\n }",
"return scanner.next();",
"scanner.next()",
"scanner.next",
"scanner",
"// intとして入力を取得\n public static int gi() {\n return Integer.parseInt(scanner.next());\n }",
"gi",
"{\n return Integer.parseInt(scanner.next());\n }",
"return Integer.parseInt(scanner.next());",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"// longとして入力を取得\n public static long gl() {\n return Long.parseLong(scanner.next());\n }",
"gl",
"{\n return Long.parseLong(scanner.next());\n }",
"return Long.parseLong(scanner.next());",
"Long.parseLong(scanner.next())",
"Long.parseLong",
"Long",
"scanner.next()",
"scanner.next",
"scanner",
"// doubleとして入力を取得\n public static double gd() {\n return Double.parseDouble(scanner.next());\n }",
"gd",
"{\n return Double.parseDouble(scanner.next());\n }",
"return Double.parseDouble(scanner.next());",
"Double.parseDouble(scanner.next())",
"Double.parseDouble",
"Double",
"scanner.next()",
"scanner.next",
"scanner",
"public class Main {\n\n static Scanner scanner;\n\n public static void main(String[] args) {\n scanner = new Scanner(System.in);\n\n long a=gl();\n long b=gl();\n long c=gl();\n long d=gl();\n\n\n if(a>=0 && c>=0) {\n System.out.println(b*d);\n } else if(a>=0 && d<0) {\n \tSystem.out.println(a*d);\n } else if(c>=0 && b<0) {\n \tSystem.out.println(c*b);\n } else if(a>=0) {\n \tSystem.out.println(b*d);\n } else if(c>=0) {\n \tSystem.out.println(b*d);\n } else {\n \tSystem.out.println(Math.max(a*c, b*d));\n }\n }\n\n // 文字列として入力を取得\n public static String gs() {\n return scanner.next();\n }\n\n // intとして入力を取得\n public static int gi() {\n return Integer.parseInt(scanner.next());\n }\n\n // longとして入力を取得\n public static long gl() {\n return Long.parseLong(scanner.next());\n }\n\n // doubleとして入力を取得\n public static double gd() {\n return Double.parseDouble(scanner.next());\n }\n}",
"public class Main {\n\n static Scanner scanner;\n\n public static void main(String[] args) {\n scanner = new Scanner(System.in);\n\n long a=gl();\n long b=gl();\n long c=gl();\n long d=gl();\n\n\n if(a>=0 && c>=0) {\n System.out.println(b*d);\n } else if(a>=0 && d<0) {\n \tSystem.out.println(a*d);\n } else if(c>=0 && b<0) {\n \tSystem.out.println(c*b);\n } else if(a>=0) {\n \tSystem.out.println(b*d);\n } else if(c>=0) {\n \tSystem.out.println(b*d);\n } else {\n \tSystem.out.println(Math.max(a*c, b*d));\n }\n }\n\n // 文字列として入力を取得\n public static String gs() {\n return scanner.next();\n }\n\n // intとして入力を取得\n public static int gi() {\n return Integer.parseInt(scanner.next());\n }\n\n // longとして入力を取得\n public static long gl() {\n return Long.parseLong(scanner.next());\n }\n\n // doubleとして入力を取得\n public static double gd() {\n return Double.parseDouble(scanner.next());\n }\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
static Scanner scanner;
public static void main(String[] args) {
scanner = new Scanner(System.in);
long a=gl();
long b=gl();
long c=gl();
long d=gl();
if(a>=0 && c>=0) {
System.out.println(b*d);
} else if(a>=0 && d<0) {
System.out.println(a*d);
} else if(c>=0 && b<0) {
System.out.println(c*b);
} else if(a>=0) {
System.out.println(b*d);
} else if(c>=0) {
System.out.println(b*d);
} else {
System.out.println(Math.max(a*c, b*d));
}
}
// 文字列として入力を取得
public static String gs() {
return scanner.next();
}
// intとして入力を取得
public static int gi() {
return Integer.parseInt(scanner.next());
}
// longとして入力を取得
public static long gl() {
return Long.parseLong(scanner.next());
}
// doubleとして入力を取得
public static double gd() {
return Double.parseDouble(scanner.next());
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
17,
0,
18,
13,
17,
2,
13,
13,
0,
18,
13,
17,
2,
13,
13,
0,
18,
13,
17,
2,
13,
13,
0,
18,
13,
17,
2,
13,
13,
41,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
103,
5
],
[
103,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
40,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
69,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
82,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
6,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
]
| [
"import java.util.*;\npublic class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long A = sc.nextInt();\n long B = sc.nextInt();\n long C = sc.nextInt();\n long D = sc.nextInt();\n long ancs[] = new long[4];\n \n ancs[0] = A*C;\n ancs[1] = A*D;\n ancs[2] = B*C;\n ancs[3] = B*D;\n\n long max = ancs[0];\n for(int i = 0;i < 4;i++){\n if(max < ancs[i]){\n max = ancs[i];\n }\n }\n \n System.out.println(max);\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 long A = sc.nextInt();\n long B = sc.nextInt();\n long C = sc.nextInt();\n long D = sc.nextInt();\n long ancs[] = new long[4];\n \n ancs[0] = A*C;\n ancs[1] = A*D;\n ancs[2] = B*C;\n ancs[3] = B*D;\n\n long max = ancs[0];\n for(int i = 0;i < 4;i++){\n if(max < ancs[i]){\n max = ancs[i];\n }\n }\n \n System.out.println(max);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long A = sc.nextInt();\n long B = sc.nextInt();\n long C = sc.nextInt();\n long D = sc.nextInt();\n long ancs[] = new long[4];\n \n ancs[0] = A*C;\n ancs[1] = A*D;\n ancs[2] = B*C;\n ancs[3] = B*D;\n\n long max = ancs[0];\n for(int i = 0;i < 4;i++){\n if(max < ancs[i]){\n max = ancs[i];\n }\n }\n \n System.out.println(max);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long A = sc.nextInt();\n long B = sc.nextInt();\n long C = sc.nextInt();\n long D = sc.nextInt();\n long ancs[] = new long[4];\n \n ancs[0] = A*C;\n ancs[1] = A*D;\n ancs[2] = B*C;\n ancs[3] = B*D;\n\n long max = ancs[0];\n for(int i = 0;i < 4;i++){\n if(max < ancs[i]){\n max = ancs[i];\n }\n }\n \n System.out.println(max);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long C = sc.nextInt();",
"C",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long D = sc.nextInt();",
"D",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long ancs[] = new long[4];",
"ancs",
"new long[4]",
"4",
"ancs[0] = A*C",
"ancs[0]",
"ancs",
"0",
"A*C",
"A",
"C",
"ancs[1] = A*D",
"ancs[1]",
"ancs",
"1",
"A*D",
"A",
"D",
"ancs[2] = B*C",
"ancs[2]",
"ancs",
"2",
"B*C",
"B",
"C",
"ancs[3] = B*D",
"ancs[3]",
"ancs",
"3",
"B*D",
"B",
"D",
"long max = ancs[0];",
"max",
"ancs[0]",
"ancs",
"0",
"for(int i = 0;i < 4;i++){\n if(max < ancs[i]){\n max = ancs[i];\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n if(max < ancs[i]){\n max = ancs[i];\n }\n }",
"{\n if(max < ancs[i]){\n max = ancs[i];\n }\n }",
"if(max < ancs[i]){\n max = ancs[i];\n }",
"max < ancs[i]",
"max",
"ancs[i]",
"ancs",
"i",
"{\n max = ancs[i];\n }",
"max = ancs[i]",
"max",
"ancs[i]",
"ancs",
"i",
"System.out.println(max)",
"System.out.println",
"System.out",
"System",
"System.out",
"max",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long A = sc.nextInt();\n long B = sc.nextInt();\n long C = sc.nextInt();\n long D = sc.nextInt();\n long ancs[] = new long[4];\n \n ancs[0] = A*C;\n ancs[1] = A*D;\n ancs[2] = B*C;\n ancs[3] = B*D;\n\n long max = ancs[0];\n for(int i = 0;i < 4;i++){\n if(max < ancs[i]){\n max = ancs[i];\n }\n }\n \n System.out.println(max);\n }\n}",
"public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n long A = sc.nextInt();\n long B = sc.nextInt();\n long C = sc.nextInt();\n long D = sc.nextInt();\n long ancs[] = new long[4];\n \n ancs[0] = A*C;\n ancs[1] = A*D;\n ancs[2] = B*C;\n ancs[3] = B*D;\n\n long max = ancs[0];\n for(int i = 0;i < 4;i++){\n if(max < ancs[i]){\n max = ancs[i];\n }\n }\n \n System.out.println(max);\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long A = sc.nextInt();
long B = sc.nextInt();
long C = sc.nextInt();
long D = sc.nextInt();
long ancs[] = new long[4];
ancs[0] = A*C;
ancs[1] = A*D;
ancs[2] = B*C;
ancs[3] = B*D;
long max = ancs[0];
for(int i = 0;i < 4;i++){
if(max < ancs[i]){
max = ancs[i];
}
}
System.out.println(max);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
17,
41,
13,
17,
14,
2,
13,
13,
30,
0,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
106,
5
],
[
106,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
55,
57
],
[
8,
58
],
[
58,
59
],
[
58,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
8,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
85,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
6,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tint ans=0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextInt();\n\t\tlong b = sc.nextInt();\n\t\tlong c = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\n\t\tlong ac = a*c;\n\t\tlong ad = a*d;\n\t\tlong bc = b*c;\n\t\tlong bd = b*d;\n\n\t\tlong i = 0;\n\t\tlong j = 0;\n\n\t\tif(ac > ad) {\n\t\t\ti = ac;\n\t\t}\n\t\telse {\n\t\t\ti = ad;\n\t\t}\n\n\t\tif(bc > bd) {\n\t\t\tj = bc;\n\t\t}\n\t\telse {\n\t\t\tj = bd;\n\t\t}\n\n\t\tif(i > j) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(j);\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\tint ans=0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextInt();\n\t\tlong b = sc.nextInt();\n\t\tlong c = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\n\t\tlong ac = a*c;\n\t\tlong ad = a*d;\n\t\tlong bc = b*c;\n\t\tlong bd = b*d;\n\n\t\tlong i = 0;\n\t\tlong j = 0;\n\n\t\tif(ac > ad) {\n\t\t\ti = ac;\n\t\t}\n\t\telse {\n\t\t\ti = ad;\n\t\t}\n\n\t\tif(bc > bd) {\n\t\t\tj = bc;\n\t\t}\n\t\telse {\n\t\t\tj = bd;\n\t\t}\n\n\t\tif(i > j) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(j);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tint ans=0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextInt();\n\t\tlong b = sc.nextInt();\n\t\tlong c = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\n\t\tlong ac = a*c;\n\t\tlong ad = a*d;\n\t\tlong bc = b*c;\n\t\tlong bd = b*d;\n\n\t\tlong i = 0;\n\t\tlong j = 0;\n\n\t\tif(ac > ad) {\n\t\t\ti = ac;\n\t\t}\n\t\telse {\n\t\t\ti = ad;\n\t\t}\n\n\t\tif(bc > bd) {\n\t\t\tj = bc;\n\t\t}\n\t\telse {\n\t\t\tj = bd;\n\t\t}\n\n\t\tif(i > j) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(j);\n\t\t}\n\t}",
"main",
"{\n\t\tint ans=0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextInt();\n\t\tlong b = sc.nextInt();\n\t\tlong c = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\n\t\tlong ac = a*c;\n\t\tlong ad = a*d;\n\t\tlong bc = b*c;\n\t\tlong bd = b*d;\n\n\t\tlong i = 0;\n\t\tlong j = 0;\n\n\t\tif(ac > ad) {\n\t\t\ti = ac;\n\t\t}\n\t\telse {\n\t\t\ti = ad;\n\t\t}\n\n\t\tif(bc > bd) {\n\t\t\tj = bc;\n\t\t}\n\t\telse {\n\t\t\tj = bd;\n\t\t}\n\n\t\tif(i > j) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(j);\n\t\t}\n\t}",
"int ans=0;",
"ans",
"0",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long ac = a*c;",
"ac",
"a*c",
"a",
"c",
"long ad = a*d;",
"ad",
"a*d",
"a",
"d",
"long bc = b*c;",
"bc",
"b*c",
"b",
"c",
"long bd = b*d;",
"bd",
"b*d",
"b",
"d",
"long i = 0;",
"i",
"0",
"long j = 0;",
"j",
"0",
"if(ac > ad) {\n\t\t\ti = ac;\n\t\t}\n\t\telse {\n\t\t\ti = ad;\n\t\t}",
"ac > ad",
"ac",
"ad",
"{\n\t\t\ti = ac;\n\t\t}",
"i = ac",
"i",
"ac",
"{\n\t\t\ti = ad;\n\t\t}",
"i = ad",
"i",
"ad",
"if(bc > bd) {\n\t\t\tj = bc;\n\t\t}\n\t\telse {\n\t\t\tj = bd;\n\t\t}",
"bc > bd",
"bc",
"bd",
"{\n\t\t\tj = bc;\n\t\t}",
"j = bc",
"j",
"bc",
"{\n\t\t\tj = bd;\n\t\t}",
"j = bd",
"j",
"bd",
"if(i > j) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(j);\n\t\t}",
"i > j",
"i",
"j",
"{\n\t\t\tSystem.out.println(i);\n\t\t}",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"{\n\t\t\tSystem.out.println(j);\n\t\t}",
"System.out.println(j)",
"System.out.println",
"System.out",
"System",
"System.out",
"j",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint ans=0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextInt();\n\t\tlong b = sc.nextInt();\n\t\tlong c = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\n\t\tlong ac = a*c;\n\t\tlong ad = a*d;\n\t\tlong bc = b*c;\n\t\tlong bd = b*d;\n\n\t\tlong i = 0;\n\t\tlong j = 0;\n\n\t\tif(ac > ad) {\n\t\t\ti = ac;\n\t\t}\n\t\telse {\n\t\t\ti = ad;\n\t\t}\n\n\t\tif(bc > bd) {\n\t\t\tj = bc;\n\t\t}\n\t\telse {\n\t\t\tj = bd;\n\t\t}\n\n\t\tif(i > j) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(j);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint ans=0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextInt();\n\t\tlong b = sc.nextInt();\n\t\tlong c = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\n\t\tlong ac = a*c;\n\t\tlong ad = a*d;\n\t\tlong bc = b*c;\n\t\tlong bd = b*d;\n\n\t\tlong i = 0;\n\t\tlong j = 0;\n\n\t\tif(ac > ad) {\n\t\t\ti = ac;\n\t\t}\n\t\telse {\n\t\t\ti = ad;\n\t\t}\n\n\t\tif(bc > bd) {\n\t\t\tj = bc;\n\t\t}\n\t\telse {\n\t\t\tj = bd;\n\t\t}\n\n\t\tif(i > j) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(j);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int ans=0;
Scanner sc = new Scanner(System.in);
long a = sc.nextInt();
long b = sc.nextInt();
long c = sc.nextInt();
long d = sc.nextInt();
long ac = a*c;
long ad = a*d;
long bc = b*c;
long bd = b*d;
long i = 0;
long j = 0;
if(ac > ad) {
i = ac;
}
else {
i = ad;
}
if(bc > bd) {
j = bc;
}
else {
j = bd;
}
if(i > j) {
System.out.println(i);
}
else {
System.out.println(j);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
17,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
23,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
13,
4,
13,
4,
13,
13,
13,
13,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
41,
13,
17,
4,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
40,
13,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
23,
13,
12,
13,
30,
4,
13,
13,
13,
4,
18,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
18,
13,
13,
41,
13,
2,
13,
4,
18,
13,
2,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
4,
18,
18,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
8,
2,
13,
17,
13,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
13,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
17,
2,
17,
4,
13,
2,
13,
2,
13,
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,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
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
],
[
470,
11
],
[
470,
12
],
[
12,
13
],
[
470,
14
],
[
14,
15
],
[
470,
16
],
[
16,
17
],
[
16,
18
],
[
470,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
29,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
23,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
19,
44
],
[
44,
45
],
[
19,
46
],
[
46,
47
],
[
19,
48
],
[
48,
49
],
[
19,
50
],
[
50,
51
],
[
470,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
54,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
54,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
54,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
73,
76
],
[
73,
77
],
[
73,
78
],
[
470,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
81,
88
],
[
88,
89
],
[
88,
90
],
[
81,
91
],
[
91,
92
],
[
81,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
81,
98
],
[
98,
99
],
[
99,
100
],
[
81,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
110,
114
],
[
109,
115
],
[
81,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
79,
121
],
[
121,
122
],
[
470,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
126,
129
],
[
125,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
123,
134
],
[
134,
135
],
[
123,
136
],
[
136,
137
],
[
470,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
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
],
[
159,
161
],
[
156,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
166,
169
],
[
169,
170
],
[
169,
171
],
[
156,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
176,
177
],
[
176,
178
],
[
156,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
138,
184
],
[
184,
185
],
[
138,
186
],
[
186,
187
],
[
470,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
191,
194
],
[
188,
195
],
[
195,
196
],
[
470,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
200,
203
],
[
197,
204
],
[
204,
205
],
[
470,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
209,
212
],
[
208,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
206,
218
],
[
218,
219
],
[
470,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
470,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
470,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
470,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
470,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
470,
255
],
[
255,
256
],
[
255,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
259,
263
],
[
259,
264
],
[
264,
265
],
[
264,
266
],
[
264,
267
],
[
267,
268
],
[
267,
269
],
[
255,
270
],
[
270,
271
],
[
255,
272
],
[
272,
273
],
[
470,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
279,
281
],
[
278,
282
],
[
278,
283
],
[
283,
284
],
[
283,
285
],
[
283,
286
],
[
286,
287
],
[
286,
288
],
[
274,
289
],
[
289,
290
],
[
274,
291
],
[
291,
292
],
[
470,
293
],
[
293,
294
],
[
293,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
297,
301
],
[
297,
302
],
[
302,
303
],
[
302,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
306,
308
],
[
308,
309
],
[
308,
310
],
[
293,
311
],
[
311,
312
],
[
470,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
316,
317
],
[
316,
318
],
[
315,
320
],
[
320,
321
],
[
321,
322
],
[
322,
323
],
[
322,
324
],
[
320,
325
],
[
325,
326
],
[
325,
327
],
[
320,
328
],
[
328,
329
],
[
329,
330
],
[
320,
331
],
[
332,
332
],
[
332,
333
],
[
333,
334
],
[
334,
335
],
[
334,
336
],
[
333,
337
],
[
337,
338
],
[
315,
339
],
[
339,
340
],
[
313,
341
],
[
341,
342
],
[
470,
343
],
[
343,
344
],
[
343,
345
],
[
345,
346
],
[
346,
347
],
[
346,
348
],
[
345,
350
],
[
350,
351
],
[
351,
352
],
[
352,
353
],
[
352,
354
],
[
350,
355
],
[
355,
356
],
[
355,
357
],
[
350,
358
],
[
358,
359
],
[
359,
360
],
[
350,
361
],
[
362,
362
],
[
362,
363
],
[
363,
364
],
[
364,
365
],
[
364,
366
],
[
363,
367
],
[
367,
368
],
[
345,
369
],
[
369,
370
],
[
343,
371
],
[
371,
372
],
[
470,
373
],
[
373,
374
],
[
373,
375
],
[
375,
376
],
[
373,
377
],
[
377,
378
],
[
373,
379
],
[
379,
380
],
[
379,
381
],
[
381,
382
],
[
382,
383
],
[
382,
384
],
[
373,
385
],
[
385,
386
],
[
385,
387
],
[
387,
388
],
[
388,
389
],
[
388,
390
],
[
385,
391
],
[
391,
392
],
[
373,
393
],
[
393,
394
],
[
393,
395
],
[
395,
396
],
[
396,
397
],
[
397,
398
],
[
398,
399
],
[
398,
400
],
[
397,
401
],
[
401,
402
],
[
402,
403
],
[
403,
404
],
[
396,
405
],
[
405,
406
],
[
406,
407
],
[
407,
408
],
[
407,
409
],
[
409,
410
],
[
410,
411
],
[
411,
412
],
[
406,
413
],
[
413,
414
],
[
414,
415
],
[
414,
416
],
[
395,
417
],
[
417,
418
],
[
418,
419
],
[
419,
420
],
[
373,
421
],
[
421,
422
],
[
421,
423
],
[
423,
424
],
[
424,
425
],
[
425,
426
],
[
426,
427
],
[
425,
428
],
[
428,
429
],
[
373,
430
],
[
430,
431
],
[
430,
432
],
[
432,
433
],
[
433,
434
],
[
434,
435
],
[
435,
436
],
[
434,
437
],
[
437,
438
],
[
373,
439
],
[
439,
440
],
[
439,
441
],
[
441,
442
],
[
442,
443
],
[
443,
444
],
[
444,
445
],
[
443,
446
],
[
446,
447
],
[
373,
448
],
[
448,
449
],
[
448,
450
],
[
450,
451
],
[
451,
452
],
[
451,
453
],
[
450,
454
],
[
454,
455
],
[
455,
456
],
[
455,
457
],
[
457,
458
],
[
458,
459
],
[
459,
460
],
[
454,
461
],
[
461,
462
],
[
462,
463
],
[
462,
464
],
[
464,
465
],
[
465,
466
],
[
450,
467
],
[
467,
468
],
[
0,
469
],
[
469,
470
],
[
469,
471
]
]
| [
"import java.util.*;\nimport java.io.*;\nimport java.math.*;\n/*\njavac Main.java\njava Main <input.txt> output.txt\n*/\n\npublic class Main\n{ \n static long max(long a,long b,long c,long d)\n {\n return Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d));\n }\n public static void process()throws IOException\n {\n long a=nl(),b=nl(),c=nl(),d=nl();\n pn(max(a,b,c,d));\n }\n \n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n //PrintWriter out=new PrintWriter(\"output\");\n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n //if(!oj) sc=new AnotherReader(100);\n\n //int i=1;\n //int T=ni(); while(T-->0)\n //{\n //p(\"Case #\"+i+\": \");\n process();\n //i++;\n //}\n long s = System.currentTimeMillis();\n \n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }\n static void sort(long arr[],int n)\n {\n shuffle(arr,n);\n Arrays.sort(arr);\n }\n static void shuffle(long arr[],int n)\n {\n Random r=new Random();\n for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }\n }\n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);System.out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static String nn()throws IOException{return sc.next();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n static int[] iarr(int N)throws IOException{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}\n static long[] larr(int N)throws IOException{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}\n static boolean multipleTC=false;\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}\n ",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main\n{ \n static long max(long a,long b,long c,long d)\n {\n return Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d));\n }\n public static void process()throws IOException\n {\n long a=nl(),b=nl(),c=nl(),d=nl();\n pn(max(a,b,c,d));\n }\n \n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n //PrintWriter out=new PrintWriter(\"output\");\n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n //if(!oj) sc=new AnotherReader(100);\n\n //int i=1;\n //int T=ni(); while(T-->0)\n //{\n //p(\"Case #\"+i+\": \");\n process();\n //i++;\n //}\n long s = System.currentTimeMillis();\n \n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }\n static void sort(long arr[],int n)\n {\n shuffle(arr,n);\n Arrays.sort(arr);\n }\n static void shuffle(long arr[],int n)\n {\n Random r=new Random();\n for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }\n }\n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);System.out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static String nn()throws IOException{return sc.next();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n static int[] iarr(int N)throws IOException{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}\n static long[] larr(int N)throws IOException{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}\n static boolean multipleTC=false;\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"Main",
"static AnotherReader sc;",
"sc",
"static PrintWriter out;",
"out",
"static boolean multipleTC=false;",
"multipleTC",
"false",
"static long max(long a,long b,long c,long d)\n {\n return Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d));\n }",
"max",
"{\n return Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d));\n }",
"return Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d));",
"Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d))",
"Math.max",
"Math",
"Math.max(a*c,a*d)",
"Math.max",
"Math",
"a*c",
"a",
"c",
"a*d",
"a",
"d",
"Math.max(b*c,b*d)",
"Math.max",
"Math",
"b*c",
"b",
"c",
"b*d",
"b",
"d",
"long a",
"a",
"long b",
"b",
"long c",
"c",
"long d",
"d",
"public static void process()throws IOException\n {\n long a=nl(),b=nl(),c=nl(),d=nl();\n pn(max(a,b,c,d));\n }",
"process",
"{\n long a=nl(),b=nl(),c=nl(),d=nl();\n pn(max(a,b,c,d));\n }",
"long a=nl()",
"a",
"nl()",
"nl",
"b=nl()",
"b",
"nl()",
"nl",
"c=nl()",
"c",
"nl()",
"nl",
"d=nl();",
"d",
"nl()",
"nl",
"pn(max(a,b,c,d))",
"pn",
"max(a,b,c,d)",
"max",
"a",
"b",
"c",
"d",
"public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n //PrintWriter out=new PrintWriter(\"output\");\n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n //if(!oj) sc=new AnotherReader(100);\n\n //int i=1;\n //int T=ni(); while(T-->0)\n //{\n //p(\"Case #\"+i+\": \");\n process();\n //i++;\n //}\n long s = System.currentTimeMillis();\n \n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }",
"main",
"{\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n //PrintWriter out=new PrintWriter(\"output\");\n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n //if(!oj) sc=new AnotherReader(100);\n\n //int i=1;\n //int T=ni(); while(T-->0)\n //{\n //p(\"Case #\"+i+\": \");\n process();\n //i++;\n //}\n long s = System.currentTimeMillis();\n \n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"sc=new AnotherReader()",
"sc",
"new AnotherReader()",
"boolean oj = true;",
"oj",
"true",
"process()",
"process",
"long s = System.currentTimeMillis();",
"s",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"out.flush()",
"out.flush",
"out",
"if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");",
"!oj",
"oj",
"System.out.println(System.currentTimeMillis()-s+\"ms\")",
"System.out.println",
"System.out",
"System",
"System.out",
"System.currentTimeMillis()-s+\"ms\"",
"System.currentTimeMillis()-s",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"s",
"\"ms\"",
"System.out.close()",
"System.out.close",
"System.out",
"System",
"System.out",
"String[]args",
"args",
"static void sort(long arr[],int n)\n {\n shuffle(arr,n);\n Arrays.sort(arr);\n }",
"sort",
"{\n shuffle(arr,n);\n Arrays.sort(arr);\n }",
"shuffle(arr,n)",
"shuffle",
"arr",
"n",
"Arrays.sort(arr)",
"Arrays.sort",
"Arrays",
"arr",
"long arr[]",
"arr",
"int n",
"n",
"static void shuffle(long arr[],int n)\n {\n Random r=new Random();\n for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }\n }",
"shuffle",
"{\n Random r=new Random();\n for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }\n }",
"Random r=new Random();",
"r",
"new Random()",
"for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }",
"{\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }",
"long temp=arr[i];",
"temp",
"arr[i]",
"arr",
"i",
"int pos=i+r.nextInt(n-i);",
"pos",
"i+r.nextInt(n-i)",
"i",
"r.nextInt(n-i)",
"r.nextInt",
"r",
"n-i",
"n",
"i",
"arr[i]=arr[pos]",
"arr[i]",
"arr",
"i",
"arr[pos]",
"arr",
"pos",
"arr[pos]=temp",
"arr[pos]",
"arr",
"pos",
"temp",
"long arr[]",
"arr",
"int n",
"n",
"static void pn(Object o){out.println(o);}",
"pn",
"{out.println(o);}",
"out.println(o)",
"out.println",
"out",
"o",
"Object o",
"o",
"static void p(Object o){out.print(o);}",
"p",
"{out.print(o);}",
"out.print(o)",
"out.print",
"out",
"o",
"Object o",
"o",
"static void pni(Object o){out.println(o);System.out.flush();}",
"pni",
"{out.println(o);System.out.flush();}",
"out.println(o)",
"out.println",
"out",
"o",
"System.out.flush()",
"System.out.flush",
"System.out",
"System",
"System.out",
"Object o",
"o",
"static int ni()throws IOException{return sc.nextInt();}",
"ni",
"{return sc.nextInt();}",
"return sc.nextInt();",
"sc.nextInt()",
"sc.nextInt",
"sc",
"static long nl()throws IOException{return sc.nextLong();}",
"nl",
"{return sc.nextLong();}",
"return sc.nextLong();",
"sc.nextLong()",
"sc.nextLong",
"sc",
"static double nd()throws IOException{return sc.nextDouble();}",
"nd",
"{return sc.nextDouble();}",
"return sc.nextDouble();",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"static String nln()throws IOException{return sc.nextLine();}",
"nln",
"{return sc.nextLine();}",
"return sc.nextLine();",
"sc.nextLine()",
"sc.nextLine",
"sc",
"static String nn()throws IOException{return sc.next();}",
"nn",
"{return sc.next();}",
"return sc.next();",
"sc.next()",
"sc.next",
"sc",
"static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}",
"gcd",
"{return (b==0)?a:gcd(b,a%b);}",
"return (b==0)?a:gcd(b,a%b);",
"(b==0)?a:gcd(b,a%b)",
"(b==0)",
"b",
"0",
"a",
"gcd(b,a%b)",
"gcd",
"b",
"a%b",
"a",
"b",
"long a",
"a",
"long b",
"b",
"static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}",
"gcd",
"{return (b==0)?a:gcd(b,a%b);}",
"return (b==0)?a:gcd(b,a%b);",
"(b==0)?a:gcd(b,a%b)",
"(b==0)",
"b",
"0",
"a",
"gcd(b,a%b)",
"gcd",
"b",
"a%b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}",
"bit",
"{return (n==0)?0:(1+bit(n&(n-1)));}",
"return (n==0)?0:(1+bit(n&(n-1)));",
"(n==0)?0:(1+bit(n&(n-1)))",
"(n==0)",
"n",
"0",
"0",
"(1+bit(n&(n-1)))",
"1",
"bit(n&(n-1))",
"bit",
"n&(n-1)",
"n",
"(n-1)",
"n",
"1",
"long n",
"n",
"static int[] iarr(int N)throws IOException{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}",
"iarr",
"{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}",
"int[]ARR=new int[N];",
"ARR",
"new int[N]",
"N",
"for(int i=0;i<N;i++){ARR[i]=ni();}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{ARR[i]=ni();}",
"{ARR[i]=ni();}",
"ARR[i]=ni()",
"ARR[i]",
"ARR",
"i",
"ni()",
"ni",
"return ARR;",
"ARR",
"int N",
"N",
"static long[] larr(int N)throws IOException{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}",
"larr",
"{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}",
"long[]ARR=new long[N];",
"ARR",
"new long[N]",
"N",
"for(int i=0;i<N;i++){ARR[i]=nl();}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{ARR[i]=nl();}",
"{ARR[i]=nl();}",
"ARR[i]=nl()",
"ARR[i]",
"ARR",
"i",
"nl()",
"nl",
"return ARR;",
"ARR",
"int N",
"N",
" static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}",
"AnotherReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}",
"AnotherReader",
"{\n br=new BufferedReader(new InputStreamReader(System.in));}",
"br=new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}",
"AnotherReader",
"{\n br = new BufferedReader(new FileReader(\"input.txt\"));}",
"br = new BufferedReader(new FileReader(\"input.txt\"))",
"br",
"new BufferedReader(new FileReader(\"input.txt\"))",
"int a",
"a",
"String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); }",
"while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}",
"try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }",
"catch (IOException e){ e.printStackTrace(); }",
"IOException e",
"{ e.printStackTrace(); }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() throws IOException{\n return Integer.parseInt(next());}",
"nextInt",
"{\n return Integer.parseInt(next());}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() throws IOException\n {return Long.parseLong(next());}",
"nextLong",
"{return Long.parseLong(next());}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble()throws IOException { return Double.parseDouble(next()); }",
"nextDouble",
"{ return Double.parseDouble(next()); }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}",
"nextLine",
"{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}",
"String str = \"\";",
"str",
"\"\"",
"try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();}",
"catch (IOException e){\n e.printStackTrace();}",
"IOException e",
"{\n e.printStackTrace();}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main\n{ \n static long max(long a,long b,long c,long d)\n {\n return Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d));\n }\n public static void process()throws IOException\n {\n long a=nl(),b=nl(),c=nl(),d=nl();\n pn(max(a,b,c,d));\n }\n \n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n //PrintWriter out=new PrintWriter(\"output\");\n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n //if(!oj) sc=new AnotherReader(100);\n\n //int i=1;\n //int T=ni(); while(T-->0)\n //{\n //p(\"Case #\"+i+\": \");\n process();\n //i++;\n //}\n long s = System.currentTimeMillis();\n \n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }\n static void sort(long arr[],int n)\n {\n shuffle(arr,n);\n Arrays.sort(arr);\n }\n static void shuffle(long arr[],int n)\n {\n Random r=new Random();\n for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }\n }\n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);System.out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static String nn()throws IOException{return sc.next();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n static int[] iarr(int N)throws IOException{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}\n static long[] larr(int N)throws IOException{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}\n static boolean multipleTC=false;\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"public class Main\n{ \n static long max(long a,long b,long c,long d)\n {\n return Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d));\n }\n public static void process()throws IOException\n {\n long a=nl(),b=nl(),c=nl(),d=nl();\n pn(max(a,b,c,d));\n }\n \n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n //PrintWriter out=new PrintWriter(\"output\");\n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n //if(!oj) sc=new AnotherReader(100);\n\n //int i=1;\n //int T=ni(); while(T-->0)\n //{\n //p(\"Case #\"+i+\": \");\n process();\n //i++;\n //}\n long s = System.currentTimeMillis();\n \n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }\n static void sort(long arr[],int n)\n {\n shuffle(arr,n);\n Arrays.sort(arr);\n }\n static void shuffle(long arr[],int n)\n {\n Random r=new Random();\n for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }\n }\n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);System.out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static String nn()throws IOException{return sc.next();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n static int[] iarr(int N)throws IOException{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}\n static long[] larr(int N)throws IOException{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}\n static boolean multipleTC=false;\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"Main"
]
| import java.util.*;
import java.io.*;
import java.math.*;
/*
javac Main.java
java Main <input.txt> output.txt
*/
public class Main
{
static long max(long a,long b,long c,long d)
{
return Math.max(Math.max(a*c,a*d),Math.max(b*c,b*d));
}
public static void process()throws IOException
{
long a=nl(),b=nl(),c=nl(),d=nl();
pn(max(a,b,c,d));
}
static AnotherReader sc;
static PrintWriter out;
public static void main(String[]args)throws IOException
{
out = new PrintWriter(System.out);
sc=new AnotherReader();
boolean oj = true;
//PrintWriter out=new PrintWriter("output");
//oj = System.getProperty("ONLINE_JUDGE") != null;
//if(!oj) sc=new AnotherReader(100);
//int i=1;
//int T=ni(); while(T-->0)
//{
//p("Case #"+i+": ");
process();
//i++;
//}
long s = System.currentTimeMillis();
out.flush();
if(!oj)
System.out.println(System.currentTimeMillis()-s+"ms");
System.out.close();
}
static void sort(long arr[],int n)
{
shuffle(arr,n);
Arrays.sort(arr);
}
static void shuffle(long arr[],int n)
{
Random r=new Random();
for(int i=0;i<n;i++)
{
long temp=arr[i];
int pos=i+r.nextInt(n-i);
arr[i]=arr[pos];
arr[pos]=temp;
}
}
static void pn(Object o){out.println(o);}
static void p(Object o){out.print(o);}
static void pni(Object o){out.println(o);System.out.flush();}
static int ni()throws IOException{return sc.nextInt();}
static long nl()throws IOException{return sc.nextLong();}
static double nd()throws IOException{return sc.nextDouble();}
static String nln()throws IOException{return sc.nextLine();}
static String nn()throws IOException{return sc.next();}
static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}
static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}
static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}
static int[] iarr(int N)throws IOException{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}
static long[] larr(int N)throws IOException{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}
static boolean multipleTC=false;
/////////////////////////////////////////////////////////////////////////////////////////////////////////
static class AnotherReader{BufferedReader br; StringTokenizer st;
AnotherReader()throws FileNotFoundException{
br=new BufferedReader(new InputStreamReader(System.in));}
AnotherReader(int a)throws FileNotFoundException{
br = new BufferedReader(new FileReader("input.txt"));}
String next()throws IOException{
while (st == null || !st.hasMoreElements()) {try{
st = new StringTokenizer(br.readLine());}
catch (IOException e){ e.printStackTrace(); }}
return st.nextToken(); } int nextInt() throws IOException{
return Integer.parseInt(next());}
long nextLong() throws IOException
{return Long.parseLong(next());}
double nextDouble()throws IOException { return Double.parseDouble(next()); }
String nextLine() throws IOException{ String str = ""; try{
str = br.readLine();} catch (IOException e){
e.printStackTrace();} return str;}}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
13,
13,
14,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
30,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
2,
13,
13,
30,
0,
13,
2,
13,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
13,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
176,
5
],
[
176,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
35,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
49,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
63,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
77,
91
],
[
91,
92
],
[
94,
93
],
[
101,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
101,
101
],
[
101,
102
],
[
101,
103
],
[
94,
104
],
[
104,
105
],
[
104,
106
],
[
91,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
113,
115
],
[
108,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
119,
121
],
[
108,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
125,
127
],
[
91,
128
],
[
128,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
134,
136
],
[
130,
137
],
[
137,
138
],
[
137,
139
],
[
128,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
143,
145
],
[
128,
146
],
[
146,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
152,
153
],
[
152,
154
],
[
148,
155
],
[
155,
156
],
[
155,
157
],
[
146,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
161,
163
],
[
8,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
164,
169
],
[
8,
170
],
[
170,
171
],
[
171,
172
],
[
6,
173
],
[
173,
174
],
[
0,
175
],
[
175,
176
],
[
175,
177
]
]
| [
"\nimport java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tlong a=sc.nextLong();\n\t\tlong b=sc.nextLong();\n\t\tlong c=sc.nextLong();\n\t\tlong d=sc.nextLong();\n\t\t\n\t\tlong x=0;\n\t\t\n\t\tif(b<=0 && c<=0) {\n\t\t\tx=a*c;\n\t\t}\n\t\telse if(a>=0&&d>=0){\n\t\t\tx=b*d;\n\t\t}\n\t\telse if(b<=0&&c>=0) {\n\t\t\tx=b*c;\n\t\t}\n\t\telse if(a>=0&&d<=0){\n\t\t\tx=a*d;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c<=0&&d>=0) {\n\t\t\tif(a*c>=b*d) {\n\t\t\t\tx=a*c;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tx=b*d;\n\t\t\t}\n\t\t}\n\t\telse if(a<=0&&b>=0&&d<=0) {\n\t\t\tx=a*c;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c>=0) {\n\t\t\tx=b*d;\n\t\t}\n\t\tSystem.out.println(x);\n\t\tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tlong a=sc.nextLong();\n\t\tlong b=sc.nextLong();\n\t\tlong c=sc.nextLong();\n\t\tlong d=sc.nextLong();\n\t\t\n\t\tlong x=0;\n\t\t\n\t\tif(b<=0 && c<=0) {\n\t\t\tx=a*c;\n\t\t}\n\t\telse if(a>=0&&d>=0){\n\t\t\tx=b*d;\n\t\t}\n\t\telse if(b<=0&&c>=0) {\n\t\t\tx=b*c;\n\t\t}\n\t\telse if(a>=0&&d<=0){\n\t\t\tx=a*d;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c<=0&&d>=0) {\n\t\t\tif(a*c>=b*d) {\n\t\t\t\tx=a*c;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tx=b*d;\n\t\t\t}\n\t\t}\n\t\telse if(a<=0&&b>=0&&d<=0) {\n\t\t\tx=a*c;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c>=0) {\n\t\t\tx=b*d;\n\t\t}\n\t\tSystem.out.println(x);\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tlong a=sc.nextLong();\n\t\tlong b=sc.nextLong();\n\t\tlong c=sc.nextLong();\n\t\tlong d=sc.nextLong();\n\t\t\n\t\tlong x=0;\n\t\t\n\t\tif(b<=0 && c<=0) {\n\t\t\tx=a*c;\n\t\t}\n\t\telse if(a>=0&&d>=0){\n\t\t\tx=b*d;\n\t\t}\n\t\telse if(b<=0&&c>=0) {\n\t\t\tx=b*c;\n\t\t}\n\t\telse if(a>=0&&d<=0){\n\t\t\tx=a*d;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c<=0&&d>=0) {\n\t\t\tif(a*c>=b*d) {\n\t\t\t\tx=a*c;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tx=b*d;\n\t\t\t}\n\t\t}\n\t\telse if(a<=0&&b>=0&&d<=0) {\n\t\t\tx=a*c;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c>=0) {\n\t\t\tx=b*d;\n\t\t}\n\t\tSystem.out.println(x);\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tlong a=sc.nextLong();\n\t\tlong b=sc.nextLong();\n\t\tlong c=sc.nextLong();\n\t\tlong d=sc.nextLong();\n\t\t\n\t\tlong x=0;\n\t\t\n\t\tif(b<=0 && c<=0) {\n\t\t\tx=a*c;\n\t\t}\n\t\telse if(a>=0&&d>=0){\n\t\t\tx=b*d;\n\t\t}\n\t\telse if(b<=0&&c>=0) {\n\t\t\tx=b*c;\n\t\t}\n\t\telse if(a>=0&&d<=0){\n\t\t\tx=a*d;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c<=0&&d>=0) {\n\t\t\tif(a*c>=b*d) {\n\t\t\t\tx=a*c;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tx=b*d;\n\t\t\t}\n\t\t}\n\t\telse if(a<=0&&b>=0&&d<=0) {\n\t\t\tx=a*c;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c>=0) {\n\t\t\tx=b*d;\n\t\t}\n\t\tSystem.out.println(x);\n\t\tsc.close();\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a=sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b=sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c=sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d=sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long x=0;",
"x",
"0",
"if(b<=0 && c<=0) {\n\t\t\tx=a*c;\n\t\t}\n\t\telse if(a>=0&&d>=0){\n\t\t\tx=b*d;\n\t\t}\n\t\telse if(b<=0&&c>=0) {\n\t\t\tx=b*c;\n\t\t}\n\t\telse if(a>=0&&d<=0){\n\t\t\tx=a*d;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c<=0&&d>=0) {\n\t\t\tif(a*c>=b*d) {\n\t\t\t\tx=a*c;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tx=b*d;\n\t\t\t}\n\t\t}\n\t\telse if(a<=0&&b>=0&&d<=0) {\n\t\t\tx=a*c;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c>=0) {\n\t\t\tx=b*d;\n\t\t}",
"b<=0 && c<=0",
"b<=0",
"b",
"0",
"c<=0",
"c",
"0",
"{\n\t\t\tx=a*c;\n\t\t}",
"x=a*c",
"x",
"a*c",
"a",
"c",
"if(a>=0&&d>=0){\n\t\t\tx=b*d;\n\t\t}\n\t\telse if(b<=0&&c>=0) {\n\t\t\tx=b*c;\n\t\t}\n\t\telse if(a>=0&&d<=0){\n\t\t\tx=a*d;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c<=0&&d>=0) {\n\t\t\tif(a*c>=b*d) {\n\t\t\t\tx=a*c;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tx=b*d;\n\t\t\t}\n\t\t}\n\t\telse if(a<=0&&b>=0&&d<=0) {\n\t\t\tx=a*c;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c>=0) {\n\t\t\tx=b*d;\n\t\t}",
"a>=0&&d>=0",
"a>=0",
"a",
"0",
"d>=0",
"d",
"0",
"{\n\t\t\tx=b*d;\n\t\t}",
"x=b*d",
"x",
"b*d",
"b",
"d",
"if(b<=0&&c>=0) {\n\t\t\tx=b*c;\n\t\t}\n\t\telse if(a>=0&&d<=0){\n\t\t\tx=a*d;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c<=0&&d>=0) {\n\t\t\tif(a*c>=b*d) {\n\t\t\t\tx=a*c;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tx=b*d;\n\t\t\t}\n\t\t}\n\t\telse if(a<=0&&b>=0&&d<=0) {\n\t\t\tx=a*c;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c>=0) {\n\t\t\tx=b*d;\n\t\t}",
"b<=0&&c>=0",
"b<=0",
"b",
"0",
"c>=0",
"c",
"0",
"{\n\t\t\tx=b*c;\n\t\t}",
"x=b*c",
"x",
"b*c",
"b",
"c",
"if(a>=0&&d<=0){\n\t\t\tx=a*d;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c<=0&&d>=0) {\n\t\t\tif(a*c>=b*d) {\n\t\t\t\tx=a*c;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tx=b*d;\n\t\t\t}\n\t\t}\n\t\telse if(a<=0&&b>=0&&d<=0) {\n\t\t\tx=a*c;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c>=0) {\n\t\t\tx=b*d;\n\t\t}",
"a>=0&&d<=0",
"a>=0",
"a",
"0",
"d<=0",
"d",
"0",
"{\n\t\t\tx=a*d;\n\t\t}",
"x=a*d",
"x",
"a*d",
"a",
"d",
"if(a<=0&&b>=0&&c<=0&&d>=0) {\n\t\t\tif(a*c>=b*d) {\n\t\t\t\tx=a*c;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tx=b*d;\n\t\t\t}\n\t\t}\n\t\telse if(a<=0&&b>=0&&d<=0) {\n\t\t\tx=a*c;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c>=0) {\n\t\t\tx=b*d;\n\t\t}",
"a<=0&&b>=0&&c<=0&&d>=0",
"c<=0",
"a<=0&&b>=0&&c<=0&&d>=0",
"a<=0",
"a",
"0",
"b>=0",
"b",
"0",
"c<=0",
"c",
"0",
"d>=0",
"d",
"0",
"{\n\t\t\tif(a*c>=b*d) {\n\t\t\t\tx=a*c;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tx=b*d;\n\t\t\t}\n\t\t}",
"if(a*c>=b*d) {\n\t\t\t\tx=a*c;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tx=b*d;\n\t\t\t}",
"a*c>=b*d",
"a*c",
"a",
"c",
"b*d",
"b",
"d",
"{\n\t\t\t\tx=a*c;\n\t\t\t}",
"x=a*c",
"x",
"a*c",
"a",
"c",
"{\n\t\t\t\tx=b*d;\n\t\t\t}",
"x=b*d",
"x",
"b*d",
"b",
"d",
"if(a<=0&&b>=0&&d<=0) {\n\t\t\tx=a*c;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c>=0) {\n\t\t\tx=b*d;\n\t\t}",
"a<=0&&b>=0&&d<=0",
"a<=0&&b>=0&&d<=0",
"a<=0",
"a",
"0",
"b>=0",
"b",
"0",
"d<=0",
"d",
"0",
"{\n\t\t\tx=a*c;\n\t\t}",
"x=a*c",
"x",
"a*c",
"a",
"c",
"if(a<=0&&b>=0&&c>=0) {\n\t\t\tx=b*d;\n\t\t}",
"a<=0&&b>=0&&c>=0",
"a<=0&&b>=0&&c>=0",
"a<=0",
"a",
"0",
"b>=0",
"b",
"0",
"c>=0",
"c",
"0",
"{\n\t\t\tx=b*d;\n\t\t}",
"x=b*d",
"x",
"b*d",
"b",
"d",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"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\tlong a=sc.nextLong();\n\t\tlong b=sc.nextLong();\n\t\tlong c=sc.nextLong();\n\t\tlong d=sc.nextLong();\n\t\t\n\t\tlong x=0;\n\t\t\n\t\tif(b<=0 && c<=0) {\n\t\t\tx=a*c;\n\t\t}\n\t\telse if(a>=0&&d>=0){\n\t\t\tx=b*d;\n\t\t}\n\t\telse if(b<=0&&c>=0) {\n\t\t\tx=b*c;\n\t\t}\n\t\telse if(a>=0&&d<=0){\n\t\t\tx=a*d;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c<=0&&d>=0) {\n\t\t\tif(a*c>=b*d) {\n\t\t\t\tx=a*c;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tx=b*d;\n\t\t\t}\n\t\t}\n\t\telse if(a<=0&&b>=0&&d<=0) {\n\t\t\tx=a*c;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c>=0) {\n\t\t\tx=b*d;\n\t\t}\n\t\tSystem.out.println(x);\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tlong a=sc.nextLong();\n\t\tlong b=sc.nextLong();\n\t\tlong c=sc.nextLong();\n\t\tlong d=sc.nextLong();\n\t\t\n\t\tlong x=0;\n\t\t\n\t\tif(b<=0 && c<=0) {\n\t\t\tx=a*c;\n\t\t}\n\t\telse if(a>=0&&d>=0){\n\t\t\tx=b*d;\n\t\t}\n\t\telse if(b<=0&&c>=0) {\n\t\t\tx=b*c;\n\t\t}\n\t\telse if(a>=0&&d<=0){\n\t\t\tx=a*d;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c<=0&&d>=0) {\n\t\t\tif(a*c>=b*d) {\n\t\t\t\tx=a*c;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tx=b*d;\n\t\t\t}\n\t\t}\n\t\telse if(a<=0&&b>=0&&d<=0) {\n\t\t\tx=a*c;\n\t\t}\n\t\telse if(a<=0&&b>=0&&c>=0) {\n\t\t\tx=b*d;\n\t\t}\n\t\tSystem.out.println(x);\n\t\tsc.close();\n\t}\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
long a=sc.nextLong();
long b=sc.nextLong();
long c=sc.nextLong();
long d=sc.nextLong();
long x=0;
if(b<=0 && c<=0) {
x=a*c;
}
else if(a>=0&&d>=0){
x=b*d;
}
else if(b<=0&&c>=0) {
x=b*c;
}
else if(a>=0&&d<=0){
x=a*d;
}
else if(a<=0&&b>=0&&c<=0&&d>=0) {
if(a*c>=b*d) {
x=a*c;
}
else {
x=b*d;
}
}
else if(a<=0&&b>=0&&d<=0) {
x=a*c;
}
else if(a<=0&&b>=0&&c>=0) {
x=b*d;
}
System.out.println(x);
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
30,
41,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
20,
41,
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,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
303,
8
],
[
303,
9
],
[
9,
10
],
[
9,
11
],
[
303,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
14,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
14,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
51,
53
],
[
38,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
63,
65
],
[
60,
66
],
[
66,
67
],
[
66,
68
],
[
38,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
75,
77
],
[
72,
78
],
[
78,
79
],
[
78,
80
],
[
69,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
12,
87
],
[
87,
88
],
[
303,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
91,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
109,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
118,
120
],
[
109,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
125,
127
],
[
109,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
91,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
89,
137
],
[
137,
138
],
[
303,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
144,
146
],
[
141,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
152,
153
],
[
152,
154
],
[
147,
155
],
[
155,
156
],
[
156,
157
],
[
147,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
162,
165
],
[
159,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
168,
170
],
[
159,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
175,
176
],
[
175,
177
],
[
159,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
141,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
139,
187
],
[
187,
188
],
[
303,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
191,
193
],
[
189,
194
],
[
194,
195
],
[
194,
196
],
[
189,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
200,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
210,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
199,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
189,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
227,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
231,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
242,
243
],
[
227,
244
],
[
244,
245
],
[
189,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
250,
253
],
[
253,
254
],
[
189,
255
],
[
255,
256
],
[
255,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
257,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
262,
267
],
[
267,
268
],
[
267,
269
],
[
262,
270
],
[
270,
271
],
[
271,
272
],
[
262,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
274,
278
],
[
278,
279
],
[
257,
280
],
[
280,
281
],
[
255,
282
],
[
282,
283
],
[
189,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
287,
288
],
[
288,
289
],
[
289,
290
],
[
288,
291
],
[
291,
292
],
[
189,
293
],
[
293,
294
],
[
293,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
297,
300
],
[
300,
301
],
[
0,
302
],
[
302,
303
],
[
302,
304
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc=new FastScanner();\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tif(a<0 && c<0 || b>=0 && d>=0) {\n\t\t\tSystem.out.println(Math.max(a*c, b*d));\n\t\t}else {\n\t\t\tlong ans = Math.max(a*d, c*b);\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\t\n\t}\n\tstatic final Random random = new Random();\n\t\n\tstatic void sort(int[] a) {\n\t\tint n = a.length;\n\t\tfor(int i =0; i<n; i++) {\n\t\t\tint val = random.nextInt(n);\n\t\t\tint cur = a[i];\n\t\t\ta[i] = a[val];\n\t\t\ta[val] = cur;\n\t\t}\n\t\tArrays.sort(a);\n\t}\n\t\n\tstatic void sortl(long[] a) {\n\t\tint n = a.length;\n\t\tfor(int i =0; i<n; i++) {\n\t\t\tint val = random.nextInt(n);\n\t\t\tlong cur = a[i];\n\t\t\ta[i] = a[val];\n\t\t\ta[val] = cur;\n\t\t}\n\t\tArrays.sort(a);\n\t}\n\t\n\tstatic class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tString nextLine() { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n\t\t} \n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\tdouble nextDouble() { \n return Double.parseDouble(next()); \n } \n\t}\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc=new FastScanner();\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tif(a<0 && c<0 || b>=0 && d>=0) {\n\t\t\tSystem.out.println(Math.max(a*c, b*d));\n\t\t}else {\n\t\t\tlong ans = Math.max(a*d, c*b);\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\t\n\t}\n\tstatic final Random random = new Random();\n\t\n\tstatic void sort(int[] a) {\n\t\tint n = a.length;\n\t\tfor(int i =0; i<n; i++) {\n\t\t\tint val = random.nextInt(n);\n\t\t\tint cur = a[i];\n\t\t\ta[i] = a[val];\n\t\t\ta[val] = cur;\n\t\t}\n\t\tArrays.sort(a);\n\t}\n\t\n\tstatic void sortl(long[] a) {\n\t\tint n = a.length;\n\t\tfor(int i =0; i<n; i++) {\n\t\t\tint val = random.nextInt(n);\n\t\t\tlong cur = a[i];\n\t\t\ta[i] = a[val];\n\t\t\ta[val] = cur;\n\t\t}\n\t\tArrays.sort(a);\n\t}\n\t\n\tstatic class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tString nextLine() { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n\t\t} \n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\tdouble nextDouble() { \n return Double.parseDouble(next()); \n } \n\t}\n\n}",
"Main",
"static final Random random = new Random();",
"random",
"new Random()",
"public static void main(String[] args) {\n\t\tFastScanner sc=new FastScanner();\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tif(a<0 && c<0 || b>=0 && d>=0) {\n\t\t\tSystem.out.println(Math.max(a*c, b*d));\n\t\t}else {\n\t\t\tlong ans = Math.max(a*d, c*b);\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\tFastScanner sc=new FastScanner();\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tif(a<0 && c<0 || b>=0 && d>=0) {\n\t\t\tSystem.out.println(Math.max(a*c, b*d));\n\t\t}else {\n\t\t\tlong ans = Math.max(a*d, c*b);\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\t\n\t}",
"FastScanner sc=new FastScanner();",
"sc",
"new FastScanner()",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"if(a<0 && c<0 || b>=0 && d>=0) {\n\t\t\tSystem.out.println(Math.max(a*c, b*d));\n\t\t}else {\n\t\t\tlong ans = Math.max(a*d, c*b);\n\t\t\tSystem.out.println(ans);\n\t\t}",
"a<0 && c<0 || b>=0 && d>=0",
"a<0 && c<0",
"a<0",
"a",
"0",
"c<0",
"c",
"0",
"b>=0 && d>=0",
"b>=0",
"b",
"0",
"d>=0",
"d",
"0",
"{\n\t\t\tSystem.out.println(Math.max(a*c, b*d));\n\t\t}",
"System.out.println(Math.max(a*c, b*d))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.max(a*c, b*d)",
"Math.max",
"Math",
"a*c",
"a",
"c",
"b*d",
"b",
"d",
"{\n\t\t\tlong ans = Math.max(a*d, c*b);\n\t\t\tSystem.out.println(ans);\n\t\t}",
"long ans = Math.max(a*d, c*b);",
"ans",
"Math.max(a*d, c*b)",
"Math.max",
"Math",
"a*d",
"a",
"d",
"c*b",
"c",
"b",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"static void sort(int[] a) {\n\t\tint n = a.length;\n\t\tfor(int i =0; i<n; i++) {\n\t\t\tint val = random.nextInt(n);\n\t\t\tint cur = a[i];\n\t\t\ta[i] = a[val];\n\t\t\ta[val] = cur;\n\t\t}\n\t\tArrays.sort(a);\n\t}",
"sort",
"{\n\t\tint n = a.length;\n\t\tfor(int i =0; i<n; i++) {\n\t\t\tint val = random.nextInt(n);\n\t\t\tint cur = a[i];\n\t\t\ta[i] = a[val];\n\t\t\ta[val] = cur;\n\t\t}\n\t\tArrays.sort(a);\n\t}",
"int n = a.length;",
"n",
"a.length",
"a",
"a.length",
"for(int i =0; i<n; i++) {\n\t\t\tint val = random.nextInt(n);\n\t\t\tint cur = a[i];\n\t\t\ta[i] = a[val];\n\t\t\ta[val] = cur;\n\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint val = random.nextInt(n);\n\t\t\tint cur = a[i];\n\t\t\ta[i] = a[val];\n\t\t\ta[val] = cur;\n\t\t}",
"{\n\t\t\tint val = random.nextInt(n);\n\t\t\tint cur = a[i];\n\t\t\ta[i] = a[val];\n\t\t\ta[val] = cur;\n\t\t}",
"int val = random.nextInt(n);",
"val",
"random.nextInt(n)",
"random.nextInt",
"random",
"n",
"int cur = a[i];",
"cur",
"a[i]",
"a",
"i",
"a[i] = a[val]",
"a[i]",
"a",
"i",
"a[val]",
"a",
"val",
"a[val] = cur",
"a[val]",
"a",
"val",
"cur",
"Arrays.sort(a)",
"Arrays.sort",
"Arrays",
"a",
"int[] a",
"a",
"static void sortl(long[] a) {\n\t\tint n = a.length;\n\t\tfor(int i =0; i<n; i++) {\n\t\t\tint val = random.nextInt(n);\n\t\t\tlong cur = a[i];\n\t\t\ta[i] = a[val];\n\t\t\ta[val] = cur;\n\t\t}\n\t\tArrays.sort(a);\n\t}",
"sortl",
"{\n\t\tint n = a.length;\n\t\tfor(int i =0; i<n; i++) {\n\t\t\tint val = random.nextInt(n);\n\t\t\tlong cur = a[i];\n\t\t\ta[i] = a[val];\n\t\t\ta[val] = cur;\n\t\t}\n\t\tArrays.sort(a);\n\t}",
"int n = a.length;",
"n",
"a.length",
"a",
"a.length",
"for(int i =0; i<n; i++) {\n\t\t\tint val = random.nextInt(n);\n\t\t\tlong cur = a[i];\n\t\t\ta[i] = a[val];\n\t\t\ta[val] = cur;\n\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint val = random.nextInt(n);\n\t\t\tlong cur = a[i];\n\t\t\ta[i] = a[val];\n\t\t\ta[val] = cur;\n\t\t}",
"{\n\t\t\tint val = random.nextInt(n);\n\t\t\tlong cur = a[i];\n\t\t\ta[i] = a[val];\n\t\t\ta[val] = cur;\n\t\t}",
"int val = random.nextInt(n);",
"val",
"random.nextInt(n)",
"random.nextInt",
"random",
"n",
"long cur = a[i];",
"cur",
"a[i]",
"a",
"i",
"a[i] = a[val]",
"a[i]",
"a",
"i",
"a[val]",
"a",
"val",
"a[val] = cur",
"a[val]",
"a",
"val",
"cur",
"Arrays.sort(a)",
"Arrays.sort",
"Arrays",
"a",
"long[] a",
"a",
"static class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tString nextLine() { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n\t\t} \n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\tdouble nextDouble() { \n return Double.parseDouble(next()); \n } \n\t}",
"FastScanner",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st=new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"String next() {\n\t\t\twhile (st == null || !st.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (st == null || !st.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"while (st == null || !st.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"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",
"String nextLine() { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n\t\t}",
"nextLine",
"{ \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n\t\t}",
"String str = \"\";",
"str",
"\"\"",
"try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }",
"catch (IOException e) \n { \n e.printStackTrace(); \n }",
"IOException e",
"{ \n e.printStackTrace(); \n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ \n str = br.readLine(); \n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"int[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}",
"readArray",
"{\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}",
"int[] a=new int[n];",
"a",
"new int[n]",
"n",
"for (int i=0; i<n; i++) a[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextInt();",
"a[i]=nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() { \n return Double.parseDouble(next()); \n }",
"nextDouble",
"{ \n return Double.parseDouble(next()); \n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc=new FastScanner();\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tif(a<0 && c<0 || b>=0 && d>=0) {\n\t\t\tSystem.out.println(Math.max(a*c, b*d));\n\t\t}else {\n\t\t\tlong ans = Math.max(a*d, c*b);\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\t\n\t}\n\tstatic final Random random = new Random();\n\t\n\tstatic void sort(int[] a) {\n\t\tint n = a.length;\n\t\tfor(int i =0; i<n; i++) {\n\t\t\tint val = random.nextInt(n);\n\t\t\tint cur = a[i];\n\t\t\ta[i] = a[val];\n\t\t\ta[val] = cur;\n\t\t}\n\t\tArrays.sort(a);\n\t}\n\t\n\tstatic void sortl(long[] a) {\n\t\tint n = a.length;\n\t\tfor(int i =0; i<n; i++) {\n\t\t\tint val = random.nextInt(n);\n\t\t\tlong cur = a[i];\n\t\t\ta[i] = a[val];\n\t\t\ta[val] = cur;\n\t\t}\n\t\tArrays.sort(a);\n\t}\n\t\n\tstatic class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tString nextLine() { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n\t\t} \n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\tdouble nextDouble() { \n return Double.parseDouble(next()); \n } \n\t}\n\n}",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tFastScanner sc=new FastScanner();\n\t\tlong a = sc.nextLong();\n\t\tlong b = sc.nextLong();\n\t\tlong c = sc.nextLong();\n\t\tlong d = sc.nextLong();\n\t\tif(a<0 && c<0 || b>=0 && d>=0) {\n\t\t\tSystem.out.println(Math.max(a*c, b*d));\n\t\t}else {\n\t\t\tlong ans = Math.max(a*d, c*b);\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\t\n\t}\n\tstatic final Random random = new Random();\n\t\n\tstatic void sort(int[] a) {\n\t\tint n = a.length;\n\t\tfor(int i =0; i<n; i++) {\n\t\t\tint val = random.nextInt(n);\n\t\t\tint cur = a[i];\n\t\t\ta[i] = a[val];\n\t\t\ta[val] = cur;\n\t\t}\n\t\tArrays.sort(a);\n\t}\n\t\n\tstatic void sortl(long[] a) {\n\t\tint n = a.length;\n\t\tfor(int i =0; i<n; i++) {\n\t\t\tint val = random.nextInt(n);\n\t\t\tlong cur = a[i];\n\t\t\ta[i] = a[val];\n\t\t\ta[val] = cur;\n\t\t}\n\t\tArrays.sort(a);\n\t}\n\t\n\tstatic class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tString nextLine() { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n\t\t} \n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\tint[] readArray(int n) {\n\t\t\tint[] a=new int[n];\n\t\t\tfor (int i=0; i<n; i++) a[i]=nextInt();\n\t\t\treturn a;\n\t\t}\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\tdouble nextDouble() { \n return Double.parseDouble(next()); \n } \n\t}\n\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
FastScanner sc=new FastScanner();
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
if(a<0 && c<0 || b>=0 && d>=0) {
System.out.println(Math.max(a*c, b*d));
}else {
long ans = Math.max(a*d, c*b);
System.out.println(ans);
}
}
static final Random random = new Random();
static void sort(int[] a) {
int n = a.length;
for(int i =0; i<n; i++) {
int val = random.nextInt(n);
int cur = a[i];
a[i] = a[val];
a[val] = cur;
}
Arrays.sort(a);
}
static void sortl(long[] a) {
int n = a.length;
for(int i =0; i<n; i++) {
int val = random.nextInt(n);
long cur = a[i];
a[i] = a[val];
a[val] = cur;
}
Arrays.sort(a);
}
static class FastScanner {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st=new StringTokenizer("");
String next() {
while (st == null || !st.hasMoreTokens()) {
try {
st=new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
String nextLine() {
String str = "";
try
{
str = br.readLine();
}
catch (IOException e)
{
e.printStackTrace();
}
return str;
}
int nextInt() {
return Integer.parseInt(next());
}
int[] readArray(int n) {
int[] a=new int[n];
for (int i=0; i<n; i++) a[i]=nextInt();
return a;
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
13,
4,
18,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
30,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
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,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
18,
36,
13,
20,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
18,
13,
13,
14,
2,
13,
2,
18,
13,
13,
17,
4,
18,
13,
17,
23,
13,
12,
13,
30,
4,
13,
13,
4,
18,
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
],
[
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
],
[
405,
35
],
[
405,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
38,
49
],
[
49,
50
],
[
49,
51
],
[
38,
52
],
[
52,
53
],
[
52,
54
],
[
38,
55
],
[
55,
56
],
[
55,
57
],
[
38,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
58,
62
],
[
58,
63
],
[
38,
64
],
[
64,
65
],
[
65,
66
],
[
36,
67
],
[
67,
68
],
[
405,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
73,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
73,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
73,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
96,
98
],
[
73,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
73,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
106,
108
],
[
73,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
111,
113
],
[
73,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
116,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
120,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
124,
128
],
[
73,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
71,
133
],
[
133,
134
],
[
71,
135
],
[
135,
136
],
[
71,
137
],
[
137,
138
],
[
405,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
139,
143
],
[
143,
144
],
[
143,
145
],
[
139,
147
],
[
147,
148
],
[
139,
149
],
[
149,
150
],
[
139,
151
],
[
151,
152
],
[
139,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
153,
161
],
[
161,
162
],
[
139,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
166,
171
],
[
171,
172
],
[
172,
173
],
[
165,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
182,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
191,
194
],
[
178,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
165,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
139,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
210,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
210,
224
],
[
224,
225
],
[
224,
226
],
[
210,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
227,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
231,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
210,
240
],
[
240,
241
],
[
240,
242
],
[
210,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
243,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
250,
254
],
[
254,
255
],
[
254,
256
],
[
249,
257
],
[
257,
258
],
[
258,
259
],
[
248,
260
],
[
260,
261
],
[
260,
262
],
[
248,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
265,
267
],
[
248,
268
],
[
268,
269
],
[
268,
270
],
[
270,
271
],
[
210,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
139,
276
],
[
276,
277
],
[
276,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
279,
283
],
[
283,
284
],
[
284,
285
],
[
285,
286
],
[
286,
287
],
[
285,
288
],
[
278,
289
],
[
289,
290
],
[
290,
291
],
[
290,
292
],
[
276,
293
],
[
293,
294
],
[
139,
295
],
[
295,
296
],
[
295,
297
],
[
297,
298
],
[
298,
299
],
[
302,
300
],
[
312,
301
],
[
309,
302
],
[
302,
303
],
[
303,
304
],
[
303,
305
],
[
302,
306
],
[
306,
307
],
[
306,
308
],
[
309,
309
],
[
309,
310
],
[
309,
311
],
[
312,
312
],
[
312,
313
],
[
312,
314
],
[
302,
315
],
[
315,
316
],
[
315,
317
],
[
317,
318
],
[
295,
319
],
[
319,
320
],
[
139,
321
],
[
321,
322
],
[
321,
323
],
[
323,
324
],
[
323,
325
],
[
325,
326
],
[
405,
327
],
[
327,
328
],
[
327,
329
],
[
329,
330
],
[
327,
331
],
[
331,
332
],
[
331,
333
],
[
333,
334
],
[
334,
335
],
[
334,
336
],
[
331,
337
],
[
337,
338
],
[
327,
339
],
[
339,
340
],
[
339,
341
],
[
341,
342
],
[
342,
343
],
[
343,
344
],
[
343,
345
],
[
342,
346
],
[
339,
347
],
[
347,
348
],
[
327,
349
],
[
349,
350
],
[
349,
351
],
[
351,
352
],
[
352,
353
],
[
353,
354
],
[
354,
355
],
[
354,
356
],
[
352,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
359,
361
],
[
352,
362
],
[
362,
363
],
[
363,
364
],
[
352,
365
],
[
366,
366
],
[
366,
367
],
[
367,
368
],
[
368,
369
],
[
367,
370
],
[
370,
371
],
[
370,
372
],
[
366,
373
],
[
373,
374
],
[
374,
375
],
[
374,
376
],
[
376,
377
],
[
377,
378
],
[
377,
379
],
[
376,
380
],
[
373,
381
],
[
381,
382
],
[
382,
383
],
[
381,
384
],
[
349,
385
],
[
385,
386
],
[
327,
387
],
[
387,
388
],
[
387,
389
],
[
389,
390
],
[
390,
391
],
[
390,
392
],
[
389,
393
],
[
393,
394
],
[
394,
395
],
[
387,
396
],
[
396,
397
],
[
327,
398
],
[
398,
399
],
[
398,
400
],
[
400,
401
],
[
401,
402
],
[
402,
403
],
[
0,
404
],
[
404,
405
],
[
404,
406
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.io.BufferedWriter;\nimport java.io.Writer;\nimport java.io.OutputStreamWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/*\n * Copyright (c) --> Arpit\n * Date Created : 13/9/2020\n * Have A Good Day !\n */\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Arpit\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 OutputWriter out = new OutputWriter(outputStream);\n BProductMax solver = new BProductMax();\n solver.solve(1, in, out);\n out.close();\n }\n \n static class BProductMax {\n public void solve(int testNumber, FastReader r, OutputWriter out) {\n long a = r.nextLong();\n long b = r.nextLong();\n long c = r.nextLong();\n long d = r.nextLong();\n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n long ans = Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4)));\n out.println(ans);\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 static class OutputWriter {\n private final PrintWriter writer;\n \n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n \n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n \n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }\n }\n \n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n \n public void close() {\n writer.close();\n }\n \n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.io.BufferedWriter;",
"BufferedWriter",
"java.io",
"import java.io.Writer;",
"Writer",
"java.io",
"import java.io.OutputStreamWriter;",
"OutputStreamWriter",
"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 OutputWriter out = new OutputWriter(outputStream);\n BProductMax solver = new BProductMax();\n solver.solve(1, in, out);\n out.close();\n }\n \n static class BProductMax {\n public void solve(int testNumber, FastReader r, OutputWriter out) {\n long a = r.nextLong();\n long b = r.nextLong();\n long c = r.nextLong();\n long d = r.nextLong();\n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n long ans = Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4)));\n out.println(ans);\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 static class OutputWriter {\n private final PrintWriter writer;\n \n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n \n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n \n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }\n }\n \n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n \n public void close() {\n writer.close();\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 OutputWriter out = new OutputWriter(outputStream);\n BProductMax solver = new BProductMax();\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 OutputWriter out = new OutputWriter(outputStream);\n BProductMax solver = new BProductMax();\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)",
"OutputWriter out = new OutputWriter(outputStream);",
"out",
"new OutputWriter(outputStream)",
"BProductMax solver = new BProductMax();",
"solver",
"new BProductMax()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class BProductMax {\n public void solve(int testNumber, FastReader r, OutputWriter out) {\n long a = r.nextLong();\n long b = r.nextLong();\n long c = r.nextLong();\n long d = r.nextLong();\n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n long ans = Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4)));\n out.println(ans);\n }\n \n }",
"BProductMax",
"public void solve(int testNumber, FastReader r, OutputWriter out) {\n long a = r.nextLong();\n long b = r.nextLong();\n long c = r.nextLong();\n long d = r.nextLong();\n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n long ans = Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4)));\n out.println(ans);\n }",
"solve",
"{\n long a = r.nextLong();\n long b = r.nextLong();\n long c = r.nextLong();\n long d = r.nextLong();\n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n long ans = Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4)));\n out.println(ans);\n }",
"long a = r.nextLong();",
"a",
"r.nextLong()",
"r.nextLong",
"r",
"long b = r.nextLong();",
"b",
"r.nextLong()",
"r.nextLong",
"r",
"long c = r.nextLong();",
"c",
"r.nextLong()",
"r.nextLong",
"r",
"long d = r.nextLong();",
"d",
"r.nextLong()",
"r.nextLong",
"r",
"long ans1 = a * c;",
"ans1",
"a * c",
"a",
"c",
"long ans2 = a * d;",
"ans2",
"a * d",
"a",
"d",
"long ans3 = b * c;",
"ans3",
"b * c",
"b",
"c",
"long ans4 = b * d;",
"ans4",
"b * d",
"b",
"d",
"long ans = Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4)));",
"ans",
"Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4)))",
"Math.max",
"Math",
"ans1",
"Math.max(ans2, Math.max(ans3, ans4))",
"Math.max",
"Math",
"ans2",
"Math.max(ans3, ans4)",
"Math.max",
"Math",
"ans3",
"ans4",
"out.println(ans)",
"out.println",
"out",
"ans",
"int testNumber",
"testNumber",
"FastReader r",
"r",
"OutputWriter 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",
"static class OutputWriter {\n private final PrintWriter writer;\n \n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n \n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n \n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }\n }\n \n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n \n public void close() {\n writer.close();\n }\n \n }",
"OutputWriter",
"private final PrintWriter writer;",
"writer",
"public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }",
"OutputWriter",
"{\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }",
"writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))",
"writer",
"new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))",
"OutputStream outputStream",
"outputStream",
"public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }",
"OutputWriter",
"{\n this.writer = new PrintWriter(writer);\n }",
"this.writer = new PrintWriter(writer)",
"this.writer",
"this",
"this.writer",
"new PrintWriter(writer)",
"Writer writer",
"writer",
"public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }\n }",
"print",
"{\n for (int i = 0; i < objects.length; i++) {\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }\n }",
"for (int i = 0; i < objects.length; i++) {\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < objects.length",
"i",
"objects.length",
"objects",
"objects.length",
"i++",
"i++",
"i",
"{\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }",
"{\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }",
"writer.print(objects[i])",
"writer.print",
"writer",
"objects[i]",
"objects",
"i",
"if (i != objects.length - 1) writer.print(\" \");",
"i != objects.length - 1",
"i",
"objects.length - 1",
"objects.length",
"objects",
"objects.length",
"1",
"writer.print(\" \")",
"writer.print",
"writer",
"\" \"",
"Object... objects",
"objects",
"public void println(Object... objects) {\n print(objects);\n writer.println();\n }",
"println",
"{\n print(objects);\n writer.println();\n }",
"print(objects)",
"print",
"objects",
"writer.println()",
"writer.println",
"writer",
"Object... objects",
"objects",
"public void close() {\n writer.close();\n }",
"close",
"{\n writer.close();\n }",
"writer.close()",
"writer.close",
"writer",
"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 OutputWriter out = new OutputWriter(outputStream);\n BProductMax solver = new BProductMax();\n solver.solve(1, in, out);\n out.close();\n }\n \n static class BProductMax {\n public void solve(int testNumber, FastReader r, OutputWriter out) {\n long a = r.nextLong();\n long b = r.nextLong();\n long c = r.nextLong();\n long d = r.nextLong();\n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n long ans = Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4)));\n out.println(ans);\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 static class OutputWriter {\n private final PrintWriter writer;\n \n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n \n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n \n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }\n }\n \n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n \n public void close() {\n writer.close();\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 OutputWriter out = new OutputWriter(outputStream);\n BProductMax solver = new BProductMax();\n solver.solve(1, in, out);\n out.close();\n }\n \n static class BProductMax {\n public void solve(int testNumber, FastReader r, OutputWriter out) {\n long a = r.nextLong();\n long b = r.nextLong();\n long c = r.nextLong();\n long d = r.nextLong();\n long ans1 = a * c;\n long ans2 = a * d;\n long ans3 = b * c;\n long ans4 = b * d;\n long ans = Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4)));\n out.println(ans);\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 static class OutputWriter {\n private final PrintWriter writer;\n \n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n \n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n \n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n writer.print(objects[i]);\n if (i != objects.length - 1) writer.print(\" \");\n }\n }\n \n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n \n public void close() {\n writer.close();\n }\n \n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.BufferedWriter;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;
/*
* Copyright (c) --> Arpit
* Date Created : 13/9/2020
* Have A Good Day !
*/
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Arpit
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
FastReader in = new FastReader(inputStream);
OutputWriter out = new OutputWriter(outputStream);
BProductMax solver = new BProductMax();
solver.solve(1, in, out);
out.close();
}
static class BProductMax {
public void solve(int testNumber, FastReader r, OutputWriter out) {
long a = r.nextLong();
long b = r.nextLong();
long c = r.nextLong();
long d = r.nextLong();
long ans1 = a * c;
long ans2 = a * d;
long ans3 = b * c;
long ans4 = b * d;
long ans = Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4)));
out.println(ans);
}
}
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);
}
}
static class OutputWriter {
private final PrintWriter writer;
public OutputWriter(OutputStream outputStream) {
writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
}
public OutputWriter(Writer writer) {
this.writer = new PrintWriter(writer);
}
public void print(Object... objects) {
for (int i = 0; i < objects.length; i++) {
writer.print(objects[i]);
if (i != objects.length - 1) writer.print(" ");
}
}
public void println(Object... objects) {
print(objects);
writer.println();
}
public void close() {
writer.close();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
82,
5
],
[
82,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
8,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
61,
65
],
[
8,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
68,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
6,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
]
| [
"import java.util.*;\npublic class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n long a =sc.nextLong();\n long b =sc.nextLong();\n long c =sc.nextLong();\n long d =sc.nextLong();\n long e =a*c;\n long f =b*d;\n long g =a*d;\n long h =b*c;\n long ans =Math.max(e,f);\n ans =Math.max(ans,g);\n ans =Math.max(ans,h);\n System.out.println(ans);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n long a =sc.nextLong();\n long b =sc.nextLong();\n long c =sc.nextLong();\n long d =sc.nextLong();\n long e =a*c;\n long f =b*d;\n long g =a*d;\n long h =b*c;\n long ans =Math.max(e,f);\n ans =Math.max(ans,g);\n ans =Math.max(ans,h);\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n long a =sc.nextLong();\n long b =sc.nextLong();\n long c =sc.nextLong();\n long d =sc.nextLong();\n long e =a*c;\n long f =b*d;\n long g =a*d;\n long h =b*c;\n long ans =Math.max(e,f);\n ans =Math.max(ans,g);\n ans =Math.max(ans,h);\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc =new Scanner(System.in);\n long a =sc.nextLong();\n long b =sc.nextLong();\n long c =sc.nextLong();\n long d =sc.nextLong();\n long e =a*c;\n long f =b*d;\n long g =a*d;\n long h =b*c;\n long ans =Math.max(e,f);\n ans =Math.max(ans,g);\n ans =Math.max(ans,h);\n System.out.println(ans);\n }",
"Scanner sc =new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a =sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b =sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c =sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d =sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long e =a*c;",
"e",
"a*c",
"a",
"c",
"long f =b*d;",
"f",
"b*d",
"b",
"d",
"long g =a*d;",
"g",
"a*d",
"a",
"d",
"long h =b*c;",
"h",
"b*c",
"b",
"c",
"long ans =Math.max(e,f);",
"ans",
"Math.max(e,f)",
"Math.max",
"Math",
"e",
"f",
"ans =Math.max(ans,g)",
"ans",
"Math.max(ans,g)",
"Math.max",
"Math",
"ans",
"g",
"ans =Math.max(ans,h)",
"ans",
"Math.max(ans,h)",
"Math.max",
"Math",
"ans",
"h",
"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 long a =sc.nextLong();\n long b =sc.nextLong();\n long c =sc.nextLong();\n long d =sc.nextLong();\n long e =a*c;\n long f =b*d;\n long g =a*d;\n long h =b*c;\n long ans =Math.max(e,f);\n ans =Math.max(ans,g);\n ans =Math.max(ans,h);\n System.out.println(ans);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n long a =sc.nextLong();\n long b =sc.nextLong();\n long c =sc.nextLong();\n long d =sc.nextLong();\n long e =a*c;\n long f =b*d;\n long g =a*d;\n long h =b*c;\n long ans =Math.max(e,f);\n ans =Math.max(ans,g);\n ans =Math.max(ans,h);\n System.out.println(ans);\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc =new Scanner(System.in);
long a =sc.nextLong();
long b =sc.nextLong();
long c =sc.nextLong();
long d =sc.nextLong();
long e =a*c;
long f =b*d;
long g =a*d;
long h =b*c;
long ans =Math.max(e,f);
ans =Math.max(ans,g);
ans =Math.max(ans,h);
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
4,
18,
13,
4,
18,
13,
13,
17,
30,
0,
13,
4,
18,
13,
13,
14,
2,
4,
18,
13,
4,
18,
13,
13,
17,
30,
0,
13,
4,
18,
13,
13,
14,
2,
4,
18,
13,
4,
18,
13,
13,
17,
30,
0,
13,
4,
18,
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
],
[
101,
8
],
[
101,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
11,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
11,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
42,
50
],
[
41,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
11,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
59,
67
],
[
58,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
11,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
76,
84
],
[
75,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
11,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
9,
98
],
[
98,
99
],
[
0,
100
],
[
100,
101
],
[
100,
102
]
]
| [
"import java.math.BigDecimal;\nimport java.util.Scanner;\n \npublic class Main {\n\tpublic static void main(String[] args){\n \n\t\tScanner sc = new Scanner(System.in);\n \n\t\t// 整数の入力\n\t\tBigDecimal a = sc.nextBigDecimal();\n\t\tBigDecimal b = sc.nextBigDecimal();\n\t\tBigDecimal c = sc.nextBigDecimal();\n\t\tBigDecimal d = sc.nextBigDecimal();\n\t\t\n\t\tBigDecimal e = a.multiply(c);\n \n\t\tif (e.compareTo(a.multiply(d)) < 0) {\n\t\t\te = a.multiply(d);\n\t\t}\n\t\tif (e.compareTo(b.multiply(c)) < 0) {\n\t\t\te = b.multiply(c);\n\t\t}\n\t\tif (e.compareTo(b.multiply(d)) < 0) {\n\t\t\te = b.multiply(d);\n\t\t}\n System.out.println(e);\n\t}\n}",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n \n\t\tScanner sc = new Scanner(System.in);\n \n\t\t// 整数の入力\n\t\tBigDecimal a = sc.nextBigDecimal();\n\t\tBigDecimal b = sc.nextBigDecimal();\n\t\tBigDecimal c = sc.nextBigDecimal();\n\t\tBigDecimal d = sc.nextBigDecimal();\n\t\t\n\t\tBigDecimal e = a.multiply(c);\n \n\t\tif (e.compareTo(a.multiply(d)) < 0) {\n\t\t\te = a.multiply(d);\n\t\t}\n\t\tif (e.compareTo(b.multiply(c)) < 0) {\n\t\t\te = b.multiply(c);\n\t\t}\n\t\tif (e.compareTo(b.multiply(d)) < 0) {\n\t\t\te = b.multiply(d);\n\t\t}\n System.out.println(e);\n\t}\n}",
"Main",
"public static void main(String[] args){\n \n\t\tScanner sc = new Scanner(System.in);\n \n\t\t// 整数の入力\n\t\tBigDecimal a = sc.nextBigDecimal();\n\t\tBigDecimal b = sc.nextBigDecimal();\n\t\tBigDecimal c = sc.nextBigDecimal();\n\t\tBigDecimal d = sc.nextBigDecimal();\n\t\t\n\t\tBigDecimal e = a.multiply(c);\n \n\t\tif (e.compareTo(a.multiply(d)) < 0) {\n\t\t\te = a.multiply(d);\n\t\t}\n\t\tif (e.compareTo(b.multiply(c)) < 0) {\n\t\t\te = b.multiply(c);\n\t\t}\n\t\tif (e.compareTo(b.multiply(d)) < 0) {\n\t\t\te = b.multiply(d);\n\t\t}\n System.out.println(e);\n\t}",
"main",
"{\n \n\t\tScanner sc = new Scanner(System.in);\n \n\t\t// 整数の入力\n\t\tBigDecimal a = sc.nextBigDecimal();\n\t\tBigDecimal b = sc.nextBigDecimal();\n\t\tBigDecimal c = sc.nextBigDecimal();\n\t\tBigDecimal d = sc.nextBigDecimal();\n\t\t\n\t\tBigDecimal e = a.multiply(c);\n \n\t\tif (e.compareTo(a.multiply(d)) < 0) {\n\t\t\te = a.multiply(d);\n\t\t}\n\t\tif (e.compareTo(b.multiply(c)) < 0) {\n\t\t\te = b.multiply(c);\n\t\t}\n\t\tif (e.compareTo(b.multiply(d)) < 0) {\n\t\t\te = b.multiply(d);\n\t\t}\n System.out.println(e);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"BigDecimal a = sc.nextBigDecimal();",
"a",
"sc.nextBigDecimal()",
"sc.nextBigDecimal",
"sc",
"BigDecimal b = sc.nextBigDecimal();",
"b",
"sc.nextBigDecimal()",
"sc.nextBigDecimal",
"sc",
"BigDecimal c = sc.nextBigDecimal();",
"c",
"sc.nextBigDecimal()",
"sc.nextBigDecimal",
"sc",
"BigDecimal d = sc.nextBigDecimal();",
"d",
"sc.nextBigDecimal()",
"sc.nextBigDecimal",
"sc",
"BigDecimal e = a.multiply(c);",
"e",
"a.multiply(c)",
"a.multiply",
"a",
"c",
"if (e.compareTo(a.multiply(d)) < 0) {\n\t\t\te = a.multiply(d);\n\t\t}",
"e.compareTo(a.multiply(d)) < 0",
"e.compareTo(a.multiply(d))",
"e.compareTo",
"e",
"a.multiply(d)",
"a.multiply",
"a",
"d",
"0",
"{\n\t\t\te = a.multiply(d);\n\t\t}",
"e = a.multiply(d)",
"e",
"a.multiply(d)",
"a.multiply",
"a",
"d",
"if (e.compareTo(b.multiply(c)) < 0) {\n\t\t\te = b.multiply(c);\n\t\t}",
"e.compareTo(b.multiply(c)) < 0",
"e.compareTo(b.multiply(c))",
"e.compareTo",
"e",
"b.multiply(c)",
"b.multiply",
"b",
"c",
"0",
"{\n\t\t\te = b.multiply(c);\n\t\t}",
"e = b.multiply(c)",
"e",
"b.multiply(c)",
"b.multiply",
"b",
"c",
"if (e.compareTo(b.multiply(d)) < 0) {\n\t\t\te = b.multiply(d);\n\t\t}",
"e.compareTo(b.multiply(d)) < 0",
"e.compareTo(b.multiply(d))",
"e.compareTo",
"e",
"b.multiply(d)",
"b.multiply",
"b",
"d",
"0",
"{\n\t\t\te = b.multiply(d);\n\t\t}",
"e = b.multiply(d)",
"e",
"b.multiply(d)",
"b.multiply",
"b",
"d",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n \n\t\tScanner sc = new Scanner(System.in);\n \n\t\t// 整数の入力\n\t\tBigDecimal a = sc.nextBigDecimal();\n\t\tBigDecimal b = sc.nextBigDecimal();\n\t\tBigDecimal c = sc.nextBigDecimal();\n\t\tBigDecimal d = sc.nextBigDecimal();\n\t\t\n\t\tBigDecimal e = a.multiply(c);\n \n\t\tif (e.compareTo(a.multiply(d)) < 0) {\n\t\t\te = a.multiply(d);\n\t\t}\n\t\tif (e.compareTo(b.multiply(c)) < 0) {\n\t\t\te = b.multiply(c);\n\t\t}\n\t\tif (e.compareTo(b.multiply(d)) < 0) {\n\t\t\te = b.multiply(d);\n\t\t}\n System.out.println(e);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n \n\t\tScanner sc = new Scanner(System.in);\n \n\t\t// 整数の入力\n\t\tBigDecimal a = sc.nextBigDecimal();\n\t\tBigDecimal b = sc.nextBigDecimal();\n\t\tBigDecimal c = sc.nextBigDecimal();\n\t\tBigDecimal d = sc.nextBigDecimal();\n\t\t\n\t\tBigDecimal e = a.multiply(c);\n \n\t\tif (e.compareTo(a.multiply(d)) < 0) {\n\t\t\te = a.multiply(d);\n\t\t}\n\t\tif (e.compareTo(b.multiply(c)) < 0) {\n\t\t\te = b.multiply(c);\n\t\t}\n\t\tif (e.compareTo(b.multiply(d)) < 0) {\n\t\t\te = b.multiply(d);\n\t\t}\n System.out.println(e);\n\t}\n}",
"Main"
]
| import java.math.BigDecimal;
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 整数の入力
BigDecimal a = sc.nextBigDecimal();
BigDecimal b = sc.nextBigDecimal();
BigDecimal c = sc.nextBigDecimal();
BigDecimal d = sc.nextBigDecimal();
BigDecimal e = a.multiply(c);
if (e.compareTo(a.multiply(d)) < 0) {
e = a.multiply(d);
}
if (e.compareTo(b.multiply(c)) < 0) {
e = b.multiply(c);
}
if (e.compareTo(b.multiply(d)) < 0) {
e = b.multiply(d);
}
System.out.println(e);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
18,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
82,
5
],
[
82,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
39,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
6,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong a = scan.nextLong();\n\t\tlong b = scan.nextLong();\n\t\tlong c = scan.nextLong();\n\t\tlong d = scan.nextLong();\n\n\t\tlong answer = Long.MIN_VALUE;\n\n\t\tanswer = Math.max(answer, a * c);\n\t\tanswer = Math.max(answer, b * c);\n\t\tanswer = Math.max(answer, a * d);\n\t\tanswer = Math.max(answer, b * d);\n\n\t\tSystem.out.println(answer);\n \t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong a = scan.nextLong();\n\t\tlong b = scan.nextLong();\n\t\tlong c = scan.nextLong();\n\t\tlong d = scan.nextLong();\n\n\t\tlong answer = Long.MIN_VALUE;\n\n\t\tanswer = Math.max(answer, a * c);\n\t\tanswer = Math.max(answer, b * c);\n\t\tanswer = Math.max(answer, a * d);\n\t\tanswer = Math.max(answer, b * d);\n\n\t\tSystem.out.println(answer);\n \t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong a = scan.nextLong();\n\t\tlong b = scan.nextLong();\n\t\tlong c = scan.nextLong();\n\t\tlong d = scan.nextLong();\n\n\t\tlong answer = Long.MIN_VALUE;\n\n\t\tanswer = Math.max(answer, a * c);\n\t\tanswer = Math.max(answer, b * c);\n\t\tanswer = Math.max(answer, a * d);\n\t\tanswer = Math.max(answer, b * d);\n\n\t\tSystem.out.println(answer);\n \t}",
"main",
"{\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong a = scan.nextLong();\n\t\tlong b = scan.nextLong();\n\t\tlong c = scan.nextLong();\n\t\tlong d = scan.nextLong();\n\n\t\tlong answer = Long.MIN_VALUE;\n\n\t\tanswer = Math.max(answer, a * c);\n\t\tanswer = Math.max(answer, b * c);\n\t\tanswer = Math.max(answer, a * d);\n\t\tanswer = Math.max(answer, b * d);\n\n\t\tSystem.out.println(answer);\n \t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"long a = scan.nextLong();",
"a",
"scan.nextLong()",
"scan.nextLong",
"scan",
"long b = scan.nextLong();",
"b",
"scan.nextLong()",
"scan.nextLong",
"scan",
"long c = scan.nextLong();",
"c",
"scan.nextLong()",
"scan.nextLong",
"scan",
"long d = scan.nextLong();",
"d",
"scan.nextLong()",
"scan.nextLong",
"scan",
"long answer = Long.MIN_VALUE;",
"answer",
"Long.MIN_VALUE",
"Long",
"Long.MIN_VALUE",
"answer = Math.max(answer, a * c)",
"answer",
"Math.max(answer, a * c)",
"Math.max",
"Math",
"answer",
"a * c",
"a",
"c",
"answer = Math.max(answer, b * c)",
"answer",
"Math.max(answer, b * c)",
"Math.max",
"Math",
"answer",
"b * c",
"b",
"c",
"answer = Math.max(answer, a * d)",
"answer",
"Math.max(answer, a * d)",
"Math.max",
"Math",
"answer",
"a * d",
"a",
"d",
"answer = Math.max(answer, b * d)",
"answer",
"Math.max(answer, b * d)",
"Math.max",
"Math",
"answer",
"b * d",
"b",
"d",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong a = scan.nextLong();\n\t\tlong b = scan.nextLong();\n\t\tlong c = scan.nextLong();\n\t\tlong d = scan.nextLong();\n\n\t\tlong answer = Long.MIN_VALUE;\n\n\t\tanswer = Math.max(answer, a * c);\n\t\tanswer = Math.max(answer, b * c);\n\t\tanswer = Math.max(answer, a * d);\n\t\tanswer = Math.max(answer, b * d);\n\n\t\tSystem.out.println(answer);\n \t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong a = scan.nextLong();\n\t\tlong b = scan.nextLong();\n\t\tlong c = scan.nextLong();\n\t\tlong d = scan.nextLong();\n\n\t\tlong answer = Long.MIN_VALUE;\n\n\t\tanswer = Math.max(answer, a * c);\n\t\tanswer = Math.max(answer, b * c);\n\t\tanswer = Math.max(answer, a * d);\n\t\tanswer = Math.max(answer, b * d);\n\n\t\tSystem.out.println(answer);\n \t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
long a = scan.nextLong();
long b = scan.nextLong();
long c = scan.nextLong();
long d = scan.nextLong();
long answer = Long.MIN_VALUE;
answer = Math.max(answer, a * c);
answer = Math.max(answer, b * c);
answer = Math.max(answer, a * d);
answer = Math.max(answer, b * d);
System.out.println(answer);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
61,
5
],
[
61,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
43,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
37,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
52,
53
],
[
52,
54
],
[
49,
55
],
[
55,
56
],
[
55,
57
],
[
6,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String... args) {\n Scanner scanner = new Scanner(System.in);\n\n long a = scanner.nextInt();\n long b = scanner.nextInt();\n long c = scanner.nextInt();\n long d = scanner.nextInt();\n\n System.out.println(Math.max(Math.max(a * c, a * d), Math.max(b * c, b * d)));\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String... args) {\n Scanner scanner = new Scanner(System.in);\n\n long a = scanner.nextInt();\n long b = scanner.nextInt();\n long c = scanner.nextInt();\n long d = scanner.nextInt();\n\n System.out.println(Math.max(Math.max(a * c, a * d), Math.max(b * c, b * d)));\n }\n}",
"Main",
"public static void main(String... args) {\n Scanner scanner = new Scanner(System.in);\n\n long a = scanner.nextInt();\n long b = scanner.nextInt();\n long c = scanner.nextInt();\n long d = scanner.nextInt();\n\n System.out.println(Math.max(Math.max(a * c, a * d), Math.max(b * c, b * d)));\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n long a = scanner.nextInt();\n long b = scanner.nextInt();\n long c = scanner.nextInt();\n long d = scanner.nextInt();\n\n System.out.println(Math.max(Math.max(a * c, a * d), Math.max(b * c, b * d)));\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"long a = scanner.nextInt();",
"a",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long b = scanner.nextInt();",
"b",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long c = scanner.nextInt();",
"c",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long d = scanner.nextInt();",
"d",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"System.out.println(Math.max(Math.max(a * c, a * d), Math.max(b * c, b * d)))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.max(Math.max(a * c, a * d), Math.max(b * c, b * d))",
"Math.max",
"Math",
"Math.max(a * c, a * d)",
"Math.max",
"Math",
"a * c",
"a",
"c",
"a * d",
"a",
"d",
"Math.max(b * c, b * d)",
"Math.max",
"Math",
"b * c",
"b",
"c",
"b * d",
"b",
"d",
"String... args",
"args",
"public class Main {\n public static void main(String... args) {\n Scanner scanner = new Scanner(System.in);\n\n long a = scanner.nextInt();\n long b = scanner.nextInt();\n long c = scanner.nextInt();\n long d = scanner.nextInt();\n\n System.out.println(Math.max(Math.max(a * c, a * d), Math.max(b * c, b * d)));\n }\n}",
"public class Main {\n public static void main(String... args) {\n Scanner scanner = new Scanner(System.in);\n\n long a = scanner.nextInt();\n long b = scanner.nextInt();\n long c = scanner.nextInt();\n long d = scanner.nextInt();\n\n System.out.println(Math.max(Math.max(a * c, a * d), Math.max(b * c, b * d)));\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String... args) {
Scanner scanner = new Scanner(System.in);
long a = scanner.nextInt();
long b = scanner.nextInt();
long c = scanner.nextInt();
long d = scanner.nextInt();
System.out.println(Math.max(Math.max(a * c, a * d), Math.max(b * c, b * d)));
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
2,
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
],
[
87,
11
],
[
87,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
20,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
14,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
47,
49
],
[
14,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
55,
56
],
[
55,
57
],
[
14,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
69,
71
],
[
66,
72
],
[
72,
73
],
[
72,
74
],
[
63,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
78,
80
],
[
75,
81
],
[
81,
82
],
[
81,
83
],
[
12,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws NumberFormatException, IOException {\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tString input[] = br.readLine().split(\" \");\n\tlong a = Long.parseLong(input[0]);\n\tlong b = Long.parseLong(input[1]);\n\tlong c = Long.parseLong(input[2]);\n\tlong d = Long.parseLong(input[3]);\n\n\tSystem.out.println(Math.max(Math.max(a * c, a * d), Math.max(b * c, b * d)));\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main(String[] args) throws NumberFormatException, IOException {\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tString input[] = br.readLine().split(\" \");\n\tlong a = Long.parseLong(input[0]);\n\tlong b = Long.parseLong(input[1]);\n\tlong c = Long.parseLong(input[2]);\n\tlong d = Long.parseLong(input[3]);\n\n\tSystem.out.println(Math.max(Math.max(a * c, a * d), Math.max(b * c, b * d)));\n }\n}",
"Main",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tString input[] = br.readLine().split(\" \");\n\tlong a = Long.parseLong(input[0]);\n\tlong b = Long.parseLong(input[1]);\n\tlong c = Long.parseLong(input[2]);\n\tlong d = Long.parseLong(input[3]);\n\n\tSystem.out.println(Math.max(Math.max(a * c, a * d), Math.max(b * c, b * d)));\n }",
"main",
"{\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tString input[] = br.readLine().split(\" \");\n\tlong a = Long.parseLong(input[0]);\n\tlong b = Long.parseLong(input[1]);\n\tlong c = Long.parseLong(input[2]);\n\tlong d = Long.parseLong(input[3]);\n\n\tSystem.out.println(Math.max(Math.max(a * c, a * d), Math.max(b * c, b * d)));\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String input[] = br.readLine().split(\" \");",
"input",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"long a = Long.parseLong(input[0]);",
"a",
"Long.parseLong(input[0])",
"Long.parseLong",
"Long",
"input[0]",
"input",
"0",
"long b = Long.parseLong(input[1]);",
"b",
"Long.parseLong(input[1])",
"Long.parseLong",
"Long",
"input[1]",
"input",
"1",
"long c = Long.parseLong(input[2]);",
"c",
"Long.parseLong(input[2])",
"Long.parseLong",
"Long",
"input[2]",
"input",
"2",
"long d = Long.parseLong(input[3]);",
"d",
"Long.parseLong(input[3])",
"Long.parseLong",
"Long",
"input[3]",
"input",
"3",
"System.out.println(Math.max(Math.max(a * c, a * d), Math.max(b * c, b * d)))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.max(Math.max(a * c, a * d), Math.max(b * c, b * d))",
"Math.max",
"Math",
"Math.max(a * c, a * d)",
"Math.max",
"Math",
"a * c",
"a",
"c",
"a * d",
"a",
"d",
"Math.max(b * c, b * d)",
"Math.max",
"Math",
"b * c",
"b",
"c",
"b * d",
"b",
"d",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws NumberFormatException, IOException {\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tString input[] = br.readLine().split(\" \");\n\tlong a = Long.parseLong(input[0]);\n\tlong b = Long.parseLong(input[1]);\n\tlong c = Long.parseLong(input[2]);\n\tlong d = Long.parseLong(input[3]);\n\n\tSystem.out.println(Math.max(Math.max(a * c, a * d), Math.max(b * c, b * d)));\n }\n}",
"public class Main {\n public static void main(String[] args) throws NumberFormatException, IOException {\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tString input[] = br.readLine().split(\" \");\n\tlong a = Long.parseLong(input[0]);\n\tlong b = Long.parseLong(input[1]);\n\tlong c = Long.parseLong(input[2]);\n\tlong d = Long.parseLong(input[3]);\n\n\tSystem.out.println(Math.max(Math.max(a * c, a * d), Math.max(b * c, b * d)));\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 NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String input[] = br.readLine().split(" ");
long a = Long.parseLong(input[0]);
long b = Long.parseLong(input[1]);
long c = Long.parseLong(input[2]);
long d = Long.parseLong(input[3]);
System.out.println(Math.max(Math.max(a * c, a * d), Math.max(b * c, b * d)));
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
18,
13,
13,
14,
2,
2,
17,
13,
2,
17,
13,
30,
0,
13,
17,
14,
2,
2,
17,
13,
2,
17,
13,
30,
0,
13,
17,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
2,
13,
13,
4,
18,
13,
13,
4,
18,
18,
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
],
[
434,
8
],
[
434,
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
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
33,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
33,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
33,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
33,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
33,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
85,
89
],
[
89,
90
],
[
89,
91
],
[
33,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
33,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
103,
107
],
[
107,
108
],
[
107,
109
],
[
33,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
112,
116
],
[
116,
117
],
[
116,
118
],
[
33,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
11,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
9,
129
],
[
129,
130
],
[
434,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
133,
135
],
[
131,
137
],
[
137,
138
],
[
131,
139
],
[
139,
140
],
[
131,
141
],
[
141,
142
],
[
131,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
148,
150
],
[
131,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
153,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
164,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
178,
179
],
[
179,
180
],
[
153,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
131,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
188,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
188,
204
],
[
204,
205
],
[
204,
206
],
[
188,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
211,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
188,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
220,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
227,
231
],
[
231,
232
],
[
231,
233
],
[
226,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
240,
242
],
[
234,
243
],
[
243,
244
],
[
243,
245
],
[
245,
246
],
[
226,
247
],
[
247,
248
],
[
188,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
131,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
255,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
255,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
263,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
255,
271
],
[
271,
272
],
[
271,
273
],
[
255,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
274,
278
],
[
278,
279
],
[
279,
280
],
[
279,
281
],
[
281,
282
],
[
278,
283
],
[
283,
284
],
[
283,
285
],
[
285,
286
],
[
255,
287
],
[
287,
288
],
[
288,
289
],
[
289,
290
],
[
290,
291
],
[
290,
292
],
[
288,
293
],
[
293,
294
],
[
293,
295
],
[
287,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
299,
300
],
[
299,
301
],
[
298,
302
],
[
302,
303
],
[
302,
304
],
[
297,
305
],
[
305,
306
],
[
306,
307
],
[
306,
308
],
[
305,
309
],
[
309,
310
],
[
309,
311
],
[
311,
312
],
[
311,
313
],
[
305,
314
],
[
314,
315
],
[
314,
316
],
[
316,
317
],
[
297,
318
],
[
318,
319
],
[
255,
320
],
[
320,
321
],
[
321,
322
],
[
321,
323
],
[
320,
324
],
[
324,
325
],
[
325,
326
],
[
325,
327
],
[
327,
328
],
[
324,
329
],
[
329,
330
],
[
329,
331
],
[
324,
332
],
[
332,
333
],
[
333,
334
],
[
334,
335
],
[
334,
336
],
[
332,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
340,
341
],
[
340,
342
],
[
339,
343
],
[
343,
344
],
[
343,
345
],
[
338,
346
],
[
346,
347
],
[
347,
348
],
[
347,
349
],
[
346,
350
],
[
350,
351
],
[
350,
352
],
[
352,
353
],
[
353,
354
],
[
353,
355
],
[
352,
356
],
[
346,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
338,
361
],
[
361,
362
],
[
255,
363
],
[
363,
364
],
[
364,
365
],
[
364,
366
],
[
131,
367
],
[
367,
368
],
[
367,
369
],
[
369,
370
],
[
370,
371
],
[
370,
372
],
[
369,
373
],
[
373,
374
],
[
373,
375
],
[
375,
376
],
[
369,
377
],
[
377,
378
],
[
378,
379
],
[
378,
380
],
[
377,
381
],
[
381,
382
],
[
381,
383
],
[
383,
384
],
[
369,
385
],
[
385,
386
],
[
386,
387
],
[
387,
388
],
[
387,
389
],
[
385,
390
],
[
390,
391
],
[
391,
392
],
[
392,
393
],
[
391,
394
],
[
390,
395
],
[
395,
396
],
[
395,
397
],
[
397,
398
],
[
369,
399
],
[
399,
400
],
[
400,
401
],
[
401,
402
],
[
131,
403
],
[
403,
404
],
[
403,
405
],
[
405,
406
],
[
406,
407
],
[
410,
408
],
[
420,
409
],
[
417,
410
],
[
410,
411
],
[
411,
412
],
[
411,
413
],
[
410,
414
],
[
414,
415
],
[
414,
416
],
[
417,
417
],
[
417,
418
],
[
417,
419
],
[
420,
420
],
[
420,
421
],
[
420,
422
],
[
410,
423
],
[
423,
424
],
[
423,
425
],
[
425,
426
],
[
406,
427
],
[
427,
428
],
[
405,
429
],
[
429,
430
],
[
403,
431
],
[
431,
432
],
[
0,
433
],
[
433,
434
],
[
433,
435
]
]
| [
"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 test=1;\n// test=input.scanInt();\n StringBuilder ans=new StringBuilder(\"\");\n for(int tt=1;tt<=test;tt++) {\n long a=input.scanInt();\n long b=input.scanInt();\n long c=input.scanInt();\n long d=input.scanInt();\n long max=Long.MIN_VALUE;\n if(0>=a && 0<=b) {\n max=0;\n }\n if(0>=c && 0<=d) {\n max=0;\n }\n max=Math.max(max,a*c);\n max=Math.max(max,a*d);\n max=Math.max(max,b*c);\n max=Math.max(max,b*d);\n ans.append(max);\n }\n System.out.println(ans);\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 test=1;\n// test=input.scanInt();\n StringBuilder ans=new StringBuilder(\"\");\n for(int tt=1;tt<=test;tt++) {\n long a=input.scanInt();\n long b=input.scanInt();\n long c=input.scanInt();\n long d=input.scanInt();\n long max=Long.MIN_VALUE;\n if(0>=a && 0<=b) {\n max=0;\n }\n if(0>=c && 0<=d) {\n max=0;\n }\n max=Math.max(max,a*c);\n max=Math.max(max,a*d);\n max=Math.max(max,b*c);\n max=Math.max(max,b*d);\n ans.append(max);\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String args[]) throws IOException {\n Scan input=new Scan();\n int test=1;\n// test=input.scanInt();\n StringBuilder ans=new StringBuilder(\"\");\n for(int tt=1;tt<=test;tt++) {\n long a=input.scanInt();\n long b=input.scanInt();\n long c=input.scanInt();\n long d=input.scanInt();\n long max=Long.MIN_VALUE;\n if(0>=a && 0<=b) {\n max=0;\n }\n if(0>=c && 0<=d) {\n max=0;\n }\n max=Math.max(max,a*c);\n max=Math.max(max,a*d);\n max=Math.max(max,b*c);\n max=Math.max(max,b*d);\n ans.append(max);\n }\n System.out.println(ans);\n }",
"main",
"{\n Scan input=new Scan();\n int test=1;\n// test=input.scanInt();\n StringBuilder ans=new StringBuilder(\"\");\n for(int tt=1;tt<=test;tt++) {\n long a=input.scanInt();\n long b=input.scanInt();\n long c=input.scanInt();\n long d=input.scanInt();\n long max=Long.MIN_VALUE;\n if(0>=a && 0<=b) {\n max=0;\n }\n if(0>=c && 0<=d) {\n max=0;\n }\n max=Math.max(max,a*c);\n max=Math.max(max,a*d);\n max=Math.max(max,b*c);\n max=Math.max(max,b*d);\n ans.append(max);\n }\n System.out.println(ans);\n }",
"Scan input=new Scan();",
"input",
"new Scan()",
"int test=1;",
"test",
"1",
"StringBuilder ans=new StringBuilder(\"\");",
"ans",
"new StringBuilder(\"\")",
"for(int tt=1;tt<=test;tt++) {\n long a=input.scanInt();\n long b=input.scanInt();\n long c=input.scanInt();\n long d=input.scanInt();\n long max=Long.MIN_VALUE;\n if(0>=a && 0<=b) {\n max=0;\n }\n if(0>=c && 0<=d) {\n max=0;\n }\n max=Math.max(max,a*c);\n max=Math.max(max,a*d);\n max=Math.max(max,b*c);\n max=Math.max(max,b*d);\n ans.append(max);\n }",
"int tt=1;",
"int tt=1;",
"tt",
"1",
"tt<=test",
"tt",
"test",
"tt++",
"tt++",
"tt",
"{\n long a=input.scanInt();\n long b=input.scanInt();\n long c=input.scanInt();\n long d=input.scanInt();\n long max=Long.MIN_VALUE;\n if(0>=a && 0<=b) {\n max=0;\n }\n if(0>=c && 0<=d) {\n max=0;\n }\n max=Math.max(max,a*c);\n max=Math.max(max,a*d);\n max=Math.max(max,b*c);\n max=Math.max(max,b*d);\n ans.append(max);\n }",
"{\n long a=input.scanInt();\n long b=input.scanInt();\n long c=input.scanInt();\n long d=input.scanInt();\n long max=Long.MIN_VALUE;\n if(0>=a && 0<=b) {\n max=0;\n }\n if(0>=c && 0<=d) {\n max=0;\n }\n max=Math.max(max,a*c);\n max=Math.max(max,a*d);\n max=Math.max(max,b*c);\n max=Math.max(max,b*d);\n ans.append(max);\n }",
"long a=input.scanInt();",
"a",
"input.scanInt()",
"input.scanInt",
"input",
"long b=input.scanInt();",
"b",
"input.scanInt()",
"input.scanInt",
"input",
"long c=input.scanInt();",
"c",
"input.scanInt()",
"input.scanInt",
"input",
"long d=input.scanInt();",
"d",
"input.scanInt()",
"input.scanInt",
"input",
"long max=Long.MIN_VALUE;",
"max",
"Long.MIN_VALUE",
"Long",
"Long.MIN_VALUE",
"if(0>=a && 0<=b) {\n max=0;\n }",
"0>=a && 0<=b",
"0>=a",
"0",
"a",
"0<=b",
"0",
"b",
"{\n max=0;\n }",
"max=0",
"max",
"0",
"if(0>=c && 0<=d) {\n max=0;\n }",
"0>=c && 0<=d",
"0>=c",
"0",
"c",
"0<=d",
"0",
"d",
"{\n max=0;\n }",
"max=0",
"max",
"0",
"max=Math.max(max,a*c)",
"max",
"Math.max(max,a*c)",
"Math.max",
"Math",
"max",
"a*c",
"a",
"c",
"max=Math.max(max,a*d)",
"max",
"Math.max(max,a*d)",
"Math.max",
"Math",
"max",
"a*d",
"a",
"d",
"max=Math.max(max,b*c)",
"max",
"Math.max(max,b*c)",
"Math.max",
"Math",
"max",
"b*c",
"b",
"c",
"max=Math.max(max,b*d)",
"max",
"Math.max(max,b*d)",
"Math.max",
"Math",
"max",
"b*d",
"b",
"d",
"ans.append(max)",
"ans.append",
"ans",
"max",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"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 test=1;\n// test=input.scanInt();\n StringBuilder ans=new StringBuilder(\"\");\n for(int tt=1;tt<=test;tt++) {\n long a=input.scanInt();\n long b=input.scanInt();\n long c=input.scanInt();\n long d=input.scanInt();\n long max=Long.MIN_VALUE;\n if(0>=a && 0<=b) {\n max=0;\n }\n if(0>=c && 0<=d) {\n max=0;\n }\n max=Math.max(max,a*c);\n max=Math.max(max,a*d);\n max=Math.max(max,b*c);\n max=Math.max(max,b*d);\n ans.append(max);\n }\n System.out.println(ans);\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 test=1;\n// test=input.scanInt();\n StringBuilder ans=new StringBuilder(\"\");\n for(int tt=1;tt<=test;tt++) {\n long a=input.scanInt();\n long b=input.scanInt();\n long c=input.scanInt();\n long d=input.scanInt();\n long max=Long.MIN_VALUE;\n if(0>=a && 0<=b) {\n max=0;\n }\n if(0>=c && 0<=d) {\n max=0;\n }\n max=Math.max(max,a*c);\n max=Math.max(max,a*d);\n max=Math.max(max,b*c);\n max=Math.max(max,b*d);\n ans.append(max);\n }\n System.out.println(ans);\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 test=1;
// test=input.scanInt();
StringBuilder ans=new StringBuilder("");
for(int tt=1;tt<=test;tt++) {
long a=input.scanInt();
long b=input.scanInt();
long c=input.scanInt();
long d=input.scanInt();
long max=Long.MIN_VALUE;
if(0>=a && 0<=b) {
max=0;
}
if(0>=c && 0<=d) {
max=0;
}
max=Math.max(max,a*c);
max=Math.max(max,a*d);
max=Math.max(max,b*c);
max=Math.max(max,b*d);
ans.append(max);
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
4,
18,
13,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
4,
18,
13,
17,
14,
2,
2,
13,
40,
17,
2,
13,
40,
17,
4,
18,
13,
40,
17,
41,
13,
20,
4,
18,
13,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
4,
18,
13,
17,
14,
2,
2,
13,
40,
17,
2,
13,
40,
17,
4,
18,
13,
40,
17,
41,
13,
18,
13,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
2,
13,
17,
2,
13,
17,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
0,
13,
4,
18,
13,
13,
2,
13,
4,
18,
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
],
[
209,
11
],
[
209,
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
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
35,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
14,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
51,
52
],
[
14,
53
],
[
53,
54
],
[
53,
55
],
[
14,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
14,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
14,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
14,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
76,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
89,
90
],
[
14,
91
],
[
91,
92
],
[
91,
93
],
[
14,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
14,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
14,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
14,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
114,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
127,
128
],
[
14,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
131,
133
],
[
14,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
140,
142
],
[
135,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
147,
149
],
[
134,
150
],
[
150,
151
],
[
150,
152
],
[
14,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
153,
163
],
[
163,
164
],
[
164,
165
],
[
153,
166
],
[
167,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
167,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
174,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
174,
184
],
[
184,
185
],
[
185,
186
],
[
174,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
190,
193
],
[
190,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
197,
198
],
[
196,
199
],
[
14,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
200,
205
],
[
12,
206
],
[
206,
207
],
[
0,
208
],
[
208,
209
],
[
208,
210
]
]
| [
"/*\nIf you want to aim high, aim high\nDon't let that studying and grades consume you\nJust live life young\n******************************\nWhat do you think? What do you think?\n1st on Billboard, what do you think of it\nNext is a Grammy, what do you think of it\nHowever you think, I’m sorry, but shit, I have no fcking interest\n*******************************\nI'm standing on top of my Monopoly board\nThat means I'm on top of my game and it don't stop\ntil my hip don't hop anymore\nhttps://www.a2oj.com/Ladder16.html\n*******************************\nShining through the city with a little funk and soul\n*******************************\n300iq as writer = Sad!\n*/\nimport java.util.*;\nimport java.io.*;\nimport java.math.*;\n\n public class Main\n {\n public static void main(String hi[]) throws Exception\n {\n BufferedReader infile = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(infile.readLine());\n int A = Integer.parseInt(st.nextToken());\n int B = Integer.parseInt(st.nextToken());\n int C = Integer.parseInt(st.nextToken());\n int D = Integer.parseInt(st.nextToken());\n ArrayList<Integer> ls = new ArrayList<Integer>();\n ls.add(A);\n ls.add(B);\n if(A <= 1 && B >= 1)\n ls.add(1);\n if(A <= -1 && B >= -1)\n ls.add(-1);\n ArrayList<Integer> ls2 = new ArrayList<Integer>();\n ls2.add(C);\n ls2.add(D);\n if(C <= 1 && D >= 1)\n ls2.add(1);\n if(C <= -1 && D >= -1)\n ls2.add(-1);\n long res = Long.MIN_VALUE;\n if(A <= 0 && B >= 0 || C <= 0 && D >= 0)\n res = 0L;\n for(int a=0; a < ls.size(); a++)\n {\n long temp = ls.get(a);\n for(int b=0; b < ls2.size(); b++)\n res = Math.max(res, temp*ls2.get(b));\n }\n System.out.println(res);\n }\n }",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main\n {\n public static void main(String hi[]) throws Exception\n {\n BufferedReader infile = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(infile.readLine());\n int A = Integer.parseInt(st.nextToken());\n int B = Integer.parseInt(st.nextToken());\n int C = Integer.parseInt(st.nextToken());\n int D = Integer.parseInt(st.nextToken());\n ArrayList<Integer> ls = new ArrayList<Integer>();\n ls.add(A);\n ls.add(B);\n if(A <= 1 && B >= 1)\n ls.add(1);\n if(A <= -1 && B >= -1)\n ls.add(-1);\n ArrayList<Integer> ls2 = new ArrayList<Integer>();\n ls2.add(C);\n ls2.add(D);\n if(C <= 1 && D >= 1)\n ls2.add(1);\n if(C <= -1 && D >= -1)\n ls2.add(-1);\n long res = Long.MIN_VALUE;\n if(A <= 0 && B >= 0 || C <= 0 && D >= 0)\n res = 0L;\n for(int a=0; a < ls.size(); a++)\n {\n long temp = ls.get(a);\n for(int b=0; b < ls2.size(); b++)\n res = Math.max(res, temp*ls2.get(b));\n }\n System.out.println(res);\n }\n }",
"Main",
"public static void main(String hi[]) throws Exception\n {\n BufferedReader infile = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(infile.readLine());\n int A = Integer.parseInt(st.nextToken());\n int B = Integer.parseInt(st.nextToken());\n int C = Integer.parseInt(st.nextToken());\n int D = Integer.parseInt(st.nextToken());\n ArrayList<Integer> ls = new ArrayList<Integer>();\n ls.add(A);\n ls.add(B);\n if(A <= 1 && B >= 1)\n ls.add(1);\n if(A <= -1 && B >= -1)\n ls.add(-1);\n ArrayList<Integer> ls2 = new ArrayList<Integer>();\n ls2.add(C);\n ls2.add(D);\n if(C <= 1 && D >= 1)\n ls2.add(1);\n if(C <= -1 && D >= -1)\n ls2.add(-1);\n long res = Long.MIN_VALUE;\n if(A <= 0 && B >= 0 || C <= 0 && D >= 0)\n res = 0L;\n for(int a=0; a < ls.size(); a++)\n {\n long temp = ls.get(a);\n for(int b=0; b < ls2.size(); b++)\n res = Math.max(res, temp*ls2.get(b));\n }\n System.out.println(res);\n }",
"main",
"{\n BufferedReader infile = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(infile.readLine());\n int A = Integer.parseInt(st.nextToken());\n int B = Integer.parseInt(st.nextToken());\n int C = Integer.parseInt(st.nextToken());\n int D = Integer.parseInt(st.nextToken());\n ArrayList<Integer> ls = new ArrayList<Integer>();\n ls.add(A);\n ls.add(B);\n if(A <= 1 && B >= 1)\n ls.add(1);\n if(A <= -1 && B >= -1)\n ls.add(-1);\n ArrayList<Integer> ls2 = new ArrayList<Integer>();\n ls2.add(C);\n ls2.add(D);\n if(C <= 1 && D >= 1)\n ls2.add(1);\n if(C <= -1 && D >= -1)\n ls2.add(-1);\n long res = Long.MIN_VALUE;\n if(A <= 0 && B >= 0 || C <= 0 && D >= 0)\n res = 0L;\n for(int a=0; a < ls.size(); a++)\n {\n long temp = ls.get(a);\n for(int b=0; b < ls2.size(); b++)\n res = Math.max(res, temp*ls2.get(b));\n }\n System.out.println(res);\n }",
"BufferedReader infile = new BufferedReader(new InputStreamReader(System.in));",
"infile",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st = new StringTokenizer(infile.readLine());",
"st",
"new StringTokenizer(infile.readLine())",
"int A = Integer.parseInt(st.nextToken());",
"A",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int B = Integer.parseInt(st.nextToken());",
"B",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int C = Integer.parseInt(st.nextToken());",
"C",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int D = Integer.parseInt(st.nextToken());",
"D",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"ArrayList<Integer> ls = new ArrayList<Integer>();",
"ls",
"new ArrayList<Integer>()",
"ls.add(A)",
"ls.add",
"ls",
"A",
"ls.add(B)",
"ls.add",
"ls",
"B",
"if(A <= 1 && B >= 1)\n ls.add(1);",
"A <= 1 && B >= 1",
"A <= 1",
"A",
"1",
"B >= 1",
"B",
"1",
"ls.add(1)",
"ls.add",
"ls",
"1",
"if(A <= -1 && B >= -1)\n ls.add(-1);",
"A <= -1 && B >= -1",
"A <= -1",
"A",
"-1",
"1",
"B >= -1",
"B",
"-1",
"1",
"ls.add(-1)",
"ls.add",
"ls",
"-1",
"1",
"ArrayList<Integer> ls2 = new ArrayList<Integer>();",
"ls2",
"new ArrayList<Integer>()",
"ls2.add(C)",
"ls2.add",
"ls2",
"C",
"ls2.add(D)",
"ls2.add",
"ls2",
"D",
"if(C <= 1 && D >= 1)\n ls2.add(1);",
"C <= 1 && D >= 1",
"C <= 1",
"C",
"1",
"D >= 1",
"D",
"1",
"ls2.add(1)",
"ls2.add",
"ls2",
"1",
"if(C <= -1 && D >= -1)\n ls2.add(-1);",
"C <= -1 && D >= -1",
"C <= -1",
"C",
"-1",
"1",
"D >= -1",
"D",
"-1",
"1",
"ls2.add(-1)",
"ls2.add",
"ls2",
"-1",
"1",
"long res = Long.MIN_VALUE;",
"res",
"Long.MIN_VALUE",
"Long",
"Long.MIN_VALUE",
"if(A <= 0 && B >= 0 || C <= 0 && D >= 0)\n res = 0L;",
"A <= 0 && B >= 0 || C <= 0 && D >= 0",
"A <= 0 && B >= 0",
"A <= 0",
"A",
"0",
"B >= 0",
"B",
"0",
"C <= 0 && D >= 0",
"C <= 0",
"C",
"0",
"D >= 0",
"D",
"0",
"res = 0L",
"res",
"0L",
"for(int a=0; a < ls.size(); a++)\n {\n long temp = ls.get(a);\n for(int b=0; b < ls2.size(); b++)\n res = Math.max(res, temp*ls2.get(b));\n }",
"int a=0;",
"int a=0;",
"a",
"0",
"a < ls.size()",
"a",
"ls.size()",
"ls.size",
"ls",
"a++",
"a++",
"a",
"{\n long temp = ls.get(a);\n for(int b=0; b < ls2.size(); b++)\n res = Math.max(res, temp*ls2.get(b));\n }",
"{\n long temp = ls.get(a);\n for(int b=0; b < ls2.size(); b++)\n res = Math.max(res, temp*ls2.get(b));\n }",
"long temp = ls.get(a);",
"temp",
"ls.get(a)",
"ls.get",
"ls",
"a",
"for(int b=0; b < ls2.size(); b++)\n res = Math.max(res, temp*ls2.get(b));",
"int b=0;",
"int b=0;",
"b",
"0",
"b < ls2.size()",
"b",
"ls2.size()",
"ls2.size",
"ls2",
"b++",
"b++",
"b",
"res = Math.max(res, temp*ls2.get(b));",
"res = Math.max(res, temp*ls2.get(b))",
"res",
"Math.max(res, temp*ls2.get(b))",
"Math.max",
"Math",
"res",
"temp*ls2.get(b)",
"temp",
"ls2.get(b)",
"ls2.get",
"ls2",
"b",
"System.out.println(res)",
"System.out.println",
"System.out",
"System",
"System.out",
"res",
"String hi[]",
"hi",
"public class Main\n {\n public static void main(String hi[]) throws Exception\n {\n BufferedReader infile = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(infile.readLine());\n int A = Integer.parseInt(st.nextToken());\n int B = Integer.parseInt(st.nextToken());\n int C = Integer.parseInt(st.nextToken());\n int D = Integer.parseInt(st.nextToken());\n ArrayList<Integer> ls = new ArrayList<Integer>();\n ls.add(A);\n ls.add(B);\n if(A <= 1 && B >= 1)\n ls.add(1);\n if(A <= -1 && B >= -1)\n ls.add(-1);\n ArrayList<Integer> ls2 = new ArrayList<Integer>();\n ls2.add(C);\n ls2.add(D);\n if(C <= 1 && D >= 1)\n ls2.add(1);\n if(C <= -1 && D >= -1)\n ls2.add(-1);\n long res = Long.MIN_VALUE;\n if(A <= 0 && B >= 0 || C <= 0 && D >= 0)\n res = 0L;\n for(int a=0; a < ls.size(); a++)\n {\n long temp = ls.get(a);\n for(int b=0; b < ls2.size(); b++)\n res = Math.max(res, temp*ls2.get(b));\n }\n System.out.println(res);\n }\n }",
"public class Main\n {\n public static void main(String hi[]) throws Exception\n {\n BufferedReader infile = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(infile.readLine());\n int A = Integer.parseInt(st.nextToken());\n int B = Integer.parseInt(st.nextToken());\n int C = Integer.parseInt(st.nextToken());\n int D = Integer.parseInt(st.nextToken());\n ArrayList<Integer> ls = new ArrayList<Integer>();\n ls.add(A);\n ls.add(B);\n if(A <= 1 && B >= 1)\n ls.add(1);\n if(A <= -1 && B >= -1)\n ls.add(-1);\n ArrayList<Integer> ls2 = new ArrayList<Integer>();\n ls2.add(C);\n ls2.add(D);\n if(C <= 1 && D >= 1)\n ls2.add(1);\n if(C <= -1 && D >= -1)\n ls2.add(-1);\n long res = Long.MIN_VALUE;\n if(A <= 0 && B >= 0 || C <= 0 && D >= 0)\n res = 0L;\n for(int a=0; a < ls.size(); a++)\n {\n long temp = ls.get(a);\n for(int b=0; b < ls2.size(); b++)\n res = Math.max(res, temp*ls2.get(b));\n }\n System.out.println(res);\n }\n }",
"Main"
]
| /*
If you want to aim high, aim high
Don't let that studying and grades consume you
Just live life young
******************************
What do you think? What do you think?
1st on Billboard, what do you think of it
Next is a Grammy, what do you think of it
However you think, I’m sorry, but shit, I have no fcking interest
*******************************
I'm standing on top of my Monopoly board
That means I'm on top of my game and it don't stop
til my hip don't hop anymore
https://www.a2oj.com/Ladder16.html
*******************************
Shining through the city with a little funk and soul
*******************************
300iq as writer = Sad!
*/
import java.util.*;
import java.io.*;
import java.math.*;
public class Main
{
public static void main(String hi[]) throws Exception
{
BufferedReader infile = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(infile.readLine());
int A = Integer.parseInt(st.nextToken());
int B = Integer.parseInt(st.nextToken());
int C = Integer.parseInt(st.nextToken());
int D = Integer.parseInt(st.nextToken());
ArrayList<Integer> ls = new ArrayList<Integer>();
ls.add(A);
ls.add(B);
if(A <= 1 && B >= 1)
ls.add(1);
if(A <= -1 && B >= -1)
ls.add(-1);
ArrayList<Integer> ls2 = new ArrayList<Integer>();
ls2.add(C);
ls2.add(D);
if(C <= 1 && D >= 1)
ls2.add(1);
if(C <= -1 && D >= -1)
ls2.add(-1);
long res = Long.MIN_VALUE;
if(A <= 0 && B >= 0 || C <= 0 && D >= 0)
res = 0L;
for(int a=0; a < ls.size(); a++)
{
long temp = ls.get(a);
for(int b=0; b < ls2.size(); b++)
res = Math.max(res, temp*ls2.get(b));
}
System.out.println(res);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
39,
2,
13,
13,
2,
13,
13,
2,
13,
13,
2,
13,
13,
41,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
88,
5
],
[
88,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
34,
41
],
[
41,
42
],
[
41,
43
],
[
34,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
52,
62
],
[
62,
63
],
[
63,
64
],
[
52,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
6,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
]
| [
"import java.util.Scanner;\n\n/**\n * B - Product Max\n * 整数 a,b,c,d が与えられます。\n * a≤x≤b,c≤y≤d を満たす整数 x,y について、x×y の最大値はいくつですか。\n */\npublic class Main {\n\n public static void main( String[] args ) {\n\n Scanner sc = new Scanner( System.in );\n // 入力値\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n\n long[] vals = {a * c, a * d, b * c, b * d};\n long max = vals[0];\n for ( int i = 1; i < vals.length; i++ ) {\n max = Math.max( max, vals[i] );\n }\n\n System.out.println( max );\n\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main( String[] args ) {\n\n Scanner sc = new Scanner( System.in );\n // 入力値\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n\n long[] vals = {a * c, a * d, b * c, b * d};\n long max = vals[0];\n for ( int i = 1; i < vals.length; i++ ) {\n max = Math.max( max, vals[i] );\n }\n\n System.out.println( max );\n\n sc.close();\n }\n}",
"Main",
"public static void main( String[] args ) {\n\n Scanner sc = new Scanner( System.in );\n // 入力値\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n\n long[] vals = {a * c, a * d, b * c, b * d};\n long max = vals[0];\n for ( int i = 1; i < vals.length; i++ ) {\n max = Math.max( max, vals[i] );\n }\n\n System.out.println( max );\n\n sc.close();\n }",
"main",
"{\n\n Scanner sc = new Scanner( System.in );\n // 入力値\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n\n long[] vals = {a * c, a * d, b * c, b * d};\n long max = vals[0];\n for ( int i = 1; i < vals.length; i++ ) {\n max = Math.max( max, vals[i] );\n }\n\n System.out.println( max );\n\n sc.close();\n }",
"Scanner sc = new Scanner( System.in );",
"sc",
"new Scanner( System.in )",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long[] vals = {a * c, a * d, b * c, b * d};",
"vals",
"{a * c, a * d, b * c, b * d}",
"a * c",
"a",
"c",
"a * d",
"a",
"d",
"b * c",
"b",
"c",
"b * d",
"b",
"d",
"long max = vals[0];",
"max",
"vals[0]",
"vals",
"0",
"for ( int i = 1; i < vals.length; i++ ) {\n max = Math.max( max, vals[i] );\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < vals.length",
"i",
"vals.length",
"vals",
"vals.length",
"i++",
"i++",
"i",
"{\n max = Math.max( max, vals[i] );\n }",
"{\n max = Math.max( max, vals[i] );\n }",
"max = Math.max( max, vals[i] )",
"max",
"Math.max( max, vals[i] )",
"Math.max",
"Math",
"max",
"vals[i]",
"vals",
"i",
"System.out.println( max )",
"System.out.println",
"System.out",
"System",
"System.out",
"max",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n public static void main( String[] args ) {\n\n Scanner sc = new Scanner( System.in );\n // 入力値\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n\n long[] vals = {a * c, a * d, b * c, b * d};\n long max = vals[0];\n for ( int i = 1; i < vals.length; i++ ) {\n max = Math.max( max, vals[i] );\n }\n\n System.out.println( max );\n\n sc.close();\n }\n}",
"public class Main {\n\n public static void main( String[] args ) {\n\n Scanner sc = new Scanner( System.in );\n // 入力値\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n\n long[] vals = {a * c, a * d, b * c, b * d};\n long max = vals[0];\n for ( int i = 1; i < vals.length; i++ ) {\n max = Math.max( max, vals[i] );\n }\n\n System.out.println( max );\n\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
/**
* B - Product Max
* 整数 a,b,c,d が与えられます。
* a≤x≤b,c≤y≤d を満たす整数 x,y について、x×y の最大値はいくつですか。
*/
public class Main {
public static void main( String[] args ) {
Scanner sc = new Scanner( System.in );
// 入力値
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
long[] vals = {a * c, a * d, b * c, b * d};
long max = vals[0];
for ( int i = 1; i < vals.length; i++ ) {
max = Math.max( max, vals[i] );
}
System.out.println( max );
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
4,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
18,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
0,
13,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
90,
5
],
[
90,
6
],
[
6,
7
],
[
6,
8
],
[
90,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
9,
14
],
[
14,
15
],
[
90,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
18,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
18,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
18,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
18,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
18,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
18,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
18,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
18,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
18,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
78,
82
],
[
18,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
]
| [
"import java.util.*;\npublic class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\t\tsolve();\n\t}\n\n\tpublic static void solve() { \n\t\t\n\t\tlong a = sc.nextInt();\n\t\tlong b = sc.nextInt();\n\t\tlong c = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tlong max = Long.MIN_VALUE;\n\t\tlong n1 = a * c;\n\t\tlong n2 = a * d;\n\t\tlong n3 = b * c;\n\t\tlong n4 = b * d;\n\t\tmax = Math.max(max, Math.max(n1, Math.max(n2, Math.max(n3, n4))));\n\t\tSystem.out.println(max);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\t\tsolve();\n\t}\n\n\tpublic static void solve() { \n\t\t\n\t\tlong a = sc.nextInt();\n\t\tlong b = sc.nextInt();\n\t\tlong c = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tlong max = Long.MIN_VALUE;\n\t\tlong n1 = a * c;\n\t\tlong n2 = a * d;\n\t\tlong n3 = b * c;\n\t\tlong n4 = b * d;\n\t\tmax = Math.max(max, Math.max(n1, Math.max(n2, Math.max(n3, n4))));\n\t\tSystem.out.println(max);\n\t}\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\t\t\tsolve();\n\t}",
"main",
"{\n\t\t\tsolve();\n\t}",
"solve()",
"solve",
"String[] args",
"args",
"public static void solve() { \n\t\t\n\t\tlong a = sc.nextInt();\n\t\tlong b = sc.nextInt();\n\t\tlong c = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tlong max = Long.MIN_VALUE;\n\t\tlong n1 = a * c;\n\t\tlong n2 = a * d;\n\t\tlong n3 = b * c;\n\t\tlong n4 = b * d;\n\t\tmax = Math.max(max, Math.max(n1, Math.max(n2, Math.max(n3, n4))));\n\t\tSystem.out.println(max);\n\t}",
"solve",
"{ \n\t\t\n\t\tlong a = sc.nextInt();\n\t\tlong b = sc.nextInt();\n\t\tlong c = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tlong max = Long.MIN_VALUE;\n\t\tlong n1 = a * c;\n\t\tlong n2 = a * d;\n\t\tlong n3 = b * c;\n\t\tlong n4 = b * d;\n\t\tmax = Math.max(max, Math.max(n1, Math.max(n2, Math.max(n3, n4))));\n\t\tSystem.out.println(max);\n\t}",
"long a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long max = Long.MIN_VALUE;",
"max",
"Long.MIN_VALUE",
"Long",
"Long.MIN_VALUE",
"long n1 = a * c;",
"n1",
"a * c",
"a",
"c",
"long n2 = a * d;",
"n2",
"a * d",
"a",
"d",
"long n3 = b * c;",
"n3",
"b * c",
"b",
"c",
"long n4 = b * d;",
"n4",
"b * d",
"b",
"d",
"max = Math.max(max, Math.max(n1, Math.max(n2, Math.max(n3, n4))))",
"max",
"Math.max(max, Math.max(n1, Math.max(n2, Math.max(n3, n4))))",
"Math.max",
"Math",
"max",
"Math.max(n1, Math.max(n2, Math.max(n3, n4)))",
"Math.max",
"Math",
"n1",
"Math.max(n2, Math.max(n3, n4))",
"Math.max",
"Math",
"n2",
"Math.max(n3, n4)",
"Math.max",
"Math",
"n3",
"n4",
"System.out.println(max)",
"System.out.println",
"System.out",
"System",
"System.out",
"max",
"public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\t\tsolve();\n\t}\n\n\tpublic static void solve() { \n\t\t\n\t\tlong a = sc.nextInt();\n\t\tlong b = sc.nextInt();\n\t\tlong c = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tlong max = Long.MIN_VALUE;\n\t\tlong n1 = a * c;\n\t\tlong n2 = a * d;\n\t\tlong n3 = b * c;\n\t\tlong n4 = b * d;\n\t\tmax = Math.max(max, Math.max(n1, Math.max(n2, Math.max(n3, n4))));\n\t\tSystem.out.println(max);\n\t}\n}",
"public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\t\tsolve();\n\t}\n\n\tpublic static void solve() { \n\t\t\n\t\tlong a = sc.nextInt();\n\t\tlong b = sc.nextInt();\n\t\tlong c = sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tlong max = Long.MIN_VALUE;\n\t\tlong n1 = a * c;\n\t\tlong n2 = a * d;\n\t\tlong n3 = b * c;\n\t\tlong n4 = b * d;\n\t\tmax = Math.max(max, Math.max(n1, Math.max(n2, Math.max(n3, n4))));\n\t\tSystem.out.println(max);\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
solve();
}
public static void solve() {
long a = sc.nextInt();
long b = sc.nextInt();
long c = sc.nextInt();
long d = sc.nextInt();
long max = Long.MIN_VALUE;
long n1 = a * c;
long n2 = a * d;
long n3 = b * c;
long n4 = b * d;
max = Math.max(max, Math.max(n1, Math.max(n2, Math.max(n3, n4))));
System.out.println(max);
}
} |
[
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,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
18,
13,
13,
14,
2,
2,
13,
17,
2,
17,
13,
30,
0,
13,
17,
14,
2,
2,
13,
17,
2,
17,
13,
30,
0,
13,
17,
41,
13,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
30,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
29,
13,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
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,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
17,
13,
13,
17,
0,
18,
13,
13,
17,
29,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
14,
2,
18,
13,
13,
17,
0,
13,
18,
13,
17,
41,
13,
17,
42,
2,
18,
13,
17,
17,
30,
14,
2,
2,
18,
13,
17,
17,
17,
0,
13,
2,
2,
13,
18,
13,
17,
13,
0,
18,
13,
17,
17,
0,
18,
13,
17,
2,
2,
18,
13,
17,
18,
13,
17,
13,
29,
13,
23,
13,
12,
13,
30,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
12,
13,
30,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
13,
17,
4,
18,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
28,
13,
13,
30,
30,
41,
13,
17,
14,
4,
18,
4,
18,
13,
30,
41,
13,
4,
18,
4,
18,
4,
18,
13,
35,
13,
34,
17,
30,
30,
41,
13,
13,
4,
13,
2,
2,
13,
17,
4,
18,
13,
13,
3,
34,
17,
30,
30,
41,
13,
13,
4,
13,
2,
2,
13,
17,
4,
18,
13,
13,
3,
34,
17,
30,
30,
41,
13,
13,
4,
13,
2,
2,
13,
17,
4,
18,
13,
13,
3,
34,
17,
30,
30,
41,
13,
13,
4,
13,
2,
2,
13,
17,
4,
18,
13,
13,
3,
34,
17,
30,
30,
41,
13,
13,
4,
13,
2,
2,
13,
17,
4,
18,
13,
13,
3,
34,
17,
30,
30,
41,
13,
13,
4,
13,
2,
2,
13,
17,
4,
18,
13,
13,
3,
34,
17,
30,
30,
41,
13,
13,
4,
13,
2,
2,
13,
17,
4,
18,
13,
13,
3,
34,
17,
30,
30,
41,
13,
13,
4,
13,
2,
2,
13,
17,
4,
18,
13,
13,
3,
34,
17,
30,
30,
41,
13,
13,
4,
13,
2,
2,
13,
17,
4,
18,
13,
13,
3,
34,
17,
30,
30,
41,
13,
13,
4,
13,
2,
2,
13,
17,
4,
18,
13,
13,
3,
34,
30,
30,
4,
13,
2,
13,
17,
3,
0,
13,
17,
14,
2,
4,
18,
13,
18,
13,
30,
4,
13,
2,
2,
13,
17,
13,
0,
13,
17,
14,
2,
4,
18,
13,
18,
13,
30,
4,
13,
2,
2,
13,
17,
13,
0,
13,
17,
14,
2,
4,
18,
13,
18,
13,
30,
4,
13,
2,
2,
13,
17,
13,
0,
13,
17,
14,
2,
4,
18,
13,
18,
13,
30,
4,
13,
2,
2,
13,
17,
13,
0,
13,
17,
14,
2,
4,
18,
13,
18,
13,
30,
4,
13,
2,
2,
13,
17,
13,
0,
13,
17,
14,
2,
4,
18,
13,
18,
13,
30,
4,
13,
2,
2,
13,
17,
13,
0,
13,
17,
14,
40,
13,
30,
4,
13,
2,
2,
13,
17,
13,
40,
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
],
[
813,
20
],
[
813,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
23,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
23,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
23,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
23,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
23,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
23,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
23,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
23,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
23,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
72,
76
],
[
23,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
79,
83
],
[
23,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
86,
90
],
[
23,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
93,
97
],
[
23,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
23,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
23,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
120,
122
],
[
115,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
23,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
129,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
133,
137
],
[
137,
138
],
[
138,
139
],
[
137,
140
],
[
137,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
141,
145
],
[
23,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
23,
150
],
[
150,
151
],
[
151,
152
],
[
21,
153
],
[
153,
154
],
[
813,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
161,
162
],
[
161,
163
],
[
161,
164
],
[
165,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
166,
169
],
[
157,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
157,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
174,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
174,
184
],
[
184,
185
],
[
185,
186
],
[
174,
187
],
[
188,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
193,
194
],
[
194,
195
],
[
193,
196
],
[
157,
197
],
[
197,
198
],
[
155,
199
],
[
199,
200
],
[
813,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
206,
207
],
[
206,
208
],
[
201,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
212,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
217,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
211,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
201,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
236,
239
],
[
239,
240
],
[
201,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
245,
248
],
[
248,
249
],
[
201,
250
],
[
250,
251
],
[
250,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
254,
257
],
[
257,
258
],
[
201,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
261,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
266,
271
],
[
271,
272
],
[
271,
273
],
[
266,
274
],
[
274,
275
],
[
275,
276
],
[
266,
277
],
[
278,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
279,
283
],
[
283,
284
],
[
261,
285
],
[
285,
286
],
[
259,
287
],
[
287,
288
],
[
201,
289
],
[
289,
290
],
[
289,
291
],
[
291,
292
],
[
292,
293
],
[
292,
294
],
[
291,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
296,
301
],
[
301,
302
],
[
301,
303
],
[
296,
304
],
[
304,
305
],
[
305,
306
],
[
296,
307
],
[
308,
308
],
[
308,
309
],
[
309,
310
],
[
310,
311
],
[
310,
312
],
[
309,
313
],
[
313,
314
],
[
291,
315
],
[
315,
316
],
[
289,
317
],
[
317,
318
],
[
201,
319
],
[
319,
320
],
[
319,
321
],
[
321,
322
],
[
322,
323
],
[
322,
324
],
[
321,
326
],
[
326,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
326,
331
],
[
331,
332
],
[
331,
333
],
[
326,
334
],
[
334,
335
],
[
335,
336
],
[
326,
337
],
[
338,
338
],
[
338,
339
],
[
339,
340
],
[
340,
341
],
[
341,
342
],
[
342,
343
],
[
342,
344
],
[
341,
345
],
[
340,
346
],
[
339,
347
],
[
347,
348
],
[
348,
349
],
[
348,
350
],
[
347,
351
],
[
321,
352
],
[
352,
353
],
[
319,
354
],
[
354,
355
],
[
201,
356
],
[
356,
357
],
[
356,
358
],
[
358,
359
],
[
359,
360
],
[
359,
361
],
[
361,
362
],
[
361,
363
],
[
358,
364
],
[
364,
365
],
[
365,
366
],
[
366,
367
],
[
366,
368
],
[
365,
369
],
[
364,
370
],
[
370,
371
],
[
370,
372
],
[
372,
373
],
[
372,
374
],
[
358,
375
],
[
375,
376
],
[
375,
377
],
[
358,
378
],
[
378,
379
],
[
379,
380
],
[
380,
381
],
[
380,
382
],
[
379,
383
],
[
378,
384
],
[
384,
385
],
[
385,
386
],
[
386,
387
],
[
387,
388
],
[
388,
389
],
[
388,
390
],
[
387,
391
],
[
386,
392
],
[
385,
393
],
[
393,
394
],
[
393,
395
],
[
395,
396
],
[
396,
397
],
[
396,
398
],
[
398,
399
],
[
398,
400
],
[
395,
401
],
[
384,
402
],
[
402,
403
],
[
403,
404
],
[
403,
405
],
[
402,
406
],
[
384,
407
],
[
407,
408
],
[
408,
409
],
[
408,
410
],
[
407,
411
],
[
411,
412
],
[
412,
413
],
[
413,
414
],
[
413,
415
],
[
412,
416
],
[
416,
417
],
[
416,
418
],
[
411,
419
],
[
358,
420
],
[
420,
421
],
[
356,
422
],
[
422,
423
],
[
201,
424
],
[
424,
425
],
[
424,
426
],
[
426,
427
],
[
427,
428
],
[
427,
429
],
[
427,
430
],
[
431,
431
],
[
431,
432
],
[
432,
433
],
[
433,
434
],
[
434,
435
],
[
434,
436
],
[
432,
437
],
[
437,
438
],
[
437,
439
],
[
424,
440
],
[
440,
441
],
[
201,
442
],
[
442,
443
],
[
442,
444
],
[
444,
445
],
[
445,
446
],
[
445,
447
],
[
445,
448
],
[
449,
449
],
[
449,
450
],
[
450,
451
],
[
451,
452
],
[
452,
453
],
[
452,
454
],
[
450,
455
],
[
455,
456
],
[
455,
457
],
[
444,
458
],
[
458,
459
],
[
459,
460
],
[
460,
461
],
[
460,
462
],
[
442,
463
],
[
463,
464
],
[
201,
465
],
[
465,
466
],
[
465,
467
],
[
467,
468
],
[
468,
469
],
[
468,
470
],
[
467,
471
],
[
471,
472
],
[
471,
473
],
[
471,
474
],
[
475,
475
],
[
475,
476
],
[
476,
477
],
[
476,
478
],
[
475,
479
],
[
479,
480
],
[
480,
481
],
[
481,
482
],
[
482,
483
],
[
483,
484
],
[
479,
485
],
[
485,
486
],
[
486,
487
],
[
486,
488
],
[
488,
489
],
[
489,
490
],
[
490,
491
],
[
491,
492
],
[
492,
493
],
[
493,
494
],
[
485,
495
],
[
495,
496
],
[
495,
497
],
[
497,
498
],
[
497,
499
],
[
499,
500
],
[
500,
501
],
[
501,
502
],
[
501,
503
],
[
500,
504
],
[
504,
505
],
[
504,
506
],
[
507,
507
],
[
507,
508
],
[
507,
509
],
[
507,
510
],
[
510,
511
],
[
511,
512
],
[
510,
513
],
[
500,
514
],
[
495,
515
],
[
515,
516
],
[
515,
517
],
[
517,
518
],
[
518,
519
],
[
519,
520
],
[
519,
521
],
[
518,
522
],
[
522,
523
],
[
522,
524
],
[
525,
525
],
[
525,
526
],
[
525,
527
],
[
525,
528
],
[
528,
529
],
[
529,
530
],
[
528,
531
],
[
518,
532
],
[
495,
533
],
[
533,
534
],
[
533,
535
],
[
535,
536
],
[
536,
537
],
[
537,
538
],
[
537,
539
],
[
536,
540
],
[
540,
541
],
[
540,
542
],
[
543,
543
],
[
543,
544
],
[
543,
545
],
[
543,
546
],
[
546,
547
],
[
547,
548
],
[
546,
549
],
[
536,
550
],
[
495,
551
],
[
551,
552
],
[
551,
553
],
[
553,
554
],
[
554,
555
],
[
555,
556
],
[
555,
557
],
[
554,
558
],
[
558,
559
],
[
558,
560
],
[
561,
561
],
[
561,
562
],
[
561,
563
],
[
561,
564
],
[
564,
565
],
[
565,
566
],
[
564,
567
],
[
554,
568
],
[
495,
569
],
[
569,
570
],
[
569,
571
],
[
571,
572
],
[
572,
573
],
[
573,
574
],
[
573,
575
],
[
572,
576
],
[
576,
577
],
[
576,
578
],
[
579,
579
],
[
579,
580
],
[
579,
581
],
[
579,
582
],
[
582,
583
],
[
583,
584
],
[
582,
585
],
[
572,
586
],
[
495,
587
],
[
587,
588
],
[
587,
589
],
[
589,
590
],
[
590,
591
],
[
591,
592
],
[
591,
593
],
[
590,
594
],
[
594,
595
],
[
594,
596
],
[
597,
597
],
[
597,
598
],
[
597,
599
],
[
597,
600
],
[
600,
601
],
[
601,
602
],
[
600,
603
],
[
590,
604
],
[
495,
605
],
[
605,
606
],
[
605,
607
],
[
607,
608
],
[
608,
609
],
[
609,
610
],
[
609,
611
],
[
608,
612
],
[
612,
613
],
[
612,
614
],
[
615,
615
],
[
615,
616
],
[
615,
617
],
[
615,
618
],
[
618,
619
],
[
619,
620
],
[
618,
621
],
[
608,
622
],
[
495,
623
],
[
623,
624
],
[
623,
625
],
[
625,
626
],
[
626,
627
],
[
627,
628
],
[
627,
629
],
[
626,
630
],
[
630,
631
],
[
630,
632
],
[
633,
633
],
[
633,
634
],
[
633,
635
],
[
633,
636
],
[
636,
637
],
[
637,
638
],
[
636,
639
],
[
626,
640
],
[
495,
641
],
[
641,
642
],
[
641,
643
],
[
643,
644
],
[
644,
645
],
[
645,
646
],
[
645,
647
],
[
644,
648
],
[
648,
649
],
[
648,
650
],
[
651,
651
],
[
651,
652
],
[
651,
653
],
[
651,
654
],
[
654,
655
],
[
655,
656
],
[
654,
657
],
[
644,
658
],
[
495,
659
],
[
659,
660
],
[
659,
661
],
[
661,
662
],
[
662,
663
],
[
663,
664
],
[
663,
665
],
[
662,
666
],
[
666,
667
],
[
666,
668
],
[
669,
669
],
[
669,
670
],
[
669,
671
],
[
669,
672
],
[
672,
673
],
[
673,
674
],
[
672,
675
],
[
662,
676
],
[
495,
677
],
[
677,
678
],
[
678,
679
],
[
679,
680
],
[
680,
681
],
[
680,
682
],
[
682,
683
],
[
682,
684
],
[
679,
685
],
[
485,
686
],
[
686,
687
],
[
686,
688
],
[
475,
689
],
[
689,
690
],
[
690,
691
],
[
691,
692
],
[
692,
693
],
[
690,
694
],
[
694,
695
],
[
689,
696
],
[
696,
697
],
[
697,
698
],
[
697,
699
],
[
700,
700
],
[
700,
701
],
[
700,
702
],
[
700,
703
],
[
696,
704
],
[
704,
705
],
[
704,
706
],
[
475,
707
],
[
707,
708
],
[
708,
709
],
[
709,
710
],
[
710,
711
],
[
708,
712
],
[
712,
713
],
[
707,
714
],
[
714,
715
],
[
715,
716
],
[
715,
717
],
[
718,
718
],
[
718,
719
],
[
718,
720
],
[
718,
721
],
[
714,
722
],
[
722,
723
],
[
722,
724
],
[
475,
725
],
[
725,
726
],
[
726,
727
],
[
727,
728
],
[
728,
729
],
[
726,
730
],
[
730,
731
],
[
725,
732
],
[
732,
733
],
[
733,
734
],
[
733,
735
],
[
736,
736
],
[
736,
737
],
[
736,
738
],
[
736,
739
],
[
732,
740
],
[
740,
741
],
[
740,
742
],
[
475,
743
],
[
743,
744
],
[
744,
745
],
[
745,
746
],
[
746,
747
],
[
744,
748
],
[
748,
749
],
[
743,
750
],
[
750,
751
],
[
751,
752
],
[
751,
753
],
[
754,
754
],
[
754,
755
],
[
754,
756
],
[
754,
757
],
[
750,
758
],
[
758,
759
],
[
758,
760
],
[
475,
761
],
[
761,
762
],
[
762,
763
],
[
763,
764
],
[
764,
765
],
[
762,
766
],
[
766,
767
],
[
761,
768
],
[
768,
769
],
[
769,
770
],
[
769,
771
],
[
772,
772
],
[
772,
773
],
[
772,
774
],
[
772,
775
],
[
768,
776
],
[
776,
777
],
[
776,
778
],
[
475,
779
],
[
779,
780
],
[
780,
781
],
[
781,
782
],
[
782,
783
],
[
780,
784
],
[
784,
785
],
[
779,
786
],
[
786,
787
],
[
787,
788
],
[
787,
789
],
[
790,
790
],
[
790,
791
],
[
790,
792
],
[
790,
793
],
[
786,
794
],
[
794,
795
],
[
794,
796
],
[
475,
797
],
[
797,
798
],
[
798,
799
],
[
797,
800
],
[
800,
801
],
[
801,
802
],
[
801,
803
],
[
804,
804
],
[
804,
805
],
[
804,
806
],
[
804,
807
],
[
475,
808
],
[
808,
809
],
[
465,
810
],
[
810,
811
],
[
0,
812
],
[
812,
813
],
[
812,
814
]
]
| [
"import java.io.*;\nimport java.math.BigInteger;\nimport java.util.*;\nimport static java.lang.Math.PI;\nimport static java.lang.System.in;\nimport static java.lang.System.out;\n\npublic class Main\n{\n public static void main(String[] args) throws Exception \n {\n Foster sc = new Foster();\n PrintWriter p = new PrintWriter(out);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n long ans1 = a*c;\n long ans2= a*d;\n long ans3 = b*c;\n long ans4 = b*d;\n long minAB = Math.min(a,b);\n long maxAB = Math.max(a,b);\n long minCD = Math.min(c,d);\n long maxCD = Math.max(c,d);\n long zero = Long.MIN_VALUE;\n if(minAB <= 0 && 0 <= maxAB)\n {\n zero = 0;\n }\n if(minCD <= 0 && 0 <= maxCD)\n {\n zero = 0;\n }\n long ans = Math.max(zero, Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4))));\n p.println(ans);\n p.close();\n }\n/*\n*/ \n/*\n1. Check overflow in pow function or in general\n2. Check indices of read array function\n3. Think of an easier solution because the problems you solve are always easy\n4. Check iterator of loop\n5. If still doesn't work, then jump from the 729th floor 'coz \"beta tumse na ho paayega\"\n\n Move to top!!\n*/\n\n static long[] sort(long[] a)\n {\n ArrayList<Long> arr = new ArrayList<>();\n for(long i : a)\n {\n arr.add(i);\n }\n Collections.sort(arr);\n for(int i = 0 ; i < arr.size(); i++)\n {\n a[i] = arr.get(i);\n }\n return a;\n }\n \n static class Foster \n {\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n StringTokenizer st = new StringTokenizer(\"\");\n String next() \n {\n while (!st.hasMoreTokens())\n try \n {\n st = new StringTokenizer(br.readLine());\n } \n catch (IOException e) \n {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n int nextInt() \n {\n return Integer.parseInt(next());\n }\n long nextLong() \n {\n return Long.parseLong(next());\n }\n double nextDouble() \n {\n return Double.parseDouble(next());\n }\n int[] intArray(int n) // Check indices\n {\n int arr[] = new int[n];\n for(int i = 0; i < n; i++)\n {\n arr[i] = nextInt();\n }\n return arr;\n }\n long[] longArray(int n) // Check indices\n {\n long arr[] = new long[n];\n for(int i = 0; i < n; i++)\n {\n arr[i] = nextLong();\n }\n return arr;\n }\n int[] getBits(int n) //in Reverse Order\n {\n int a[] = new int[31];\n for(int i = 0; i < 31; i++)\n {\n if(((1<<i) & n) != 0)\n a[i] = 1;\n }\n return a;\n }\n static long pow(long... a)\n {\n long mod = Long.MAX_VALUE;\n if(a.length == 3) mod = a[2];\n long res = 1;\n while(a[1] > 0)\n {\n if((a[1] & 1) == 1)\n res = (res * a[0]) % mod;\n a[1] /= 2;\n a[0] = (a[0] * a[0]) % mod;\n }\n return res;\n }\n void print(Object... o) \n {\n for(Object next : o)\n {\n System.err.print(next + \" \");\n }\n }\n void println(Object... o) \n {\n for(Object next : o)\n {\n System.err.print(next + \" \");\n }\n System.err.println();\n }\n void watch(Object...a) throws Exception \n {\n int i = 1;\n for (Object o: a) \n {\n boolean found = false;\n if (o.getClass().isArray()) \n {\n String type = o.getClass().getName().toString();\n switch (type) \n {\n case \"[I\":\n {\n int[] test = (int[]) o;\n println(i + \" : \" + Arrays.toString(test));\n break;\n }\n case \"[[I\":\n {\n int[][] obj = (int[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[J\":\n {\n long[] obj = (long[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[J\":\n {\n long[][] obj = (long[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[D\":\n {\n double[] obj = (double[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[D\":\n {\n double[][] obj = (double[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[Ljava.lang.String\":\n {\n String[] obj = (String[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[Ljava.lang.String\":\n {\n String[][] obj = (String[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[C\":\n {\n char[] obj = (char[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[C\":\n {\n char[][] obj = (char[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n default:\n {\n println(i + \" : type not identified\");\n break;\n }\n }\n found = true;\n }\n if (o.getClass() == ArrayList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == TreeSet.class) \n {\n println(i + \" : SET = \" + o);\n found = true;\n }\n if (o.getClass() == TreeMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == HashMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == LinkedList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == PriorityQueue.class) \n {\n println(i + \" : PQ = \" + o);\n found = true;\n }\n if (!found) \n {\n println(i + \" = \" + o);\n }\n i++;\n }\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.*;",
"util.*",
"java",
"import static java.lang.Math.PI;",
"import static java.lang.Math.PI;",
"import static java.lang.Math.PI;",
"import static java.lang.System.in;",
"import static java.lang.System.in;",
"import static java.lang.System.in;",
"import static java.lang.System.out;",
"import static java.lang.System.out;",
"import static java.lang.System.out;",
"public class Main\n{\n public static void main(String[] args) throws Exception \n {\n Foster sc = new Foster();\n PrintWriter p = new PrintWriter(out);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n long ans1 = a*c;\n long ans2= a*d;\n long ans3 = b*c;\n long ans4 = b*d;\n long minAB = Math.min(a,b);\n long maxAB = Math.max(a,b);\n long minCD = Math.min(c,d);\n long maxCD = Math.max(c,d);\n long zero = Long.MIN_VALUE;\n if(minAB <= 0 && 0 <= maxAB)\n {\n zero = 0;\n }\n if(minCD <= 0 && 0 <= maxCD)\n {\n zero = 0;\n }\n long ans = Math.max(zero, Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4))));\n p.println(ans);\n p.close();\n }\n/*\n*/ \n/*\n1. Check overflow in pow function or in general\n2. Check indices of read array function\n3. Think of an easier solution because the problems you solve are always easy\n4. Check iterator of loop\n5. If still doesn't work, then jump from the 729th floor 'coz \"beta tumse na ho paayega\"\n\n Move to top!!\n*/\n\n static long[] sort(long[] a)\n {\n ArrayList<Long> arr = new ArrayList<>();\n for(long i : a)\n {\n arr.add(i);\n }\n Collections.sort(arr);\n for(int i = 0 ; i < arr.size(); i++)\n {\n a[i] = arr.get(i);\n }\n return a;\n }\n \n static class Foster \n {\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n StringTokenizer st = new StringTokenizer(\"\");\n String next() \n {\n while (!st.hasMoreTokens())\n try \n {\n st = new StringTokenizer(br.readLine());\n } \n catch (IOException e) \n {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n int nextInt() \n {\n return Integer.parseInt(next());\n }\n long nextLong() \n {\n return Long.parseLong(next());\n }\n double nextDouble() \n {\n return Double.parseDouble(next());\n }\n int[] intArray(int n) // Check indices\n {\n int arr[] = new int[n];\n for(int i = 0; i < n; i++)\n {\n arr[i] = nextInt();\n }\n return arr;\n }\n long[] longArray(int n) // Check indices\n {\n long arr[] = new long[n];\n for(int i = 0; i < n; i++)\n {\n arr[i] = nextLong();\n }\n return arr;\n }\n int[] getBits(int n) //in Reverse Order\n {\n int a[] = new int[31];\n for(int i = 0; i < 31; i++)\n {\n if(((1<<i) & n) != 0)\n a[i] = 1;\n }\n return a;\n }\n static long pow(long... a)\n {\n long mod = Long.MAX_VALUE;\n if(a.length == 3) mod = a[2];\n long res = 1;\n while(a[1] > 0)\n {\n if((a[1] & 1) == 1)\n res = (res * a[0]) % mod;\n a[1] /= 2;\n a[0] = (a[0] * a[0]) % mod;\n }\n return res;\n }\n void print(Object... o) \n {\n for(Object next : o)\n {\n System.err.print(next + \" \");\n }\n }\n void println(Object... o) \n {\n for(Object next : o)\n {\n System.err.print(next + \" \");\n }\n System.err.println();\n }\n void watch(Object...a) throws Exception \n {\n int i = 1;\n for (Object o: a) \n {\n boolean found = false;\n if (o.getClass().isArray()) \n {\n String type = o.getClass().getName().toString();\n switch (type) \n {\n case \"[I\":\n {\n int[] test = (int[]) o;\n println(i + \" : \" + Arrays.toString(test));\n break;\n }\n case \"[[I\":\n {\n int[][] obj = (int[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[J\":\n {\n long[] obj = (long[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[J\":\n {\n long[][] obj = (long[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[D\":\n {\n double[] obj = (double[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[D\":\n {\n double[][] obj = (double[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[Ljava.lang.String\":\n {\n String[] obj = (String[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[Ljava.lang.String\":\n {\n String[][] obj = (String[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[C\":\n {\n char[] obj = (char[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[C\":\n {\n char[][] obj = (char[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n default:\n {\n println(i + \" : type not identified\");\n break;\n }\n }\n found = true;\n }\n if (o.getClass() == ArrayList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == TreeSet.class) \n {\n println(i + \" : SET = \" + o);\n found = true;\n }\n if (o.getClass() == TreeMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == HashMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == LinkedList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == PriorityQueue.class) \n {\n println(i + \" : PQ = \" + o);\n found = true;\n }\n if (!found) \n {\n println(i + \" = \" + o);\n }\n i++;\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception \n {\n Foster sc = new Foster();\n PrintWriter p = new PrintWriter(out);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n long ans1 = a*c;\n long ans2= a*d;\n long ans3 = b*c;\n long ans4 = b*d;\n long minAB = Math.min(a,b);\n long maxAB = Math.max(a,b);\n long minCD = Math.min(c,d);\n long maxCD = Math.max(c,d);\n long zero = Long.MIN_VALUE;\n if(minAB <= 0 && 0 <= maxAB)\n {\n zero = 0;\n }\n if(minCD <= 0 && 0 <= maxCD)\n {\n zero = 0;\n }\n long ans = Math.max(zero, Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4))));\n p.println(ans);\n p.close();\n }",
"main",
"{\n Foster sc = new Foster();\n PrintWriter p = new PrintWriter(out);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n long ans1 = a*c;\n long ans2= a*d;\n long ans3 = b*c;\n long ans4 = b*d;\n long minAB = Math.min(a,b);\n long maxAB = Math.max(a,b);\n long minCD = Math.min(c,d);\n long maxCD = Math.max(c,d);\n long zero = Long.MIN_VALUE;\n if(minAB <= 0 && 0 <= maxAB)\n {\n zero = 0;\n }\n if(minCD <= 0 && 0 <= maxCD)\n {\n zero = 0;\n }\n long ans = Math.max(zero, Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4))));\n p.println(ans);\n p.close();\n }",
"Foster sc = new Foster();",
"sc",
"new Foster()",
"PrintWriter p = new PrintWriter(out);",
"p",
"new PrintWriter(out)",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = sc.nextLong();",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long c = sc.nextLong();",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long d = sc.nextLong();",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long ans1 = a*c;",
"ans1",
"a*c",
"a",
"c",
"long ans2= a*d;",
"ans2",
"a*d",
"a",
"d",
"long ans3 = b*c;",
"ans3",
"b*c",
"b",
"c",
"long ans4 = b*d;",
"ans4",
"b*d",
"b",
"d",
"long minAB = Math.min(a,b);",
"minAB",
"Math.min(a,b)",
"Math.min",
"Math",
"a",
"b",
"long maxAB = Math.max(a,b);",
"maxAB",
"Math.max(a,b)",
"Math.max",
"Math",
"a",
"b",
"long minCD = Math.min(c,d);",
"minCD",
"Math.min(c,d)",
"Math.min",
"Math",
"c",
"d",
"long maxCD = Math.max(c,d);",
"maxCD",
"Math.max(c,d)",
"Math.max",
"Math",
"c",
"d",
"long zero = Long.MIN_VALUE;",
"zero",
"Long.MIN_VALUE",
"Long",
"Long.MIN_VALUE",
"if(minAB <= 0 && 0 <= maxAB)\n {\n zero = 0;\n }",
"minAB <= 0 && 0 <= maxAB",
"minAB <= 0",
"minAB",
"0",
"0 <= maxAB",
"0",
"maxAB",
"{\n zero = 0;\n }",
"zero = 0",
"zero",
"0",
"if(minCD <= 0 && 0 <= maxCD)\n {\n zero = 0;\n }",
"minCD <= 0 && 0 <= maxCD",
"minCD <= 0",
"minCD",
"0",
"0 <= maxCD",
"0",
"maxCD",
"{\n zero = 0;\n }",
"zero = 0",
"zero",
"0",
"long ans = Math.max(zero, Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4))));",
"ans",
"Math.max(zero, Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4))))",
"Math.max",
"Math",
"zero",
"Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4)))",
"Math.max",
"Math",
"ans1",
"Math.max(ans2, Math.max(ans3, ans4))",
"Math.max",
"Math",
"ans2",
"Math.max(ans3, ans4)",
"Math.max",
"Math",
"ans3",
"ans4",
"p.println(ans)",
"p.println",
"p",
"ans",
"p.close()",
"p.close",
"p",
"String[] args",
"args",
"static long[] sort(long[] a)\n {\n ArrayList<Long> arr = new ArrayList<>();\n for(long i : a)\n {\n arr.add(i);\n }\n Collections.sort(arr);\n for(int i = 0 ; i < arr.size(); i++)\n {\n a[i] = arr.get(i);\n }\n return a;\n }",
"sort",
"{\n ArrayList<Long> arr = new ArrayList<>();\n for(long i : a)\n {\n arr.add(i);\n }\n Collections.sort(arr);\n for(int i = 0 ; i < arr.size(); i++)\n {\n a[i] = arr.get(i);\n }\n return a;\n }",
"ArrayList<Long> arr = new ArrayList<>();",
"arr",
"new ArrayList<>()",
"for(long i : a)\n {\n arr.add(i);\n }",
"long i",
"a",
"{\n arr.add(i);\n }",
"{\n arr.add(i);\n }",
"arr.add(i)",
"arr.add",
"arr",
"i",
"Collections.sort(arr)",
"Collections.sort",
"Collections",
"arr",
"for(int i = 0 ; i < arr.size(); i++)\n {\n a[i] = arr.get(i);\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < arr.size()",
"i",
"arr.size()",
"arr.size",
"arr",
"i++",
"i++",
"i",
"{\n a[i] = arr.get(i);\n }",
"{\n a[i] = arr.get(i);\n }",
"a[i] = arr.get(i)",
"a[i]",
"a",
"i",
"arr.get(i)",
"arr.get",
"arr",
"i",
"return a;",
"a",
"long[] a",
"a",
"static class Foster \n {\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n StringTokenizer st = new StringTokenizer(\"\");\n String next() \n {\n while (!st.hasMoreTokens())\n try \n {\n st = new StringTokenizer(br.readLine());\n } \n catch (IOException e) \n {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n int nextInt() \n {\n return Integer.parseInt(next());\n }\n long nextLong() \n {\n return Long.parseLong(next());\n }\n double nextDouble() \n {\n return Double.parseDouble(next());\n }\n int[] intArray(int n) // Check indices\n {\n int arr[] = new int[n];\n for(int i = 0; i < n; i++)\n {\n arr[i] = nextInt();\n }\n return arr;\n }\n long[] longArray(int n) // Check indices\n {\n long arr[] = new long[n];\n for(int i = 0; i < n; i++)\n {\n arr[i] = nextLong();\n }\n return arr;\n }\n int[] getBits(int n) //in Reverse Order\n {\n int a[] = new int[31];\n for(int i = 0; i < 31; i++)\n {\n if(((1<<i) & n) != 0)\n a[i] = 1;\n }\n return a;\n }\n static long pow(long... a)\n {\n long mod = Long.MAX_VALUE;\n if(a.length == 3) mod = a[2];\n long res = 1;\n while(a[1] > 0)\n {\n if((a[1] & 1) == 1)\n res = (res * a[0]) % mod;\n a[1] /= 2;\n a[0] = (a[0] * a[0]) % mod;\n }\n return res;\n }\n void print(Object... o) \n {\n for(Object next : o)\n {\n System.err.print(next + \" \");\n }\n }\n void println(Object... o) \n {\n for(Object next : o)\n {\n System.err.print(next + \" \");\n }\n System.err.println();\n }\n void watch(Object...a) throws Exception \n {\n int i = 1;\n for (Object o: a) \n {\n boolean found = false;\n if (o.getClass().isArray()) \n {\n String type = o.getClass().getName().toString();\n switch (type) \n {\n case \"[I\":\n {\n int[] test = (int[]) o;\n println(i + \" : \" + Arrays.toString(test));\n break;\n }\n case \"[[I\":\n {\n int[][] obj = (int[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[J\":\n {\n long[] obj = (long[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[J\":\n {\n long[][] obj = (long[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[D\":\n {\n double[] obj = (double[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[D\":\n {\n double[][] obj = (double[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[Ljava.lang.String\":\n {\n String[] obj = (String[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[Ljava.lang.String\":\n {\n String[][] obj = (String[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[C\":\n {\n char[] obj = (char[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[C\":\n {\n char[][] obj = (char[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n default:\n {\n println(i + \" : type not identified\");\n break;\n }\n }\n found = true;\n }\n if (o.getClass() == ArrayList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == TreeSet.class) \n {\n println(i + \" : SET = \" + o);\n found = true;\n }\n if (o.getClass() == TreeMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == HashMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == LinkedList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == PriorityQueue.class) \n {\n println(i + \" : PQ = \" + o);\n found = true;\n }\n if (!found) \n {\n println(i + \" = \" + o);\n }\n i++;\n }\n }\n }",
"Foster",
"BufferedReader br = new BufferedReader(new InputStreamReader(in));",
"br",
"new BufferedReader(new InputStreamReader(in))",
"StringTokenizer st = new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"String next() \n {\n while (!st.hasMoreTokens())\n try \n {\n st = new StringTokenizer(br.readLine());\n } \n catch (IOException e) \n {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"next",
"{\n while (!st.hasMoreTokens())\n try \n {\n st = new StringTokenizer(br.readLine());\n } \n catch (IOException e) \n {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"while (!st.hasMoreTokens())\n try \n {\n st = new StringTokenizer(br.readLine());\n } \n catch (IOException e) \n {\n e.printStackTrace();\n }",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try \n {\n st = new StringTokenizer(br.readLine());\n } \n catch (IOException e) \n {\n e.printStackTrace();\n }",
"catch (IOException e) \n {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() \n {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() \n {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() \n {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"int[] intArray(int n) // Check indices\n {\n int arr[] = new int[n];\n for(int i = 0; i < n; i++)\n {\n arr[i] = nextInt();\n }\n return arr;\n }",
"intArray",
"{\n int arr[] = new int[n];\n for(int i = 0; i < n; i++)\n {\n arr[i] = nextInt();\n }\n return arr;\n }",
"int arr[] = new int[n];",
"arr",
"new int[n]",
"n",
"for(int i = 0; i < n; i++)\n {\n arr[i] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n arr[i] = nextInt();\n }",
"{\n arr[i] = nextInt();\n }",
"arr[i] = nextInt()",
"arr[i]",
"arr",
"i",
"nextInt()",
"nextInt",
"return arr;",
"arr",
"int n",
"n",
"long[] longArray(int n) // Check indices\n {\n long arr[] = new long[n];\n for(int i = 0; i < n; i++)\n {\n arr[i] = nextLong();\n }\n return arr;\n }",
"longArray",
"{\n long arr[] = new long[n];\n for(int i = 0; i < n; i++)\n {\n arr[i] = nextLong();\n }\n return arr;\n }",
"long arr[] = new long[n];",
"arr",
"new long[n]",
"n",
"for(int i = 0; i < n; i++)\n {\n arr[i] = nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n arr[i] = nextLong();\n }",
"{\n arr[i] = nextLong();\n }",
"arr[i] = nextLong()",
"arr[i]",
"arr",
"i",
"nextLong()",
"nextLong",
"return arr;",
"arr",
"int n",
"n",
"int[] getBits(int n) //in Reverse Order\n {\n int a[] = new int[31];\n for(int i = 0; i < 31; i++)\n {\n if(((1<<i) & n) != 0)\n a[i] = 1;\n }\n return a;\n }",
"getBits",
"{\n int a[] = new int[31];\n for(int i = 0; i < 31; i++)\n {\n if(((1<<i) & n) != 0)\n a[i] = 1;\n }\n return a;\n }",
"int a[] = new int[31];",
"a",
"new int[31]",
"31",
"for(int i = 0; i < 31; i++)\n {\n if(((1<<i) & n) != 0)\n a[i] = 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 31",
"i",
"31",
"i++",
"i++",
"i",
"{\n if(((1<<i) & n) != 0)\n a[i] = 1;\n }",
"{\n if(((1<<i) & n) != 0)\n a[i] = 1;\n }",
"if(((1<<i) & n) != 0)\n a[i] = 1;",
"((1<<i) & n) != 0",
"((1<<i) & n)",
"(1<<i)",
"1",
"i",
"n",
"0",
"a[i] = 1",
"a[i]",
"a",
"i",
"1",
"return a;",
"a",
"int n",
"n",
"static long pow(long... a)\n {\n long mod = Long.MAX_VALUE;\n if(a.length == 3) mod = a[2];\n long res = 1;\n while(a[1] > 0)\n {\n if((a[1] & 1) == 1)\n res = (res * a[0]) % mod;\n a[1] /= 2;\n a[0] = (a[0] * a[0]) % mod;\n }\n return res;\n }",
"pow",
"{\n long mod = Long.MAX_VALUE;\n if(a.length == 3) mod = a[2];\n long res = 1;\n while(a[1] > 0)\n {\n if((a[1] & 1) == 1)\n res = (res * a[0]) % mod;\n a[1] /= 2;\n a[0] = (a[0] * a[0]) % mod;\n }\n return res;\n }",
"long mod = Long.MAX_VALUE;",
"mod",
"Long.MAX_VALUE",
"Long",
"Long.MAX_VALUE",
"if(a.length == 3) mod = a[2];",
"a.length == 3",
"a.length",
"a",
"a.length",
"3",
"mod = a[2]",
"mod",
"a[2]",
"a",
"2",
"long res = 1;",
"res",
"1",
"while(a[1] > 0)\n {\n if((a[1] & 1) == 1)\n res = (res * a[0]) % mod;\n a[1] /= 2;\n a[0] = (a[0] * a[0]) % mod;\n }",
"a[1] > 0",
"a[1]",
"a",
"1",
"0",
"{\n if((a[1] & 1) == 1)\n res = (res * a[0]) % mod;\n a[1] /= 2;\n a[0] = (a[0] * a[0]) % mod;\n }",
"if((a[1] & 1) == 1)\n res = (res * a[0]) % mod;",
"(a[1] & 1) == 1",
"(a[1] & 1)",
"a[1]",
"a",
"1",
"1",
"1",
"res = (res * a[0]) % mod",
"res",
"(res * a[0]) % mod",
"(res * a[0])",
"res",
"a[0]",
"a",
"0",
"mod",
"a[1] /= 2",
"a[1]",
"a",
"1",
"2",
"a[0] = (a[0] * a[0]) % mod",
"a[0]",
"a",
"0",
"(a[0] * a[0]) % mod",
"(a[0] * a[0])",
"a[0]",
"a",
"0",
"a[0]",
"a",
"0",
"mod",
"return res;",
"res",
"long... a",
"a",
"void print(Object... o) \n {\n for(Object next : o)\n {\n System.err.print(next + \" \");\n }\n }",
"print",
"{\n for(Object next : o)\n {\n System.err.print(next + \" \");\n }\n }",
"for(Object next : o)\n {\n System.err.print(next + \" \");\n }",
"Object next",
"o",
"{\n System.err.print(next + \" \");\n }",
"{\n System.err.print(next + \" \");\n }",
"System.err.print(next + \" \")",
"System.err.print",
"System.err",
"System",
"System.err",
"next + \" \"",
"next",
"\" \"",
"Object... o",
"o",
"void println(Object... o) \n {\n for(Object next : o)\n {\n System.err.print(next + \" \");\n }\n System.err.println();\n }",
"println",
"{\n for(Object next : o)\n {\n System.err.print(next + \" \");\n }\n System.err.println();\n }",
"for(Object next : o)\n {\n System.err.print(next + \" \");\n }",
"Object next",
"o",
"{\n System.err.print(next + \" \");\n }",
"{\n System.err.print(next + \" \");\n }",
"System.err.print(next + \" \")",
"System.err.print",
"System.err",
"System",
"System.err",
"next + \" \"",
"next",
"\" \"",
"System.err.println()",
"System.err.println",
"System.err",
"System",
"System.err",
"Object... o",
"o",
"void watch(Object...a) throws Exception \n {\n int i = 1;\n for (Object o: a) \n {\n boolean found = false;\n if (o.getClass().isArray()) \n {\n String type = o.getClass().getName().toString();\n switch (type) \n {\n case \"[I\":\n {\n int[] test = (int[]) o;\n println(i + \" : \" + Arrays.toString(test));\n break;\n }\n case \"[[I\":\n {\n int[][] obj = (int[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[J\":\n {\n long[] obj = (long[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[J\":\n {\n long[][] obj = (long[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[D\":\n {\n double[] obj = (double[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[D\":\n {\n double[][] obj = (double[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[Ljava.lang.String\":\n {\n String[] obj = (String[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[Ljava.lang.String\":\n {\n String[][] obj = (String[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[C\":\n {\n char[] obj = (char[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[C\":\n {\n char[][] obj = (char[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n default:\n {\n println(i + \" : type not identified\");\n break;\n }\n }\n found = true;\n }\n if (o.getClass() == ArrayList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == TreeSet.class) \n {\n println(i + \" : SET = \" + o);\n found = true;\n }\n if (o.getClass() == TreeMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == HashMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == LinkedList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == PriorityQueue.class) \n {\n println(i + \" : PQ = \" + o);\n found = true;\n }\n if (!found) \n {\n println(i + \" = \" + o);\n }\n i++;\n }\n }",
"watch",
"{\n int i = 1;\n for (Object o: a) \n {\n boolean found = false;\n if (o.getClass().isArray()) \n {\n String type = o.getClass().getName().toString();\n switch (type) \n {\n case \"[I\":\n {\n int[] test = (int[]) o;\n println(i + \" : \" + Arrays.toString(test));\n break;\n }\n case \"[[I\":\n {\n int[][] obj = (int[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[J\":\n {\n long[] obj = (long[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[J\":\n {\n long[][] obj = (long[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[D\":\n {\n double[] obj = (double[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[D\":\n {\n double[][] obj = (double[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[Ljava.lang.String\":\n {\n String[] obj = (String[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[Ljava.lang.String\":\n {\n String[][] obj = (String[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[C\":\n {\n char[] obj = (char[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[C\":\n {\n char[][] obj = (char[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n default:\n {\n println(i + \" : type not identified\");\n break;\n }\n }\n found = true;\n }\n if (o.getClass() == ArrayList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == TreeSet.class) \n {\n println(i + \" : SET = \" + o);\n found = true;\n }\n if (o.getClass() == TreeMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == HashMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == LinkedList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == PriorityQueue.class) \n {\n println(i + \" : PQ = \" + o);\n found = true;\n }\n if (!found) \n {\n println(i + \" = \" + o);\n }\n i++;\n }\n }",
"int i = 1;",
"i",
"1",
"for (Object o: a) \n {\n boolean found = false;\n if (o.getClass().isArray()) \n {\n String type = o.getClass().getName().toString();\n switch (type) \n {\n case \"[I\":\n {\n int[] test = (int[]) o;\n println(i + \" : \" + Arrays.toString(test));\n break;\n }\n case \"[[I\":\n {\n int[][] obj = (int[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[J\":\n {\n long[] obj = (long[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[J\":\n {\n long[][] obj = (long[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[D\":\n {\n double[] obj = (double[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[D\":\n {\n double[][] obj = (double[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[Ljava.lang.String\":\n {\n String[] obj = (String[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[Ljava.lang.String\":\n {\n String[][] obj = (String[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[C\":\n {\n char[] obj = (char[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[C\":\n {\n char[][] obj = (char[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n default:\n {\n println(i + \" : type not identified\");\n break;\n }\n }\n found = true;\n }\n if (o.getClass() == ArrayList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == TreeSet.class) \n {\n println(i + \" : SET = \" + o);\n found = true;\n }\n if (o.getClass() == TreeMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == HashMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == LinkedList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == PriorityQueue.class) \n {\n println(i + \" : PQ = \" + o);\n found = true;\n }\n if (!found) \n {\n println(i + \" = \" + o);\n }\n i++;\n }",
"Object o",
"a",
"{\n boolean found = false;\n if (o.getClass().isArray()) \n {\n String type = o.getClass().getName().toString();\n switch (type) \n {\n case \"[I\":\n {\n int[] test = (int[]) o;\n println(i + \" : \" + Arrays.toString(test));\n break;\n }\n case \"[[I\":\n {\n int[][] obj = (int[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[J\":\n {\n long[] obj = (long[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[J\":\n {\n long[][] obj = (long[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[D\":\n {\n double[] obj = (double[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[D\":\n {\n double[][] obj = (double[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[Ljava.lang.String\":\n {\n String[] obj = (String[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[Ljava.lang.String\":\n {\n String[][] obj = (String[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[C\":\n {\n char[] obj = (char[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[C\":\n {\n char[][] obj = (char[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n default:\n {\n println(i + \" : type not identified\");\n break;\n }\n }\n found = true;\n }\n if (o.getClass() == ArrayList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == TreeSet.class) \n {\n println(i + \" : SET = \" + o);\n found = true;\n }\n if (o.getClass() == TreeMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == HashMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == LinkedList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == PriorityQueue.class) \n {\n println(i + \" : PQ = \" + o);\n found = true;\n }\n if (!found) \n {\n println(i + \" = \" + o);\n }\n i++;\n }",
"{\n boolean found = false;\n if (o.getClass().isArray()) \n {\n String type = o.getClass().getName().toString();\n switch (type) \n {\n case \"[I\":\n {\n int[] test = (int[]) o;\n println(i + \" : \" + Arrays.toString(test));\n break;\n }\n case \"[[I\":\n {\n int[][] obj = (int[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[J\":\n {\n long[] obj = (long[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[J\":\n {\n long[][] obj = (long[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[D\":\n {\n double[] obj = (double[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[D\":\n {\n double[][] obj = (double[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[Ljava.lang.String\":\n {\n String[] obj = (String[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[Ljava.lang.String\":\n {\n String[][] obj = (String[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[C\":\n {\n char[] obj = (char[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[C\":\n {\n char[][] obj = (char[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n default:\n {\n println(i + \" : type not identified\");\n break;\n }\n }\n found = true;\n }\n if (o.getClass() == ArrayList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == TreeSet.class) \n {\n println(i + \" : SET = \" + o);\n found = true;\n }\n if (o.getClass() == TreeMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == HashMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == LinkedList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == PriorityQueue.class) \n {\n println(i + \" : PQ = \" + o);\n found = true;\n }\n if (!found) \n {\n println(i + \" = \" + o);\n }\n i++;\n }",
"boolean found = false;",
"found",
"false",
"if (o.getClass().isArray()) \n {\n String type = o.getClass().getName().toString();\n switch (type) \n {\n case \"[I\":\n {\n int[] test = (int[]) o;\n println(i + \" : \" + Arrays.toString(test));\n break;\n }\n case \"[[I\":\n {\n int[][] obj = (int[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[J\":\n {\n long[] obj = (long[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[J\":\n {\n long[][] obj = (long[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[D\":\n {\n double[] obj = (double[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[D\":\n {\n double[][] obj = (double[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[Ljava.lang.String\":\n {\n String[] obj = (String[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[Ljava.lang.String\":\n {\n String[][] obj = (String[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[C\":\n {\n char[] obj = (char[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[C\":\n {\n char[][] obj = (char[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n default:\n {\n println(i + \" : type not identified\");\n break;\n }\n }\n found = true;\n }",
"o.getClass().isArray()",
"o.getClass().isArray",
"o.getClass()",
"o.getClass",
"o",
"{\n String type = o.getClass().getName().toString();\n switch (type) \n {\n case \"[I\":\n {\n int[] test = (int[]) o;\n println(i + \" : \" + Arrays.toString(test));\n break;\n }\n case \"[[I\":\n {\n int[][] obj = (int[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[J\":\n {\n long[] obj = (long[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[J\":\n {\n long[][] obj = (long[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[D\":\n {\n double[] obj = (double[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[D\":\n {\n double[][] obj = (double[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[Ljava.lang.String\":\n {\n String[] obj = (String[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[Ljava.lang.String\":\n {\n String[][] obj = (String[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[C\":\n {\n char[] obj = (char[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[C\":\n {\n char[][] obj = (char[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n default:\n {\n println(i + \" : type not identified\");\n break;\n }\n }\n found = true;\n }",
"String type = o.getClass().getName().toString();",
"type",
"o.getClass().getName().toString()",
"o.getClass().getName().toString",
"o.getClass().getName()",
"o.getClass().getName",
"o.getClass()",
"o.getClass",
"o",
"switch (type) \n {\n case \"[I\":\n {\n int[] test = (int[]) o;\n println(i + \" : \" + Arrays.toString(test));\n break;\n }\n case \"[[I\":\n {\n int[][] obj = (int[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[J\":\n {\n long[] obj = (long[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[J\":\n {\n long[][] obj = (long[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[D\":\n {\n double[] obj = (double[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[D\":\n {\n double[][] obj = (double[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[Ljava.lang.String\":\n {\n String[] obj = (String[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[Ljava.lang.String\":\n {\n String[][] obj = (String[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[C\":\n {\n char[] obj = (char[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[C\":\n {\n char[][] obj = (char[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n default:\n {\n println(i + \" : type not identified\");\n break;\n }\n }",
"type",
"case \"[I\":",
"\"[I\"",
"case \"[I\":",
"{\n int[] test = (int[]) o;\n println(i + \" : \" + Arrays.toString(test));\n break;\n }",
"int[] test = (int[]) o;",
"test",
"(int[]) o",
"println(i + \" : \" + Arrays.toString(test))",
"println",
"i + \" : \" + Arrays.toString(test)",
"i + \" : \" + Arrays.toString(test)",
"i",
"\" : \"",
"Arrays.toString(test)",
"Arrays.toString",
"Arrays",
"test",
"break;",
"case \"[[I\":",
"\"[[I\"",
"case \"[[I\":",
"{\n int[][] obj = (int[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }",
"int[][] obj = (int[][]) o;",
"obj",
"(int[][]) o",
"println(i + \" : \" + Arrays.deepToString(obj))",
"println",
"i + \" : \" + Arrays.deepToString(obj)",
"i + \" : \" + Arrays.deepToString(obj)",
"i",
"\" : \"",
"Arrays.deepToString(obj)",
"Arrays.deepToString",
"Arrays",
"obj",
"break;",
"case \"[J\":",
"\"[J\"",
"case \"[J\":",
"{\n long[] obj = (long[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }",
"long[] obj = (long[]) o;",
"obj",
"(long[]) o",
"println(i + \" : \" + Arrays.toString(obj))",
"println",
"i + \" : \" + Arrays.toString(obj)",
"i + \" : \" + Arrays.toString(obj)",
"i",
"\" : \"",
"Arrays.toString(obj)",
"Arrays.toString",
"Arrays",
"obj",
"break;",
"case \"[[J\":",
"\"[[J\"",
"case \"[[J\":",
"{\n long[][] obj = (long[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }",
"long[][] obj = (long[][]) o;",
"obj",
"(long[][]) o",
"println(i + \" : \" + Arrays.deepToString(obj))",
"println",
"i + \" : \" + Arrays.deepToString(obj)",
"i + \" : \" + Arrays.deepToString(obj)",
"i",
"\" : \"",
"Arrays.deepToString(obj)",
"Arrays.deepToString",
"Arrays",
"obj",
"break;",
"case \"[D\":",
"\"[D\"",
"case \"[D\":",
"{\n double[] obj = (double[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }",
"double[] obj = (double[]) o;",
"obj",
"(double[]) o",
"println(i + \" : \" + Arrays.toString(obj))",
"println",
"i + \" : \" + Arrays.toString(obj)",
"i + \" : \" + Arrays.toString(obj)",
"i",
"\" : \"",
"Arrays.toString(obj)",
"Arrays.toString",
"Arrays",
"obj",
"break;",
"case \"[[D\":",
"\"[[D\"",
"case \"[[D\":",
"{\n double[][] obj = (double[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }",
"double[][] obj = (double[][]) o;",
"obj",
"(double[][]) o",
"println(i + \" : \" + Arrays.deepToString(obj))",
"println",
"i + \" : \" + Arrays.deepToString(obj)",
"i + \" : \" + Arrays.deepToString(obj)",
"i",
"\" : \"",
"Arrays.deepToString(obj)",
"Arrays.deepToString",
"Arrays",
"obj",
"break;",
"case \"[Ljava.lang.String\":",
"\"[Ljava.lang.String\"",
"case \"[Ljava.lang.String\":",
"{\n String[] obj = (String[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }",
"String[] obj = (String[]) o;",
"obj",
"(String[]) o",
"println(i + \" : \" + Arrays.toString(obj))",
"println",
"i + \" : \" + Arrays.toString(obj)",
"i + \" : \" + Arrays.toString(obj)",
"i",
"\" : \"",
"Arrays.toString(obj)",
"Arrays.toString",
"Arrays",
"obj",
"break;",
"case \"[[Ljava.lang.String\":",
"\"[[Ljava.lang.String\"",
"case \"[[Ljava.lang.String\":",
"{\n String[][] obj = (String[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }",
"String[][] obj = (String[][]) o;",
"obj",
"(String[][]) o",
"println(i + \" : \" + Arrays.deepToString(obj))",
"println",
"i + \" : \" + Arrays.deepToString(obj)",
"i + \" : \" + Arrays.deepToString(obj)",
"i",
"\" : \"",
"Arrays.deepToString(obj)",
"Arrays.deepToString",
"Arrays",
"obj",
"break;",
"case \"[C\":",
"\"[C\"",
"case \"[C\":",
"{\n char[] obj = (char[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }",
"char[] obj = (char[]) o;",
"obj",
"(char[]) o",
"println(i + \" : \" + Arrays.toString(obj))",
"println",
"i + \" : \" + Arrays.toString(obj)",
"i + \" : \" + Arrays.toString(obj)",
"i",
"\" : \"",
"Arrays.toString(obj)",
"Arrays.toString",
"Arrays",
"obj",
"break;",
"case \"[[C\":",
"\"[[C\"",
"case \"[[C\":",
"{\n char[][] obj = (char[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }",
"char[][] obj = (char[][]) o;",
"obj",
"(char[][]) o",
"println(i + \" : \" + Arrays.deepToString(obj))",
"println",
"i + \" : \" + Arrays.deepToString(obj)",
"i + \" : \" + Arrays.deepToString(obj)",
"i",
"\" : \"",
"Arrays.deepToString(obj)",
"Arrays.deepToString",
"Arrays",
"obj",
"break;",
"default:",
"default:",
"{\n println(i + \" : type not identified\");\n break;\n }",
"println(i + \" : type not identified\")",
"println",
"i + \" : type not identified\"",
"i",
"\" : type not identified\"",
"break;",
"found = true",
"found",
"true",
"if (o.getClass() == ArrayList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }",
"o.getClass() == ArrayList.class",
"o.getClass()",
"o.getClass",
"o",
"ArrayList.class",
"ArrayList.class",
"{\n println(i + \" : LIST = \" + o);\n found = true;\n }",
"println(i + \" : LIST = \" + o)",
"println",
"i + \" : LIST = \" + o",
"i + \" : LIST = \" + o",
"i",
"\" : LIST = \"",
"o",
"found = true",
"found",
"true",
"if (o.getClass() == TreeSet.class) \n {\n println(i + \" : SET = \" + o);\n found = true;\n }",
"o.getClass() == TreeSet.class",
"o.getClass()",
"o.getClass",
"o",
"TreeSet.class",
"TreeSet.class",
"{\n println(i + \" : SET = \" + o);\n found = true;\n }",
"println(i + \" : SET = \" + o)",
"println",
"i + \" : SET = \" + o",
"i + \" : SET = \" + o",
"i",
"\" : SET = \"",
"o",
"found = true",
"found",
"true",
"if (o.getClass() == TreeMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }",
"o.getClass() == TreeMap.class",
"o.getClass()",
"o.getClass",
"o",
"TreeMap.class",
"TreeMap.class",
"{\n println(i + \" : MAP = \" + o);\n found = true;\n }",
"println(i + \" : MAP = \" + o)",
"println",
"i + \" : MAP = \" + o",
"i + \" : MAP = \" + o",
"i",
"\" : MAP = \"",
"o",
"found = true",
"found",
"true",
"if (o.getClass() == HashMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }",
"o.getClass() == HashMap.class",
"o.getClass()",
"o.getClass",
"o",
"HashMap.class",
"HashMap.class",
"{\n println(i + \" : MAP = \" + o);\n found = true;\n }",
"println(i + \" : MAP = \" + o)",
"println",
"i + \" : MAP = \" + o",
"i + \" : MAP = \" + o",
"i",
"\" : MAP = \"",
"o",
"found = true",
"found",
"true",
"if (o.getClass() == LinkedList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }",
"o.getClass() == LinkedList.class",
"o.getClass()",
"o.getClass",
"o",
"LinkedList.class",
"LinkedList.class",
"{\n println(i + \" : LIST = \" + o);\n found = true;\n }",
"println(i + \" : LIST = \" + o)",
"println",
"i + \" : LIST = \" + o",
"i + \" : LIST = \" + o",
"i",
"\" : LIST = \"",
"o",
"found = true",
"found",
"true",
"if (o.getClass() == PriorityQueue.class) \n {\n println(i + \" : PQ = \" + o);\n found = true;\n }",
"o.getClass() == PriorityQueue.class",
"o.getClass()",
"o.getClass",
"o",
"PriorityQueue.class",
"PriorityQueue.class",
"{\n println(i + \" : PQ = \" + o);\n found = true;\n }",
"println(i + \" : PQ = \" + o)",
"println",
"i + \" : PQ = \" + o",
"i + \" : PQ = \" + o",
"i",
"\" : PQ = \"",
"o",
"found = true",
"found",
"true",
"if (!found) \n {\n println(i + \" = \" + o);\n }",
"!found",
"found",
"{\n println(i + \" = \" + o);\n }",
"println(i + \" = \" + o)",
"println",
"i + \" = \" + o",
"i + \" = \" + o",
"i",
"\" = \"",
"o",
"i++",
"i",
"Object...a",
"a",
"public class Main\n{\n public static void main(String[] args) throws Exception \n {\n Foster sc = new Foster();\n PrintWriter p = new PrintWriter(out);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n long ans1 = a*c;\n long ans2= a*d;\n long ans3 = b*c;\n long ans4 = b*d;\n long minAB = Math.min(a,b);\n long maxAB = Math.max(a,b);\n long minCD = Math.min(c,d);\n long maxCD = Math.max(c,d);\n long zero = Long.MIN_VALUE;\n if(minAB <= 0 && 0 <= maxAB)\n {\n zero = 0;\n }\n if(minCD <= 0 && 0 <= maxCD)\n {\n zero = 0;\n }\n long ans = Math.max(zero, Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4))));\n p.println(ans);\n p.close();\n }\n/*\n*/ \n/*\n1. Check overflow in pow function or in general\n2. Check indices of read array function\n3. Think of an easier solution because the problems you solve are always easy\n4. Check iterator of loop\n5. If still doesn't work, then jump from the 729th floor 'coz \"beta tumse na ho paayega\"\n\n Move to top!!\n*/\n\n static long[] sort(long[] a)\n {\n ArrayList<Long> arr = new ArrayList<>();\n for(long i : a)\n {\n arr.add(i);\n }\n Collections.sort(arr);\n for(int i = 0 ; i < arr.size(); i++)\n {\n a[i] = arr.get(i);\n }\n return a;\n }\n \n static class Foster \n {\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n StringTokenizer st = new StringTokenizer(\"\");\n String next() \n {\n while (!st.hasMoreTokens())\n try \n {\n st = new StringTokenizer(br.readLine());\n } \n catch (IOException e) \n {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n int nextInt() \n {\n return Integer.parseInt(next());\n }\n long nextLong() \n {\n return Long.parseLong(next());\n }\n double nextDouble() \n {\n return Double.parseDouble(next());\n }\n int[] intArray(int n) // Check indices\n {\n int arr[] = new int[n];\n for(int i = 0; i < n; i++)\n {\n arr[i] = nextInt();\n }\n return arr;\n }\n long[] longArray(int n) // Check indices\n {\n long arr[] = new long[n];\n for(int i = 0; i < n; i++)\n {\n arr[i] = nextLong();\n }\n return arr;\n }\n int[] getBits(int n) //in Reverse Order\n {\n int a[] = new int[31];\n for(int i = 0; i < 31; i++)\n {\n if(((1<<i) & n) != 0)\n a[i] = 1;\n }\n return a;\n }\n static long pow(long... a)\n {\n long mod = Long.MAX_VALUE;\n if(a.length == 3) mod = a[2];\n long res = 1;\n while(a[1] > 0)\n {\n if((a[1] & 1) == 1)\n res = (res * a[0]) % mod;\n a[1] /= 2;\n a[0] = (a[0] * a[0]) % mod;\n }\n return res;\n }\n void print(Object... o) \n {\n for(Object next : o)\n {\n System.err.print(next + \" \");\n }\n }\n void println(Object... o) \n {\n for(Object next : o)\n {\n System.err.print(next + \" \");\n }\n System.err.println();\n }\n void watch(Object...a) throws Exception \n {\n int i = 1;\n for (Object o: a) \n {\n boolean found = false;\n if (o.getClass().isArray()) \n {\n String type = o.getClass().getName().toString();\n switch (type) \n {\n case \"[I\":\n {\n int[] test = (int[]) o;\n println(i + \" : \" + Arrays.toString(test));\n break;\n }\n case \"[[I\":\n {\n int[][] obj = (int[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[J\":\n {\n long[] obj = (long[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[J\":\n {\n long[][] obj = (long[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[D\":\n {\n double[] obj = (double[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[D\":\n {\n double[][] obj = (double[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[Ljava.lang.String\":\n {\n String[] obj = (String[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[Ljava.lang.String\":\n {\n String[][] obj = (String[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[C\":\n {\n char[] obj = (char[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[C\":\n {\n char[][] obj = (char[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n default:\n {\n println(i + \" : type not identified\");\n break;\n }\n }\n found = true;\n }\n if (o.getClass() == ArrayList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == TreeSet.class) \n {\n println(i + \" : SET = \" + o);\n found = true;\n }\n if (o.getClass() == TreeMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == HashMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == LinkedList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == PriorityQueue.class) \n {\n println(i + \" : PQ = \" + o);\n found = true;\n }\n if (!found) \n {\n println(i + \" = \" + o);\n }\n i++;\n }\n }\n }\n}",
"public class Main\n{\n public static void main(String[] args) throws Exception \n {\n Foster sc = new Foster();\n PrintWriter p = new PrintWriter(out);\n long a = sc.nextLong();\n long b = sc.nextLong();\n long c = sc.nextLong();\n long d = sc.nextLong();\n long ans1 = a*c;\n long ans2= a*d;\n long ans3 = b*c;\n long ans4 = b*d;\n long minAB = Math.min(a,b);\n long maxAB = Math.max(a,b);\n long minCD = Math.min(c,d);\n long maxCD = Math.max(c,d);\n long zero = Long.MIN_VALUE;\n if(minAB <= 0 && 0 <= maxAB)\n {\n zero = 0;\n }\n if(minCD <= 0 && 0 <= maxCD)\n {\n zero = 0;\n }\n long ans = Math.max(zero, Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4))));\n p.println(ans);\n p.close();\n }\n/*\n*/ \n/*\n1. Check overflow in pow function or in general\n2. Check indices of read array function\n3. Think of an easier solution because the problems you solve are always easy\n4. Check iterator of loop\n5. If still doesn't work, then jump from the 729th floor 'coz \"beta tumse na ho paayega\"\n\n Move to top!!\n*/\n\n static long[] sort(long[] a)\n {\n ArrayList<Long> arr = new ArrayList<>();\n for(long i : a)\n {\n arr.add(i);\n }\n Collections.sort(arr);\n for(int i = 0 ; i < arr.size(); i++)\n {\n a[i] = arr.get(i);\n }\n return a;\n }\n \n static class Foster \n {\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n StringTokenizer st = new StringTokenizer(\"\");\n String next() \n {\n while (!st.hasMoreTokens())\n try \n {\n st = new StringTokenizer(br.readLine());\n } \n catch (IOException e) \n {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n int nextInt() \n {\n return Integer.parseInt(next());\n }\n long nextLong() \n {\n return Long.parseLong(next());\n }\n double nextDouble() \n {\n return Double.parseDouble(next());\n }\n int[] intArray(int n) // Check indices\n {\n int arr[] = new int[n];\n for(int i = 0; i < n; i++)\n {\n arr[i] = nextInt();\n }\n return arr;\n }\n long[] longArray(int n) // Check indices\n {\n long arr[] = new long[n];\n for(int i = 0; i < n; i++)\n {\n arr[i] = nextLong();\n }\n return arr;\n }\n int[] getBits(int n) //in Reverse Order\n {\n int a[] = new int[31];\n for(int i = 0; i < 31; i++)\n {\n if(((1<<i) & n) != 0)\n a[i] = 1;\n }\n return a;\n }\n static long pow(long... a)\n {\n long mod = Long.MAX_VALUE;\n if(a.length == 3) mod = a[2];\n long res = 1;\n while(a[1] > 0)\n {\n if((a[1] & 1) == 1)\n res = (res * a[0]) % mod;\n a[1] /= 2;\n a[0] = (a[0] * a[0]) % mod;\n }\n return res;\n }\n void print(Object... o) \n {\n for(Object next : o)\n {\n System.err.print(next + \" \");\n }\n }\n void println(Object... o) \n {\n for(Object next : o)\n {\n System.err.print(next + \" \");\n }\n System.err.println();\n }\n void watch(Object...a) throws Exception \n {\n int i = 1;\n for (Object o: a) \n {\n boolean found = false;\n if (o.getClass().isArray()) \n {\n String type = o.getClass().getName().toString();\n switch (type) \n {\n case \"[I\":\n {\n int[] test = (int[]) o;\n println(i + \" : \" + Arrays.toString(test));\n break;\n }\n case \"[[I\":\n {\n int[][] obj = (int[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[J\":\n {\n long[] obj = (long[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[J\":\n {\n long[][] obj = (long[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[D\":\n {\n double[] obj = (double[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[D\":\n {\n double[][] obj = (double[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[Ljava.lang.String\":\n {\n String[] obj = (String[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[Ljava.lang.String\":\n {\n String[][] obj = (String[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n case \"[C\":\n {\n char[] obj = (char[]) o;\n println(i + \" : \" + Arrays.toString(obj));\n break;\n }\n case \"[[C\":\n {\n char[][] obj = (char[][]) o;\n println(i + \" : \" + Arrays.deepToString(obj));\n break;\n }\n default:\n {\n println(i + \" : type not identified\");\n break;\n }\n }\n found = true;\n }\n if (o.getClass() == ArrayList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == TreeSet.class) \n {\n println(i + \" : SET = \" + o);\n found = true;\n }\n if (o.getClass() == TreeMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == HashMap.class) \n {\n println(i + \" : MAP = \" + o);\n found = true;\n }\n if (o.getClass() == LinkedList.class) \n {\n println(i + \" : LIST = \" + o);\n found = true;\n }\n if (o.getClass() == PriorityQueue.class) \n {\n println(i + \" : PQ = \" + o);\n found = true;\n }\n if (!found) \n {\n println(i + \" = \" + o);\n }\n i++;\n }\n }\n }\n}",
"Main"
]
| import java.io.*;
import java.math.BigInteger;
import java.util.*;
import static java.lang.Math.PI;
import static java.lang.System.in;
import static java.lang.System.out;
public class Main
{
public static void main(String[] args) throws Exception
{
Foster sc = new Foster();
PrintWriter p = new PrintWriter(out);
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
long ans1 = a*c;
long ans2= a*d;
long ans3 = b*c;
long ans4 = b*d;
long minAB = Math.min(a,b);
long maxAB = Math.max(a,b);
long minCD = Math.min(c,d);
long maxCD = Math.max(c,d);
long zero = Long.MIN_VALUE;
if(minAB <= 0 && 0 <= maxAB)
{
zero = 0;
}
if(minCD <= 0 && 0 <= maxCD)
{
zero = 0;
}
long ans = Math.max(zero, Math.max(ans1, Math.max(ans2, Math.max(ans3, ans4))));
p.println(ans);
p.close();
}
/*
*/
/*
1. Check overflow in pow function or in general
2. Check indices of read array function
3. Think of an easier solution because the problems you solve are always easy
4. Check iterator of loop
5. If still doesn't work, then jump from the 729th floor 'coz "beta tumse na ho paayega"
Move to top!!
*/
static long[] sort(long[] a)
{
ArrayList<Long> arr = new ArrayList<>();
for(long i : a)
{
arr.add(i);
}
Collections.sort(arr);
for(int i = 0 ; i < arr.size(); i++)
{
a[i] = arr.get(i);
}
return a;
}
static class Foster
{
BufferedReader br = new BufferedReader(new InputStreamReader(in));
StringTokenizer st = new StringTokenizer("");
String next()
{
while (!st.hasMoreTokens())
try
{
st = new StringTokenizer(br.readLine());
}
catch (IOException e)
{
e.printStackTrace();
}
return st.nextToken();
}
int nextInt()
{
return Integer.parseInt(next());
}
long nextLong()
{
return Long.parseLong(next());
}
double nextDouble()
{
return Double.parseDouble(next());
}
int[] intArray(int n) // Check indices
{
int arr[] = new int[n];
for(int i = 0; i < n; i++)
{
arr[i] = nextInt();
}
return arr;
}
long[] longArray(int n) // Check indices
{
long arr[] = new long[n];
for(int i = 0; i < n; i++)
{
arr[i] = nextLong();
}
return arr;
}
int[] getBits(int n) //in Reverse Order
{
int a[] = new int[31];
for(int i = 0; i < 31; i++)
{
if(((1<<i) & n) != 0)
a[i] = 1;
}
return a;
}
static long pow(long... a)
{
long mod = Long.MAX_VALUE;
if(a.length == 3) mod = a[2];
long res = 1;
while(a[1] > 0)
{
if((a[1] & 1) == 1)
res = (res * a[0]) % mod;
a[1] /= 2;
a[0] = (a[0] * a[0]) % mod;
}
return res;
}
void print(Object... o)
{
for(Object next : o)
{
System.err.print(next + " ");
}
}
void println(Object... o)
{
for(Object next : o)
{
System.err.print(next + " ");
}
System.err.println();
}
void watch(Object...a) throws Exception
{
int i = 1;
for (Object o: a)
{
boolean found = false;
if (o.getClass().isArray())
{
String type = o.getClass().getName().toString();
switch (type)
{
case "[I":
{
int[] test = (int[]) o;
println(i + " : " + Arrays.toString(test));
break;
}
case "[[I":
{
int[][] obj = (int[][]) o;
println(i + " : " + Arrays.deepToString(obj));
break;
}
case "[J":
{
long[] obj = (long[]) o;
println(i + " : " + Arrays.toString(obj));
break;
}
case "[[J":
{
long[][] obj = (long[][]) o;
println(i + " : " + Arrays.deepToString(obj));
break;
}
case "[D":
{
double[] obj = (double[]) o;
println(i + " : " + Arrays.toString(obj));
break;
}
case "[[D":
{
double[][] obj = (double[][]) o;
println(i + " : " + Arrays.deepToString(obj));
break;
}
case "[Ljava.lang.String":
{
String[] obj = (String[]) o;
println(i + " : " + Arrays.toString(obj));
break;
}
case "[[Ljava.lang.String":
{
String[][] obj = (String[][]) o;
println(i + " : " + Arrays.deepToString(obj));
break;
}
case "[C":
{
char[] obj = (char[]) o;
println(i + " : " + Arrays.toString(obj));
break;
}
case "[[C":
{
char[][] obj = (char[][]) o;
println(i + " : " + Arrays.deepToString(obj));
break;
}
default:
{
println(i + " : type not identified");
break;
}
}
found = true;
}
if (o.getClass() == ArrayList.class)
{
println(i + " : LIST = " + o);
found = true;
}
if (o.getClass() == TreeSet.class)
{
println(i + " : SET = " + o);
found = true;
}
if (o.getClass() == TreeMap.class)
{
println(i + " : MAP = " + o);
found = true;
}
if (o.getClass() == HashMap.class)
{
println(i + " : MAP = " + o);
found = true;
}
if (o.getClass() == LinkedList.class)
{
println(i + " : LIST = " + o);
found = true;
}
if (o.getClass() == PriorityQueue.class)
{
println(i + " : PQ = " + o);
found = true;
}
if (!found)
{
println(i + " = " + o);
}
i++;
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
41,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
70,
5
],
[
70,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
37,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
8,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
48,
50
],
[
45,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
56,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
6,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n\n long x = Math.max(a*c, a*d);\n long y = Math.max(b*c, b*d);\n long z = Math.max(x, y);\n \n System.out.println(z);\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 long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n\n long x = Math.max(a*c, a*d);\n long y = Math.max(b*c, b*d);\n long z = Math.max(x, y);\n \n System.out.println(z);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n\n long x = Math.max(a*c, a*d);\n long y = Math.max(b*c, b*d);\n long z = Math.max(x, y);\n \n System.out.println(z);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n\n long x = Math.max(a*c, a*d);\n long y = Math.max(b*c, b*d);\n long z = Math.max(x, y);\n \n System.out.println(z);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long x = Math.max(a*c, a*d);",
"x",
"Math.max(a*c, a*d)",
"Math.max",
"Math",
"a*c",
"a",
"c",
"a*d",
"a",
"d",
"long y = Math.max(b*c, b*d);",
"y",
"Math.max(b*c, b*d)",
"Math.max",
"Math",
"b*c",
"b",
"c",
"b*d",
"b",
"d",
"long z = Math.max(x, y);",
"z",
"Math.max(x, y)",
"Math.max",
"Math",
"x",
"y",
"System.out.println(z)",
"System.out.println",
"System.out",
"System",
"System.out",
"z",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n\n long x = Math.max(a*c, a*d);\n long y = Math.max(b*c, b*d);\n long z = Math.max(x, y);\n \n System.out.println(z);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n\n long x = Math.max(a*c, a*d);\n long y = Math.max(b*c, b*d);\n long z = Math.max(x, y);\n \n System.out.println(z);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
long a = sc.nextInt();
long b = sc.nextInt();
long c = sc.nextInt();
long d = sc.nextInt();
long x = Math.max(a*c, a*d);
long y = Math.max(b*c, b*d);
long z = Math.max(x, y);
System.out.println(z);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
41,
13,
20,
17,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
2,
18,
13,
13,
18,
13,
13,
0,
13,
2,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
8,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
86,
88
],
[
79,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
8,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
6,
104
],
[
104,
105
]
]
| [
"import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n Long[] a=new Long[2];\n a[0]=sc.nextLong();\n a[1]=sc.nextLong();\n Long[] c=new Long[2];\n c[0]=sc.nextLong();\n c[1]=sc.nextLong();\n Long max=Long.MIN_VALUE;\n for(int i=0;i<2;i++){\n for(int j=0;j<2;j++){\n if(max<a[i]*c[j])max=a[i]*c[j];\n }\n }\n System.out.println(max);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n Long[] a=new Long[2];\n a[0]=sc.nextLong();\n a[1]=sc.nextLong();\n Long[] c=new Long[2];\n c[0]=sc.nextLong();\n c[1]=sc.nextLong();\n Long max=Long.MIN_VALUE;\n for(int i=0;i<2;i++){\n for(int j=0;j<2;j++){\n if(max<a[i]*c[j])max=a[i]*c[j];\n }\n }\n System.out.println(max);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n Long[] a=new Long[2];\n a[0]=sc.nextLong();\n a[1]=sc.nextLong();\n Long[] c=new Long[2];\n c[0]=sc.nextLong();\n c[1]=sc.nextLong();\n Long max=Long.MIN_VALUE;\n for(int i=0;i<2;i++){\n for(int j=0;j<2;j++){\n if(max<a[i]*c[j])max=a[i]*c[j];\n }\n }\n System.out.println(max);\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n Long[] a=new Long[2];\n a[0]=sc.nextLong();\n a[1]=sc.nextLong();\n Long[] c=new Long[2];\n c[0]=sc.nextLong();\n c[1]=sc.nextLong();\n Long max=Long.MIN_VALUE;\n for(int i=0;i<2;i++){\n for(int j=0;j<2;j++){\n if(max<a[i]*c[j])max=a[i]*c[j];\n }\n }\n System.out.println(max);\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"Long[] a=new Long[2];",
"a",
"new Long[2]",
"2",
"a[0]=sc.nextLong()",
"a[0]",
"a",
"0",
"sc.nextLong()",
"sc.nextLong",
"sc",
"a[1]=sc.nextLong()",
"a[1]",
"a",
"1",
"sc.nextLong()",
"sc.nextLong",
"sc",
"Long[] c=new Long[2];",
"c",
"new Long[2]",
"2",
"c[0]=sc.nextLong()",
"c[0]",
"c",
"0",
"sc.nextLong()",
"sc.nextLong",
"sc",
"c[1]=sc.nextLong()",
"c[1]",
"c",
"1",
"sc.nextLong()",
"sc.nextLong",
"sc",
"Long max=Long.MIN_VALUE;",
"max",
"Long.MIN_VALUE",
"Long",
"Long.MIN_VALUE",
"for(int i=0;i<2;i++){\n for(int j=0;j<2;j++){\n if(max<a[i]*c[j])max=a[i]*c[j];\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<2",
"i",
"2",
"i++",
"i++",
"i",
"{\n for(int j=0;j<2;j++){\n if(max<a[i]*c[j])max=a[i]*c[j];\n }\n }",
"{\n for(int j=0;j<2;j++){\n if(max<a[i]*c[j])max=a[i]*c[j];\n }\n }",
"for(int j=0;j<2;j++){\n if(max<a[i]*c[j])max=a[i]*c[j];\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<2",
"j",
"2",
"j++",
"j++",
"j",
"{\n if(max<a[i]*c[j])max=a[i]*c[j];\n }",
"{\n if(max<a[i]*c[j])max=a[i]*c[j];\n }",
"if(max<a[i]*c[j])max=a[i]*c[j];",
"max<a[i]*c[j]",
"max",
"a[i]*c[j]",
"a[i]",
"a",
"i",
"c[j]",
"c",
"j",
"max=a[i]*c[j]",
"max",
"a[i]*c[j]",
"a[i]",
"a",
"i",
"c[j]",
"c",
"j",
"System.out.println(max)",
"System.out.println",
"System.out",
"System",
"System.out",
"max",
"String[] args",
"args"
]
| import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
Long[] a=new Long[2];
a[0]=sc.nextLong();
a[1]=sc.nextLong();
Long[] c=new Long[2];
c[0]=sc.nextLong();
c[1]=sc.nextLong();
Long max=Long.MIN_VALUE;
for(int i=0;i<2;i++){
for(int j=0;j<2;j++){
if(max<a[i]*c[j])max=a[i]*c[j];
}
}
System.out.println(max);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
2,
18,
13,
17,
18,
13,
17,
0,
13,
4,
18,
13,
13,
2,
18,
13,
17,
18,
13,
17,
0,
13,
4,
18,
13,
13,
2,
18,
13,
17,
18,
13,
17,
0,
13,
4,
18,
13,
13,
2,
18,
13,
17,
18,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
102,
5
],
[
102,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
8,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
69,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
8,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
6,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
]
| [
"import java.util.Scanner;\n\n/**\n * Created by enpingkuang on 2020/9/13 8:01 下午\n */\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long[] a = new long[4];\n long sum = Long.MIN_VALUE;\n for(int i = 0;i<4;i++){\n a[i] = scanner.nextLong();\n }\n sum = Math.max(sum,a[0]*a[2]);\n sum = Math.max(sum,a[0]*a[3]);\n sum = Math.max(sum,a[1]*a[2]);\n sum = Math.max(sum,a[1]*a[3]);\n System.out.println(sum);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long[] a = new long[4];\n long sum = Long.MIN_VALUE;\n for(int i = 0;i<4;i++){\n a[i] = scanner.nextLong();\n }\n sum = Math.max(sum,a[0]*a[2]);\n sum = Math.max(sum,a[0]*a[3]);\n sum = Math.max(sum,a[1]*a[2]);\n sum = Math.max(sum,a[1]*a[3]);\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long[] a = new long[4];\n long sum = Long.MIN_VALUE;\n for(int i = 0;i<4;i++){\n a[i] = scanner.nextLong();\n }\n sum = Math.max(sum,a[0]*a[2]);\n sum = Math.max(sum,a[0]*a[3]);\n sum = Math.max(sum,a[1]*a[2]);\n sum = Math.max(sum,a[1]*a[3]);\n System.out.println(sum);\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n long[] a = new long[4];\n long sum = Long.MIN_VALUE;\n for(int i = 0;i<4;i++){\n a[i] = scanner.nextLong();\n }\n sum = Math.max(sum,a[0]*a[2]);\n sum = Math.max(sum,a[0]*a[3]);\n sum = Math.max(sum,a[1]*a[2]);\n sum = Math.max(sum,a[1]*a[3]);\n System.out.println(sum);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"long[] a = new long[4];",
"a",
"new long[4]",
"4",
"long sum = Long.MIN_VALUE;",
"sum",
"Long.MIN_VALUE",
"Long",
"Long.MIN_VALUE",
"for(int i = 0;i<4;i++){\n a[i] = scanner.nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n a[i] = scanner.nextLong();\n }",
"{\n a[i] = scanner.nextLong();\n }",
"a[i] = scanner.nextLong()",
"a[i]",
"a",
"i",
"scanner.nextLong()",
"scanner.nextLong",
"scanner",
"sum = Math.max(sum,a[0]*a[2])",
"sum",
"Math.max(sum,a[0]*a[2])",
"Math.max",
"Math",
"sum",
"a[0]*a[2]",
"a[0]",
"a",
"0",
"a[2]",
"a",
"2",
"sum = Math.max(sum,a[0]*a[3])",
"sum",
"Math.max(sum,a[0]*a[3])",
"Math.max",
"Math",
"sum",
"a[0]*a[3]",
"a[0]",
"a",
"0",
"a[3]",
"a",
"3",
"sum = Math.max(sum,a[1]*a[2])",
"sum",
"Math.max(sum,a[1]*a[2])",
"Math.max",
"Math",
"sum",
"a[1]*a[2]",
"a[1]",
"a",
"1",
"a[2]",
"a",
"2",
"sum = Math.max(sum,a[1]*a[3])",
"sum",
"Math.max(sum,a[1]*a[3])",
"Math.max",
"Math",
"sum",
"a[1]*a[3]",
"a[1]",
"a",
"1",
"a[3]",
"a",
"3",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long[] a = new long[4];\n long sum = Long.MIN_VALUE;\n for(int i = 0;i<4;i++){\n a[i] = scanner.nextLong();\n }\n sum = Math.max(sum,a[0]*a[2]);\n sum = Math.max(sum,a[0]*a[3]);\n sum = Math.max(sum,a[1]*a[2]);\n sum = Math.max(sum,a[1]*a[3]);\n System.out.println(sum);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n long[] a = new long[4];\n long sum = Long.MIN_VALUE;\n for(int i = 0;i<4;i++){\n a[i] = scanner.nextLong();\n }\n sum = Math.max(sum,a[0]*a[2]);\n sum = Math.max(sum,a[0]*a[3]);\n sum = Math.max(sum,a[1]*a[2]);\n sum = Math.max(sum,a[1]*a[3]);\n System.out.println(sum);\n }\n}",
"Main"
]
| import java.util.Scanner;
/**
* Created by enpingkuang on 2020/9/13 8:01 下午
*/
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
long[] a = new long[4];
long sum = Long.MIN_VALUE;
for(int i = 0;i<4;i++){
a[i] = scanner.nextLong();
}
sum = Math.max(sum,a[0]*a[2]);
sum = Math.max(sum,a[0]*a[3]);
sum = Math.max(sum,a[1]*a[2]);
sum = Math.max(sum,a[1]*a[3]);
System.out.println(sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
40,
17,
0,
13,
4,
18,
13,
13,
2,
2,
17,
13,
13,
0,
13,
4,
18,
13,
13,
2,
2,
17,
13,
13,
0,
13,
4,
18,
13,
13,
2,
2,
17,
13,
13,
0,
13,
4,
18,
13,
13,
2,
2,
17,
13,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
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,
30,
0,
18,
13,
13,
4,
18,
13,
4,
13,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
197,
8
],
[
197,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
11,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
11,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
11,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
44,
48
],
[
49,
49
],
[
49,
50
],
[
49,
51
],
[
49,
52
],
[
11,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
60,
60
],
[
60,
61
],
[
60,
62
],
[
60,
63
],
[
11,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
66,
70
],
[
71,
71
],
[
71,
72
],
[
71,
73
],
[
71,
74
],
[
11,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
77,
81
],
[
82,
82
],
[
82,
83
],
[
82,
84
],
[
82,
85
],
[
11,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
11,
90
],
[
90,
91
],
[
91,
92
],
[
9,
93
],
[
93,
94
],
[
197,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
95,
99
],
[
99,
100
],
[
95,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
101,
107
],
[
107,
108
],
[
95,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
109,
115
],
[
115,
116
],
[
95,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
120,
129
],
[
129,
130
],
[
129,
131
],
[
119,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
95,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
143,
144
],
[
95,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
152,
153
],
[
95,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
158,
161
],
[
161,
162
],
[
95,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
170,
175
],
[
175,
176
],
[
175,
177
],
[
170,
178
],
[
178,
179
],
[
179,
180
],
[
170,
181
],
[
182,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
183,
187
],
[
187,
188
],
[
188,
189
],
[
187,
190
],
[
190,
191
],
[
165,
192
],
[
192,
193
],
[
163,
194
],
[
194,
195
],
[
0,
196
],
[
196,
197
],
[
196,
198
]
]
| [
"import java.util.*; \nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n int a= sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n long ans = (long)-4e18;\n ans=Math.max(ans,1l*a*c);\n ans=Math.max(ans,1l*a*d);\n ans=Math.max(ans,1l*b*c);\n ans=Math.max(ans,1l*b*d);\n pw.println(ans);\n pw.flush();\n }\n static class Scanner {\n BufferedReader br;\n StringTokenizer st;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader f) {\n br = new BufferedReader(f);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = Integer.parseInt(next());\n }\n return arr;\n }\n\n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n int a= sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n long ans = (long)-4e18;\n ans=Math.max(ans,1l*a*c);\n ans=Math.max(ans,1l*a*d);\n ans=Math.max(ans,1l*b*c);\n ans=Math.max(ans,1l*b*d);\n pw.println(ans);\n pw.flush();\n }\n static class Scanner {\n BufferedReader br;\n StringTokenizer st;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader f) {\n br = new BufferedReader(f);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = Integer.parseInt(next());\n }\n return arr;\n }\n\n }\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n int a= sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n long ans = (long)-4e18;\n ans=Math.max(ans,1l*a*c);\n ans=Math.max(ans,1l*a*d);\n ans=Math.max(ans,1l*b*c);\n ans=Math.max(ans,1l*b*d);\n pw.println(ans);\n pw.flush();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n int a= sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n long ans = (long)-4e18;\n ans=Math.max(ans,1l*a*c);\n ans=Math.max(ans,1l*a*d);\n ans=Math.max(ans,1l*b*c);\n ans=Math.max(ans,1l*b*d);\n pw.println(ans);\n pw.flush();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"int a= sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long ans = (long)-4e18;",
"ans",
"(long)-4e18",
"4e18",
"ans=Math.max(ans,1l*a*c)",
"ans",
"Math.max(ans,1l*a*c)",
"Math.max",
"Math",
"ans",
"1l*a*c",
"1l*a*c",
"1l",
"a",
"c",
"ans=Math.max(ans,1l*a*d)",
"ans",
"Math.max(ans,1l*a*d)",
"Math.max",
"Math",
"ans",
"1l*a*d",
"1l*a*d",
"1l",
"a",
"d",
"ans=Math.max(ans,1l*b*c)",
"ans",
"Math.max(ans,1l*b*c)",
"Math.max",
"Math",
"ans",
"1l*b*c",
"1l*b*c",
"1l",
"b",
"c",
"ans=Math.max(ans,1l*b*d)",
"ans",
"Math.max(ans,1l*b*d)",
"Math.max",
"Math",
"ans",
"1l*b*d",
"1l*b*d",
"1l",
"b",
"d",
"pw.println(ans)",
"pw.println",
"pw",
"ans",
"pw.flush()",
"pw.flush",
"pw",
"String[] args",
"args",
"static class Scanner {\n BufferedReader br;\n StringTokenizer st;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader f) {\n br = new BufferedReader(f);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = Integer.parseInt(next());\n }\n return arr;\n }\n\n }",
"Scanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }",
"Scanner",
"{\n br = new BufferedReader(new InputStreamReader(s));\n }",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"public Scanner(FileReader f) {\n br = new BufferedReader(f);\n }",
"Scanner",
"{\n br = new BufferedReader(f);\n }",
"br = new BufferedReader(f)",
"br",
"new BufferedReader(f)",
"FileReader f",
"f",
"public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() throws IOException {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public int[] nextIntArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = Integer.parseInt(next());\n }\n return arr;\n }",
"nextIntArr",
"{\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = Integer.parseInt(next());\n }\n return arr;\n }",
"int[] arr = new int[n];",
"arr",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n arr[i] = Integer.parseInt(next());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n arr[i] = Integer.parseInt(next());\n }",
"{\n arr[i] = Integer.parseInt(next());\n }",
"arr[i] = Integer.parseInt(next())",
"arr[i]",
"arr",
"i",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"return arr;",
"arr",
"int n",
"n",
"public class Main {\n public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n int a= sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n long ans = (long)-4e18;\n ans=Math.max(ans,1l*a*c);\n ans=Math.max(ans,1l*a*d);\n ans=Math.max(ans,1l*b*c);\n ans=Math.max(ans,1l*b*d);\n pw.println(ans);\n pw.flush();\n }\n static class Scanner {\n BufferedReader br;\n StringTokenizer st;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader f) {\n br = new BufferedReader(f);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = Integer.parseInt(next());\n }\n return arr;\n }\n\n }\n\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n int a= sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n long ans = (long)-4e18;\n ans=Math.max(ans,1l*a*c);\n ans=Math.max(ans,1l*a*d);\n ans=Math.max(ans,1l*b*c);\n ans=Math.max(ans,1l*b*d);\n pw.println(ans);\n pw.flush();\n }\n static class Scanner {\n BufferedReader br;\n StringTokenizer st;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader f) {\n br = new BufferedReader(f);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = Integer.parseInt(next());\n }\n return arr;\n }\n\n }\n\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
PrintWriter pw = new PrintWriter(System.out);
int a= sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
long ans = (long)-4e18;
ans=Math.max(ans,1l*a*c);
ans=Math.max(ans,1l*a*d);
ans=Math.max(ans,1l*b*c);
ans=Math.max(ans,1l*b*d);
pw.println(ans);
pw.flush();
}
static class Scanner {
BufferedReader br;
StringTokenizer st;
public Scanner(InputStream s) {
br = new BufferedReader(new InputStreamReader(s));
}
public Scanner(FileReader f) {
br = new BufferedReader(f);
}
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 double nextDouble() throws IOException {
return Double.parseDouble(next());
}
public int[] nextIntArr(int n) throws IOException {
int[] arr = new int[n];
for (int i = 0; i < n; i++) {
arr[i] = Integer.parseInt(next());
}
return arr;
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
12,
13,
30,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
0,
13,
4,
13,
4,
13,
13,
13,
4,
13,
13,
13,
12,
13,
30,
14,
2,
13,
13,
30,
29,
13,
30,
29,
13,
23,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
121,
5
],
[
121,
6
],
[
6,
7
],
[
121,
8
],
[
8,
9
],
[
121,
10
],
[
10,
11
],
[
121,
12
],
[
12,
13
],
[
121,
14
],
[
14,
15
],
[
121,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
22,
23
],
[
23,
24
],
[
18,
25
],
[
25,
26
],
[
26,
27
],
[
18,
28
],
[
28,
29
],
[
29,
30
],
[
16,
31
],
[
31,
32
],
[
121,
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
],
[
46,
47
],
[
47,
48
],
[
35,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
35,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
121,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
61,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
61,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
61,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
61,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
86,
89
],
[
84,
90
],
[
90,
91
],
[
90,
92
],
[
90,
93
],
[
121,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
101,
102
],
[
102,
103
],
[
97,
104
],
[
104,
105
],
[
105,
106
],
[
94,
107
],
[
107,
108
],
[
94,
109
],
[
109,
110
],
[
121,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
]
| [
"import java.util.*;\npublic class Main {\n\n public static void main(String[] args){\n Main main = new Main();\n main.input();\n main.solve();\n main.output();\n }\n\n long a;\n long b;\n long c;\n long d;\n long result;\n\n private void input() {\n Scanner sc = new Scanner(System.in);\n a = sc.nextLong();\n b = sc.nextLong();\n c = sc.nextLong();\n d = sc.nextLong();\n }\n\n private void solve() {\n long ac = a*c;\n long ad = a*d;\n long bc = b*c;\n long bd = b*d;\n result = max(max(ac,ad), max(bc,bd));\n }\n\n private long max(long l1, long l2) {\n if (l1 > l2) {\n return l1;\n } else {\n return l2;\n }\n }\n\n private void output() {\n System.out.println(result);\n /*\n System.out.println((n==0) ? \"Yes\" : \"No\");\n */\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args){\n Main main = new Main();\n main.input();\n main.solve();\n main.output();\n }\n\n long a;\n long b;\n long c;\n long d;\n long result;\n\n private void input() {\n Scanner sc = new Scanner(System.in);\n a = sc.nextLong();\n b = sc.nextLong();\n c = sc.nextLong();\n d = sc.nextLong();\n }\n\n private void solve() {\n long ac = a*c;\n long ad = a*d;\n long bc = b*c;\n long bd = b*d;\n result = max(max(ac,ad), max(bc,bd));\n }\n\n private long max(long l1, long l2) {\n if (l1 > l2) {\n return l1;\n } else {\n return l2;\n }\n }\n\n private void output() {\n System.out.println(result);\n /*\n System.out.println((n==0) ? \"Yes\" : \"No\");\n */\n }\n}",
"Main",
"long a;",
"a",
"long b;",
"b",
"long c;",
"c",
"long d;",
"d",
"long result;",
"result",
"public static void main(String[] args){\n Main main = new Main();\n main.input();\n main.solve();\n main.output();\n }",
"main",
"{\n Main main = new Main();\n main.input();\n main.solve();\n main.output();\n }",
"Main main = new Main();",
"main",
"new Main()",
"main.input()",
"main.input",
"main",
"main.solve()",
"main.solve",
"main",
"main.output()",
"main.output",
"main",
"String[] args",
"args",
"private void input() {\n Scanner sc = new Scanner(System.in);\n a = sc.nextLong();\n b = sc.nextLong();\n c = sc.nextLong();\n d = sc.nextLong();\n }",
"input",
"{\n Scanner sc = new Scanner(System.in);\n a = sc.nextLong();\n b = sc.nextLong();\n c = sc.nextLong();\n d = sc.nextLong();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"a = sc.nextLong()",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"b = sc.nextLong()",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"c = sc.nextLong()",
"c",
"sc.nextLong()",
"sc.nextLong",
"sc",
"d = sc.nextLong()",
"d",
"sc.nextLong()",
"sc.nextLong",
"sc",
"private void solve() {\n long ac = a*c;\n long ad = a*d;\n long bc = b*c;\n long bd = b*d;\n result = max(max(ac,ad), max(bc,bd));\n }",
"solve",
"{\n long ac = a*c;\n long ad = a*d;\n long bc = b*c;\n long bd = b*d;\n result = max(max(ac,ad), max(bc,bd));\n }",
"long ac = a*c;",
"ac",
"a*c",
"a",
"c",
"long ad = a*d;",
"ad",
"a*d",
"a",
"d",
"long bc = b*c;",
"bc",
"b*c",
"b",
"c",
"long bd = b*d;",
"bd",
"b*d",
"b",
"d",
"result = max(max(ac,ad), max(bc,bd))",
"result",
"max(max(ac,ad), max(bc,bd))",
"max",
"max(ac,ad)",
"max",
"ac",
"ad",
"max(bc,bd)",
"max",
"bc",
"bd",
"private long max(long l1, long l2) {\n if (l1 > l2) {\n return l1;\n } else {\n return l2;\n }\n }",
"max",
"{\n if (l1 > l2) {\n return l1;\n } else {\n return l2;\n }\n }",
"if (l1 > l2) {\n return l1;\n } else {\n return l2;\n }",
"l1 > l2",
"l1",
"l2",
"{\n return l1;\n }",
"return l1;",
"l1",
"{\n return l2;\n }",
"return l2;",
"l2",
"long l1",
"l1",
"long l2",
"l2",
"private void output() {\n System.out.println(result);\n /*\n System.out.println((n==0) ? \"Yes\" : \"No\");\n */\n }",
"output",
"{\n System.out.println(result);\n /*\n System.out.println((n==0) ? \"Yes\" : \"No\");\n */\n }",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"public class Main {\n\n public static void main(String[] args){\n Main main = new Main();\n main.input();\n main.solve();\n main.output();\n }\n\n long a;\n long b;\n long c;\n long d;\n long result;\n\n private void input() {\n Scanner sc = new Scanner(System.in);\n a = sc.nextLong();\n b = sc.nextLong();\n c = sc.nextLong();\n d = sc.nextLong();\n }\n\n private void solve() {\n long ac = a*c;\n long ad = a*d;\n long bc = b*c;\n long bd = b*d;\n result = max(max(ac,ad), max(bc,bd));\n }\n\n private long max(long l1, long l2) {\n if (l1 > l2) {\n return l1;\n } else {\n return l2;\n }\n }\n\n private void output() {\n System.out.println(result);\n /*\n System.out.println((n==0) ? \"Yes\" : \"No\");\n */\n }\n}",
"public class Main {\n\n public static void main(String[] args){\n Main main = new Main();\n main.input();\n main.solve();\n main.output();\n }\n\n long a;\n long b;\n long c;\n long d;\n long result;\n\n private void input() {\n Scanner sc = new Scanner(System.in);\n a = sc.nextLong();\n b = sc.nextLong();\n c = sc.nextLong();\n d = sc.nextLong();\n }\n\n private void solve() {\n long ac = a*c;\n long ad = a*d;\n long bc = b*c;\n long bd = b*d;\n result = max(max(ac,ad), max(bc,bd));\n }\n\n private long max(long l1, long l2) {\n if (l1 > l2) {\n return l1;\n } else {\n return l2;\n }\n }\n\n private void output() {\n System.out.println(result);\n /*\n System.out.println((n==0) ? \"Yes\" : \"No\");\n */\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args){
Main main = new Main();
main.input();
main.solve();
main.output();
}
long a;
long b;
long c;
long d;
long result;
private void input() {
Scanner sc = new Scanner(System.in);
a = sc.nextLong();
b = sc.nextLong();
c = sc.nextLong();
d = sc.nextLong();
}
private void solve() {
long ac = a*c;
long ad = a*d;
long bc = b*c;
long bd = b*d;
result = max(max(ac,ad), max(bc,bd));
}
private long max(long l1, long l2) {
if (l1 > l2) {
return l1;
} else {
return l2;
}
}
private void output() {
System.out.println(result);
/*
System.out.println((n==0) ? "Yes" : "No");
*/
}
}
|
[
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,
17,
42,
2,
40,
13,
17,
30,
4,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
0,
13,
2,
13,
13,
14,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
0,
13,
2,
13,
13,
14,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
0,
13,
2,
13,
13,
14,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
0,
13,
2,
13,
13,
14,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
0,
13,
2,
13,
13,
14,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
0,
13,
2,
13,
13,
14,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
0,
13,
2,
13,
13,
14,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
0,
13,
2,
13,
13,
14,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
0,
13,
2,
13,
13,
14,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
0,
13,
2,
13,
13,
14,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
0,
13,
2,
13,
13,
14,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
0,
13,
2,
13,
13,
14,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
0,
13,
4,
18,
13,
2,
13,
13,
2,
13,
13,
4,
18,
13,
13,
23,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
23,
13,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
29,
4,
18,
13,
29,
17,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
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
],
[
456,
14
],
[
456,
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
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
27,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
33,
36
],
[
17,
37
],
[
37,
38
],
[
38,
39
],
[
15,
40
],
[
40,
41
],
[
456,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
44,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
44,
65
],
[
65,
66
],
[
65,
67
],
[
44,
68
],
[
68,
69
],
[
71,
70
],
[
78,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
78,
78
],
[
78,
79
],
[
78,
80
],
[
71,
81
],
[
81,
82
],
[
81,
83
],
[
68,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
68,
89
],
[
89,
90
],
[
92,
91
],
[
99,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
96,
98
],
[
99,
99
],
[
99,
100
],
[
99,
101
],
[
92,
102
],
[
102,
103
],
[
102,
104
],
[
89,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
89,
110
],
[
110,
111
],
[
113,
112
],
[
120,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
117,
119
],
[
120,
120
],
[
120,
121
],
[
120,
122
],
[
113,
123
],
[
123,
124
],
[
123,
125
],
[
110,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
128,
130
],
[
110,
131
],
[
131,
132
],
[
134,
133
],
[
141,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
138,
140
],
[
141,
141
],
[
141,
142
],
[
141,
143
],
[
134,
144
],
[
144,
145
],
[
144,
146
],
[
131,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
149,
151
],
[
131,
152
],
[
152,
153
],
[
155,
154
],
[
162,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
159,
161
],
[
162,
162
],
[
162,
163
],
[
162,
164
],
[
155,
165
],
[
165,
166
],
[
165,
167
],
[
152,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
170,
172
],
[
152,
173
],
[
173,
174
],
[
176,
175
],
[
183,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
180,
181
],
[
180,
182
],
[
183,
183
],
[
183,
184
],
[
183,
185
],
[
176,
186
],
[
186,
187
],
[
186,
188
],
[
173,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
191,
193
],
[
173,
194
],
[
194,
195
],
[
197,
196
],
[
204,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
201,
202
],
[
201,
203
],
[
204,
204
],
[
204,
205
],
[
204,
206
],
[
197,
207
],
[
207,
208
],
[
207,
209
],
[
194,
210
],
[
210,
211
],
[
210,
212
],
[
212,
213
],
[
212,
214
],
[
194,
215
],
[
215,
216
],
[
218,
217
],
[
225,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
222
],
[
222,
223
],
[
222,
224
],
[
225,
225
],
[
225,
226
],
[
225,
227
],
[
218,
228
],
[
228,
229
],
[
228,
230
],
[
215,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
233,
235
],
[
215,
236
],
[
236,
237
],
[
239,
238
],
[
246,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
243,
244
],
[
243,
245
],
[
246,
246
],
[
246,
247
],
[
246,
248
],
[
239,
249
],
[
249,
250
],
[
249,
251
],
[
236,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
254,
256
],
[
236,
257
],
[
257,
258
],
[
260,
259
],
[
267,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
260,
264
],
[
264,
265
],
[
264,
266
],
[
267,
267
],
[
267,
268
],
[
267,
269
],
[
260,
270
],
[
270,
271
],
[
270,
272
],
[
257,
273
],
[
273,
274
],
[
273,
275
],
[
275,
276
],
[
275,
277
],
[
257,
278
],
[
278,
279
],
[
281,
280
],
[
288,
281
],
[
281,
282
],
[
282,
283
],
[
282,
284
],
[
281,
285
],
[
285,
286
],
[
285,
287
],
[
288,
288
],
[
288,
289
],
[
288,
290
],
[
281,
291
],
[
291,
292
],
[
291,
293
],
[
278,
294
],
[
294,
295
],
[
294,
296
],
[
296,
297
],
[
296,
298
],
[
278,
299
],
[
299,
300
],
[
302,
301
],
[
309,
302
],
[
302,
303
],
[
303,
304
],
[
303,
305
],
[
302,
306
],
[
306,
307
],
[
306,
308
],
[
309,
309
],
[
309,
310
],
[
309,
311
],
[
302,
312
],
[
312,
313
],
[
312,
314
],
[
299,
315
],
[
315,
316
],
[
315,
317
],
[
317,
318
],
[
317,
319
],
[
299,
320
],
[
320,
321
],
[
323,
322
],
[
330,
323
],
[
323,
324
],
[
324,
325
],
[
324,
326
],
[
323,
327
],
[
327,
328
],
[
327,
329
],
[
330,
330
],
[
330,
331
],
[
330,
332
],
[
323,
333
],
[
333,
334
],
[
333,
335
],
[
320,
336
],
[
336,
337
],
[
336,
338
],
[
338,
339
],
[
339,
340
],
[
338,
341
],
[
341,
342
],
[
341,
343
],
[
338,
344
],
[
344,
345
],
[
344,
346
],
[
44,
347
],
[
347,
348
],
[
348,
349
],
[
347,
350
],
[
42,
351
],
[
351,
352
],
[
42,
353
],
[
353,
354
],
[
456,
355
],
[
355,
356
],
[
355,
357
],
[
357,
358
],
[
358,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
358,
363
],
[
357,
364
],
[
364,
365
],
[
365,
366
],
[
365,
367
],
[
364,
368
],
[
368,
369
],
[
369,
370
],
[
370,
371
],
[
371,
372
],
[
371,
373
],
[
355,
374
],
[
374,
375
],
[
355,
376
],
[
376,
377
],
[
456,
378
],
[
378,
379
],
[
378,
380
],
[
380,
381
],
[
380,
382
],
[
378,
383
],
[
383,
384
],
[
383,
385
],
[
378,
386
],
[
386,
387
],
[
386,
388
],
[
388,
389
],
[
389,
390
],
[
390,
391
],
[
391,
392
],
[
392,
393
],
[
389,
394
],
[
394,
395
],
[
395,
396
],
[
395,
397
],
[
397,
398
],
[
398,
399
],
[
399,
400
],
[
394,
401
],
[
401,
402
],
[
402,
403
],
[
402,
404
],
[
388,
405
],
[
405,
406
],
[
406,
407
],
[
407,
408
],
[
378,
409
],
[
409,
410
],
[
409,
411
],
[
411,
412
],
[
412,
413
],
[
413,
414
],
[
413,
415
],
[
415,
416
],
[
416,
417
],
[
417,
418
],
[
412,
419
],
[
419,
420
],
[
420,
421
],
[
421,
422
],
[
422,
423
],
[
411,
424
],
[
424,
425
],
[
409,
426
],
[
426,
427
],
[
378,
428
],
[
428,
429
],
[
428,
430
],
[
430,
431
],
[
431,
432
],
[
432,
433
],
[
433,
434
],
[
432,
435
],
[
435,
436
],
[
378,
437
],
[
437,
438
],
[
437,
439
],
[
439,
440
],
[
440,
441
],
[
441,
442
],
[
442,
443
],
[
441,
444
],
[
444,
445
],
[
378,
446
],
[
446,
447
],
[
446,
448
],
[
448,
449
],
[
449,
450
],
[
450,
451
],
[
451,
452
],
[
450,
453
],
[
453,
454
],
[
0,
455
],
[
455,
456
],
[
455,
457
]
]
| [
"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 \n \n */\n\npublic class Main {\n\n public static void main(String args[] ) throws Exception {\n PrintWriter pw=new PrintWriter(System.out);\n FastScanner sc = new FastScanner();\n \n int t=1;\n //t = sc.ni();\n while(t-->0) {\n \tsolve(pw,sc);\n }\n \n pw.close();\n }\n \n private static void solve(PrintWriter pw, FastScanner sc) {\n \tlong a=sc.ni(),b = sc.ni(),c = sc.ni(),d = sc.ni();\n \tlong ans=0;\n \tif(a>=0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \t\n \telse if(a<0&&b<0&&c<0&&d<0)\n \t\tans = a*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a>=0&&b>=0&&c<0&&d<0)\n \t\tans = a*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a<0&&b<0&&c>=0&&d>=0)\n \t\tans = b*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d>=0)\n \t\tans = Math.max(a*c, b*d);\n \t\n \tpw.print(ans);\n \t\n\t}\n \n\n\tstatic <T> void deb(T x,int o){\n System.out.print(x);\n if(o==0) {\n \t System.out.println();\n \t \n }\n }\n \n \n static class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\t\n\t\tpublic String ne() {\n\t\t\twhile (!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\treturn st.nextToken();\n\t\t}\n\t\tpublic String ne(int k) {\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn \"Not able to read\";\n\t\t}\n\t\t\n\t\tint ni() {\n\t\t\treturn Integer.parseInt(ne());\n\t\t}\n\t\t\n\t\tlong nl() {\n\t\t\treturn Long.parseLong(ne());\n\t\t}\n\t\t\n\t\tdouble nd() {\n\t\t\treturn Double.parseDouble(ne());\n\t\t}\n\t\t\n\t \n\t}\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 public static void main(String args[] ) throws Exception {\n PrintWriter pw=new PrintWriter(System.out);\n FastScanner sc = new FastScanner();\n \n int t=1;\n //t = sc.ni();\n while(t-->0) {\n \tsolve(pw,sc);\n }\n \n pw.close();\n }\n \n private static void solve(PrintWriter pw, FastScanner sc) {\n \tlong a=sc.ni(),b = sc.ni(),c = sc.ni(),d = sc.ni();\n \tlong ans=0;\n \tif(a>=0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \t\n \telse if(a<0&&b<0&&c<0&&d<0)\n \t\tans = a*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a>=0&&b>=0&&c<0&&d<0)\n \t\tans = a*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a<0&&b<0&&c>=0&&d>=0)\n \t\tans = b*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d>=0)\n \t\tans = Math.max(a*c, b*d);\n \t\n \tpw.print(ans);\n \t\n\t}\n \n\n\tstatic <T> void deb(T x,int o){\n System.out.print(x);\n if(o==0) {\n \t System.out.println();\n \t \n }\n }\n \n \n static class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\t\n\t\tpublic String ne() {\n\t\t\twhile (!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\treturn st.nextToken();\n\t\t}\n\t\tpublic String ne(int k) {\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn \"Not able to read\";\n\t\t}\n\t\t\n\t\tint ni() {\n\t\t\treturn Integer.parseInt(ne());\n\t\t}\n\t\t\n\t\tlong nl() {\n\t\t\treturn Long.parseLong(ne());\n\t\t}\n\t\t\n\t\tdouble nd() {\n\t\t\treturn Double.parseDouble(ne());\n\t\t}\n\t\t\n\t \n\t}\n \n}",
"Main",
"public static void main(String args[] ) throws Exception {\n PrintWriter pw=new PrintWriter(System.out);\n FastScanner sc = new FastScanner();\n \n int t=1;\n //t = sc.ni();\n while(t-->0) {\n \tsolve(pw,sc);\n }\n \n pw.close();\n }",
"main",
"{\n PrintWriter pw=new PrintWriter(System.out);\n FastScanner sc = new FastScanner();\n \n int t=1;\n //t = sc.ni();\n while(t-->0) {\n \tsolve(pw,sc);\n }\n \n pw.close();\n }",
"PrintWriter pw=new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"int t=1;",
"t",
"1",
"while(t-->0) {\n \tsolve(pw,sc);\n }",
"t-->0",
"t--",
"t",
"0",
"{\n \tsolve(pw,sc);\n }",
"solve(pw,sc)",
"solve",
"pw",
"sc",
"pw.close()",
"pw.close",
"pw",
"String args[]",
"args",
"private static void solve(PrintWriter pw, FastScanner sc) {\n \tlong a=sc.ni(),b = sc.ni(),c = sc.ni(),d = sc.ni();\n \tlong ans=0;\n \tif(a>=0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \t\n \telse if(a<0&&b<0&&c<0&&d<0)\n \t\tans = a*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a>=0&&b>=0&&c<0&&d<0)\n \t\tans = a*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a<0&&b<0&&c>=0&&d>=0)\n \t\tans = b*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d>=0)\n \t\tans = Math.max(a*c, b*d);\n \t\n \tpw.print(ans);\n \t\n\t}",
"solve",
"{\n \tlong a=sc.ni(),b = sc.ni(),c = sc.ni(),d = sc.ni();\n \tlong ans=0;\n \tif(a>=0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \t\n \telse if(a<0&&b<0&&c<0&&d<0)\n \t\tans = a*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a>=0&&b>=0&&c<0&&d<0)\n \t\tans = a*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a<0&&b<0&&c>=0&&d>=0)\n \t\tans = b*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d>=0)\n \t\tans = Math.max(a*c, b*d);\n \t\n \tpw.print(ans);\n \t\n\t}",
"long a=sc.ni()",
"a",
"sc.ni()",
"sc.ni",
"sc",
"b = sc.ni()",
"b",
"sc.ni()",
"sc.ni",
"sc",
"c = sc.ni()",
"c",
"sc.ni()",
"sc.ni",
"sc",
"d = sc.ni();",
"d",
"sc.ni()",
"sc.ni",
"sc",
"long ans=0;",
"ans",
"0",
"if(a>=0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \t\n \telse if(a<0&&b<0&&c<0&&d<0)\n \t\tans = a*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a>=0&&b>=0&&c<0&&d<0)\n \t\tans = a*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a<0&&b<0&&c>=0&&d>=0)\n \t\tans = b*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d>=0)\n \t\tans = Math.max(a*c, b*d);",
"a>=0&&b>=0&&c>=0&&d>=0",
"c>=0",
"a>=0&&b>=0&&c>=0&&d>=0",
"a>=0",
"a",
"0",
"b>=0",
"b",
"0",
"c>=0",
"c",
"0",
"d>=0",
"d",
"0",
"ans = b*d",
"ans",
"b*d",
"b",
"d",
"if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \t\n \telse if(a<0&&b<0&&c<0&&d<0)\n \t\tans = a*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a>=0&&b>=0&&c<0&&d<0)\n \t\tans = a*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a<0&&b<0&&c>=0&&d>=0)\n \t\tans = b*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d>=0)\n \t\tans = Math.max(a*c, b*d);",
"a<0&&b>=0&&c>=0&&d>=0",
"c>=0",
"a<0&&b>=0&&c>=0&&d>=0",
"a<0",
"a",
"0",
"b>=0",
"b",
"0",
"c>=0",
"c",
"0",
"d>=0",
"d",
"0",
"ans = b*d",
"ans",
"b*d",
"b",
"d",
"if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \t\n \telse if(a<0&&b<0&&c<0&&d<0)\n \t\tans = a*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a>=0&&b>=0&&c<0&&d<0)\n \t\tans = a*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a<0&&b<0&&c>=0&&d>=0)\n \t\tans = b*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d>=0)\n \t\tans = Math.max(a*c, b*d);",
"a>=0&&b>=0&&c<0&&d>=0",
"c<0",
"a>=0&&b>=0&&c<0&&d>=0",
"a>=0",
"a",
"0",
"b>=0",
"b",
"0",
"c<0",
"c",
"0",
"d>=0",
"d",
"0",
"ans = b*d",
"ans",
"b*d",
"b",
"d",
"if(a<0&&b<0&&c<0&&d<0)\n \t\tans = a*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a>=0&&b>=0&&c<0&&d<0)\n \t\tans = a*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a<0&&b<0&&c>=0&&d>=0)\n \t\tans = b*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d>=0)\n \t\tans = Math.max(a*c, b*d);",
"a<0&&b<0&&c<0&&d<0",
"c<0",
"a<0&&b<0&&c<0&&d<0",
"a<0",
"a",
"0",
"b<0",
"b",
"0",
"c<0",
"c",
"0",
"d<0",
"d",
"0",
"ans = a*c",
"ans",
"a*c",
"a",
"c",
"if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a>=0&&b>=0&&c<0&&d<0)\n \t\tans = a*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a<0&&b<0&&c>=0&&d>=0)\n \t\tans = b*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d>=0)\n \t\tans = Math.max(a*c, b*d);",
"a<0&&b<0&&c<0&&d>=0",
"c<0",
"a<0&&b<0&&c<0&&d>=0",
"a<0",
"a",
"0",
"b<0",
"b",
"0",
"c<0",
"c",
"0",
"d>=0",
"d",
"0",
"ans = a*c",
"ans",
"a*c",
"a",
"c",
"if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a>=0&&b>=0&&c<0&&d<0)\n \t\tans = a*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a<0&&b<0&&c>=0&&d>=0)\n \t\tans = b*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d>=0)\n \t\tans = Math.max(a*c, b*d);",
"a<0&&b>=0&&c<0&&d<0",
"c<0",
"a<0&&b>=0&&c<0&&d<0",
"a<0",
"a",
"0",
"b>=0",
"b",
"0",
"c<0",
"c",
"0",
"d<0",
"d",
"0",
"ans = a*c",
"ans",
"a*c",
"a",
"c",
"if(a>=0&&b>=0&&c<0&&d<0)\n \t\tans = a*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a<0&&b<0&&c>=0&&d>=0)\n \t\tans = b*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d>=0)\n \t\tans = Math.max(a*c, b*d);",
"a>=0&&b>=0&&c<0&&d<0",
"c<0",
"a>=0&&b>=0&&c<0&&d<0",
"a>=0",
"a",
"0",
"b>=0",
"b",
"0",
"c<0",
"c",
"0",
"d<0",
"d",
"0",
"ans = a*d",
"ans",
"a*d",
"a",
"d",
"if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a<0&&b<0&&c>=0&&d>=0)\n \t\tans = b*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d>=0)\n \t\tans = Math.max(a*c, b*d);",
"a>=0&&b>=0&&c<0&&d>=0",
"c<0",
"a>=0&&b>=0&&c<0&&d>=0",
"a>=0",
"a",
"0",
"b>=0",
"b",
"0",
"c<0",
"c",
"0",
"d>=0",
"d",
"0",
"ans = b*d",
"ans",
"b*d",
"b",
"d",
"if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a<0&&b<0&&c>=0&&d>=0)\n \t\tans = b*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d>=0)\n \t\tans = Math.max(a*c, b*d);",
"a<0&&b>=0&&c<0&&d<0",
"c<0",
"a<0&&b>=0&&c<0&&d<0",
"a<0",
"a",
"0",
"b>=0",
"b",
"0",
"c<0",
"c",
"0",
"d<0",
"d",
"0",
"ans = a*c",
"ans",
"a*c",
"a",
"c",
"if(a<0&&b<0&&c>=0&&d>=0)\n \t\tans = b*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d>=0)\n \t\tans = Math.max(a*c, b*d);",
"a<0&&b<0&&c>=0&&d>=0",
"c>=0",
"a<0&&b<0&&c>=0&&d>=0",
"a<0",
"a",
"0",
"b<0",
"b",
"0",
"c>=0",
"c",
"0",
"d>=0",
"d",
"0",
"ans = b*c",
"ans",
"b*c",
"b",
"c",
"if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d>=0)\n \t\tans = Math.max(a*c, b*d);",
"a<0&&b<0&&c<0&&d>=0",
"c<0",
"a<0&&b<0&&c<0&&d>=0",
"a<0",
"a",
"0",
"b<0",
"b",
"0",
"c<0",
"c",
"0",
"d>=0",
"d",
"0",
"ans = a*c",
"ans",
"a*c",
"a",
"c",
"if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d>=0)\n \t\tans = Math.max(a*c, b*d);",
"a<0&&b>=0&&c>=0&&d>=0",
"c>=0",
"a<0&&b>=0&&c>=0&&d>=0",
"a<0",
"a",
"0",
"b>=0",
"b",
"0",
"c>=0",
"c",
"0",
"d>=0",
"d",
"0",
"ans = b*d",
"ans",
"b*d",
"b",
"d",
"if(a<0&&b>=0&&c<0&&d>=0)\n \t\tans = Math.max(a*c, b*d);",
"a<0&&b>=0&&c<0&&d>=0",
"c<0",
"a<0&&b>=0&&c<0&&d>=0",
"a<0",
"a",
"0",
"b>=0",
"b",
"0",
"c<0",
"c",
"0",
"d>=0",
"d",
"0",
"ans = Math.max(a*c, b*d)",
"ans",
"Math.max(a*c, b*d)",
"Math.max",
"Math",
"a*c",
"a",
"c",
"b*d",
"b",
"d",
"pw.print(ans)",
"pw.print",
"pw",
"ans",
"PrintWriter pw",
"pw",
"FastScanner sc",
"sc",
"static <T> void deb(T x,int o){\n System.out.print(x);\n if(o==0) {\n \t System.out.println();\n \t \n }\n }",
"deb",
"{\n System.out.print(x);\n if(o==0) {\n \t System.out.println();\n \t \n }\n }",
"System.out.print(x)",
"System.out.print",
"System.out",
"System",
"System.out",
"x",
"if(o==0) {\n \t System.out.println();\n \t \n }",
"o==0",
"o",
"0",
"{\n \t System.out.println();\n \t \n }",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"T x",
"x",
"int o",
"o",
"static class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\t\n\t\tpublic String ne() {\n\t\t\twhile (!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\treturn st.nextToken();\n\t\t}\n\t\tpublic String ne(int k) {\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn \"Not able to read\";\n\t\t}\n\t\t\n\t\tint ni() {\n\t\t\treturn Integer.parseInt(ne());\n\t\t}\n\t\t\n\t\tlong nl() {\n\t\t\treturn Long.parseLong(ne());\n\t\t}\n\t\t\n\t\tdouble nd() {\n\t\t\treturn Double.parseDouble(ne());\n\t\t}\n\t\t\n\t \n\t}",
"FastScanner",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st=new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"public String ne() {\n\t\t\twhile (!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\treturn st.nextToken();\n\t\t}",
"ne",
"{\n\t\t\twhile (!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\treturn st.nextToken();\n\t\t}",
"while (!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}",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"try {\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\t\tst=new StringTokenizer(br.readLine());\n\t\t\t\t}",
"st=new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public String ne(int k) {\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn \"Not able to read\";\n\t\t}",
"ne",
"{\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn \"Not able to read\";\n\t\t}",
"try {\n\t\t\t\treturn 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\treturn br.readLine();\n\t\t\t}",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"return \"Not able to read\";",
"\"Not able to read\"",
"int k",
"k",
"int ni() {\n\t\t\treturn Integer.parseInt(ne());\n\t\t}",
"ni",
"{\n\t\t\treturn Integer.parseInt(ne());\n\t\t}",
"return Integer.parseInt(ne());",
"Integer.parseInt(ne())",
"Integer.parseInt",
"Integer",
"ne()",
"ne",
"long nl() {\n\t\t\treturn Long.parseLong(ne());\n\t\t}",
"nl",
"{\n\t\t\treturn Long.parseLong(ne());\n\t\t}",
"return Long.parseLong(ne());",
"Long.parseLong(ne())",
"Long.parseLong",
"Long",
"ne()",
"ne",
"double nd() {\n\t\t\treturn Double.parseDouble(ne());\n\t\t}",
"nd",
"{\n\t\t\treturn Double.parseDouble(ne());\n\t\t}",
"return Double.parseDouble(ne());",
"Double.parseDouble(ne())",
"Double.parseDouble",
"Double",
"ne()",
"ne",
"public class Main {\n\n public static void main(String args[] ) throws Exception {\n PrintWriter pw=new PrintWriter(System.out);\n FastScanner sc = new FastScanner();\n \n int t=1;\n //t = sc.ni();\n while(t-->0) {\n \tsolve(pw,sc);\n }\n \n pw.close();\n }\n \n private static void solve(PrintWriter pw, FastScanner sc) {\n \tlong a=sc.ni(),b = sc.ni(),c = sc.ni(),d = sc.ni();\n \tlong ans=0;\n \tif(a>=0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \t\n \telse if(a<0&&b<0&&c<0&&d<0)\n \t\tans = a*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a>=0&&b>=0&&c<0&&d<0)\n \t\tans = a*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a<0&&b<0&&c>=0&&d>=0)\n \t\tans = b*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d>=0)\n \t\tans = Math.max(a*c, b*d);\n \t\n \tpw.print(ans);\n \t\n\t}\n \n\n\tstatic <T> void deb(T x,int o){\n System.out.print(x);\n if(o==0) {\n \t System.out.println();\n \t \n }\n }\n \n \n static class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\t\n\t\tpublic String ne() {\n\t\t\twhile (!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\treturn st.nextToken();\n\t\t}\n\t\tpublic String ne(int k) {\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn \"Not able to read\";\n\t\t}\n\t\t\n\t\tint ni() {\n\t\t\treturn Integer.parseInt(ne());\n\t\t}\n\t\t\n\t\tlong nl() {\n\t\t\treturn Long.parseLong(ne());\n\t\t}\n\t\t\n\t\tdouble nd() {\n\t\t\treturn Double.parseDouble(ne());\n\t\t}\n\t\t\n\t \n\t}\n \n}",
"public class Main {\n\n public static void main(String args[] ) throws Exception {\n PrintWriter pw=new PrintWriter(System.out);\n FastScanner sc = new FastScanner();\n \n int t=1;\n //t = sc.ni();\n while(t-->0) {\n \tsolve(pw,sc);\n }\n \n pw.close();\n }\n \n private static void solve(PrintWriter pw, FastScanner sc) {\n \tlong a=sc.ni(),b = sc.ni(),c = sc.ni(),d = sc.ni();\n \tlong ans=0;\n \tif(a>=0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \t\n \telse if(a<0&&b<0&&c<0&&d<0)\n \t\tans = a*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a>=0&&b>=0&&c<0&&d<0)\n \t\tans = a*d;\n \telse if(a>=0&&b>=0&&c<0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d<0)\n \t\tans = a*c;\n \t\n \telse if(a<0&&b<0&&c>=0&&d>=0)\n \t\tans = b*c;\n \telse if(a<0&&b<0&&c<0&&d>=0)\n \t\tans = a*c;\n \telse if(a<0&&b>=0&&c>=0&&d>=0)\n \t\tans = b*d;\n \telse if(a<0&&b>=0&&c<0&&d>=0)\n \t\tans = Math.max(a*c, b*d);\n \t\n \tpw.print(ans);\n \t\n\t}\n \n\n\tstatic <T> void deb(T x,int o){\n System.out.print(x);\n if(o==0) {\n \t System.out.println();\n \t \n }\n }\n \n \n static class FastScanner {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st=new StringTokenizer(\"\");\n\t\t\n\t\tpublic String ne() {\n\t\t\twhile (!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\treturn st.nextToken();\n\t\t}\n\t\tpublic String ne(int k) {\n\t\t\ttry {\n\t\t\t\treturn br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn \"Not able to read\";\n\t\t}\n\t\t\n\t\tint ni() {\n\t\t\treturn Integer.parseInt(ne());\n\t\t}\n\t\t\n\t\tlong nl() {\n\t\t\treturn Long.parseLong(ne());\n\t\t}\n\t\t\n\t\tdouble nd() {\n\t\t\treturn Double.parseDouble(ne());\n\t\t}\n\t\t\n\t \n\t}\n \n}",
"Main"
]
| import java.io.*;
import java.math.*;
import java.util.*;
import java.lang.*;
// import java.text.DecimalFormat;
// import java.text.DecimalFormatSymbols;
/*
*/
public class Main {
public static void main(String args[] ) throws Exception {
PrintWriter pw=new PrintWriter(System.out);
FastScanner sc = new FastScanner();
int t=1;
//t = sc.ni();
while(t-->0) {
solve(pw,sc);
}
pw.close();
}
private static void solve(PrintWriter pw, FastScanner sc) {
long a=sc.ni(),b = sc.ni(),c = sc.ni(),d = sc.ni();
long ans=0;
if(a>=0&&b>=0&&c>=0&&d>=0)
ans = b*d;
else if(a<0&&b>=0&&c>=0&&d>=0)
ans = b*d;
else if(a>=0&&b>=0&&c<0&&d>=0)
ans = b*d;
else if(a<0&&b<0&&c<0&&d<0)
ans = a*c;
else if(a<0&&b<0&&c<0&&d>=0)
ans = a*c;
else if(a<0&&b>=0&&c<0&&d<0)
ans = a*c;
else if(a>=0&&b>=0&&c<0&&d<0)
ans = a*d;
else if(a>=0&&b>=0&&c<0&&d>=0)
ans = b*d;
else if(a<0&&b>=0&&c<0&&d<0)
ans = a*c;
else if(a<0&&b<0&&c>=0&&d>=0)
ans = b*c;
else if(a<0&&b<0&&c<0&&d>=0)
ans = a*c;
else if(a<0&&b>=0&&c>=0&&d>=0)
ans = b*d;
else if(a<0&&b>=0&&c<0&&d>=0)
ans = Math.max(a*c, b*d);
pw.print(ans);
}
static <T> void deb(T x,int o){
System.out.print(x);
if(o==0) {
System.out.println();
}
}
static class FastScanner {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st=new StringTokenizer("");
public String ne() {
while (!st.hasMoreElements())
try {
st=new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
return st.nextToken();
}
public String ne(int k) {
try {
return br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return "Not able to read";
}
int ni() {
return Integer.parseInt(ne());
}
long nl() {
return Long.parseLong(ne());
}
double nd() {
return Double.parseDouble(ne());
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
17,
0,
18,
13,
17,
2,
13,
13,
0,
18,
13,
17,
2,
13,
13,
0,
18,
13,
17,
2,
13,
13,
0,
18,
13,
17,
2,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
18,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
82,
8
],
[
82,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
11,
35
],
[
35,
36
],
[
35,
37
],
[
11,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
43,
45
],
[
11,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
11,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
11,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
11,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
11,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
9,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
]
| [
"import java.util.Scanner;\nimport java.util.Arrays;\n\npublic class Main{\n\tpublic static void main(String args[]){\n Scanner scanner = new Scanner(System.in);\n long a = scanner.nextInt();\n long b = scanner.nextInt();\n long c = scanner.nextInt();\n long d = scanner.nextInt();\n\n long array[] = new long[4];\n array[0] = a * c;\n array[1] = a * d;\n array[2] = b * c;\n array[3] = b * d;\n Arrays.sort(array);\n \n System.out.println(array[3]);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main{\n\tpublic static void main(String args[]){\n Scanner scanner = new Scanner(System.in);\n long a = scanner.nextInt();\n long b = scanner.nextInt();\n long c = scanner.nextInt();\n long d = scanner.nextInt();\n\n long array[] = new long[4];\n array[0] = a * c;\n array[1] = a * d;\n array[2] = b * c;\n array[3] = b * d;\n Arrays.sort(array);\n \n System.out.println(array[3]);\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner scanner = new Scanner(System.in);\n long a = scanner.nextInt();\n long b = scanner.nextInt();\n long c = scanner.nextInt();\n long d = scanner.nextInt();\n\n long array[] = new long[4];\n array[0] = a * c;\n array[1] = a * d;\n array[2] = b * c;\n array[3] = b * d;\n Arrays.sort(array);\n \n System.out.println(array[3]);\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n long a = scanner.nextInt();\n long b = scanner.nextInt();\n long c = scanner.nextInt();\n long d = scanner.nextInt();\n\n long array[] = new long[4];\n array[0] = a * c;\n array[1] = a * d;\n array[2] = b * c;\n array[3] = b * d;\n Arrays.sort(array);\n \n System.out.println(array[3]);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"long a = scanner.nextInt();",
"a",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long b = scanner.nextInt();",
"b",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long c = scanner.nextInt();",
"c",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long d = scanner.nextInt();",
"d",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long array[] = new long[4];",
"array",
"new long[4]",
"4",
"array[0] = a * c",
"array[0]",
"array",
"0",
"a * c",
"a",
"c",
"array[1] = a * d",
"array[1]",
"array",
"1",
"a * d",
"a",
"d",
"array[2] = b * c",
"array[2]",
"array",
"2",
"b * c",
"b",
"c",
"array[3] = b * d",
"array[3]",
"array",
"3",
"b * d",
"b",
"d",
"Arrays.sort(array)",
"Arrays.sort",
"Arrays",
"array",
"System.out.println(array[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"array[3]",
"array",
"3",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]){\n Scanner scanner = new Scanner(System.in);\n long a = scanner.nextInt();\n long b = scanner.nextInt();\n long c = scanner.nextInt();\n long d = scanner.nextInt();\n\n long array[] = new long[4];\n array[0] = a * c;\n array[1] = a * d;\n array[2] = b * c;\n array[3] = b * d;\n Arrays.sort(array);\n \n System.out.println(array[3]);\n }\n}",
"public class Main{\n\tpublic static void main(String args[]){\n Scanner scanner = new Scanner(System.in);\n long a = scanner.nextInt();\n long b = scanner.nextInt();\n long c = scanner.nextInt();\n long d = scanner.nextInt();\n\n long array[] = new long[4];\n array[0] = a * c;\n array[1] = a * d;\n array[2] = b * c;\n array[3] = b * d;\n Arrays.sort(array);\n \n System.out.println(array[3]);\n }\n}",
"Main"
]
| import java.util.Scanner;
import java.util.Arrays;
public class Main{
public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
long a = scanner.nextInt();
long b = scanner.nextInt();
long c = scanner.nextInt();
long d = scanner.nextInt();
long array[] = new long[4];
array[0] = a * c;
array[1] = a * d;
array[2] = b * c;
array[3] = b * d;
Arrays.sort(array);
System.out.println(array[3]);
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.