using System;
using System.Linq;
using System.Collections.Generic;
using System.Globalization;
using System.Net;
public class Test
{
public static void Main()
{
ulong[] arr = new ulong[30];
arr[0] = 13325647855656;
arr[1] = 65897426666332;
arr[2] = 00685956265661;
arr[4] = 0;
Array.Sort(arr, (u1, u2) =>
{
if (u1 == 0 && u2 == 0) return 0;
else if(u1 ==0) return ulong.MaxValue.CompareTo(u2);
else if (u2 == 0) return u1.CompareTo(ulong.MaxValue);
else return u1.CompareTo(u2);
});
foreach(var val in arr)
Console.WriteLine(val);
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uTGlucTsKdXNpbmcgU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWM7CnVzaW5nIFN5c3RlbS5HbG9iYWxpemF0aW9uOwp1c2luZyBTeXN0ZW0uTmV0OwoKCnB1YmxpYyBjbGFzcyBUZXN0CnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKCXsKICAgICAgICAgICAgdWxvbmdbXSBhcnIgPSBuZXcgdWxvbmdbMzBdOwoKICAgICAgICAgICAgYXJyWzBdID0gMTMzMjU2NDc4NTU2NTY7CiAgICAgICAgICAgIGFyclsxXSA9IDY1ODk3NDI2NjY2MzMyOwogICAgICAgICAgICBhcnJbMl0gPSAwMDY4NTk1NjI2NTY2MTsKICAgICAgICAgICAgYXJyWzRdID0gMDsKCiAgICAgICAgICAgIEFycmF5LlNvcnQoYXJyLCAodTEsIHUyKSA9PgogICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGlmICh1MSA9PSAwICYmIHUyID09IDApIHJldHVybiAwOwogICAgICAgICAgICAgICAgICAgIGVsc2UgaWYodTEgPT0wKSByZXR1cm4gdWxvbmcuTWF4VmFsdWUuQ29tcGFyZVRvKHUyKTsKICAgICAgICAgICAgICAgICAgICBlbHNlIGlmICh1MiA9PSAwKSByZXR1cm4gdTEuQ29tcGFyZVRvKHVsb25nLk1heFZhbHVlKTsKICAgICAgICAgICAgICAgICAgICBlbHNlIHJldHVybiB1MS5Db21wYXJlVG8odTIpOwogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICAKICAgICAgICAgICAgZm9yZWFjaCh2YXIgdmFsIGluIGFycikKICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUodmFsKTsKCX0gICAKfQoKICAgIAo=