/* package whatever; // 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. */
class Ideone {
Integer a
[] = {-8,
7,
0,
0,
6,
4,
17,
-37,
-178,
-1,
0,
77 }; Arrays.
sort(a,
(x, y
) -> x
==0 ? y
==0 ? 0 : -1 : x
<0 ? y
<0 ? 0 : y
==0 ? 1 : -1 : y
>0 ? 0 : 1); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lIHsKICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24gewogICAgSW50ZWdlciBhW10gPSB7LTgsIDcsIDAsIDAsIDYsIDQsIDE3LCAtMzcsIC0xNzgsIC0xLCAwLCA3NyB9OwogICAgQXJyYXlzLnNvcnQoYSwgKHgsIHkpIC0+IHg9PTAgPyB5PT0wID8gMCA6IC0xIDogeDwwID8geTwwID8gMCA6IHk9PTAgPyAxIDogLTEgOiB5PjAgPyAwIDogMSk7CiAgICBTeXN0ZW0ub3V0LnByaW50bG4oQXJyYXlzLnRvU3RyaW5nKGEpKTsKICB9Cn0=
[0, 0, 0, -8, -37, -178, -1, 7, 6, 4, 17, 77]