using System;
public class Test
{
public static void Main()
{
double a = double.NaN;
double b = double.NegativeInfinity;
Console.WriteLine(a.CompareTo(b));
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCWRvdWJsZSBhID0gZG91YmxlLk5hTjsKICAgICAgICBkb3VibGUgYiA9IGRvdWJsZS5OZWdhdGl2ZUluZmluaXR5OwoJICAgIENvbnNvbGUuV3JpdGVMaW5lKGEuQ29tcGFyZVRvKGIpKTsKCX0KfQ==