var n:comp;begin repeat read(n);n:=2pow(31and(n-1));writeln(-n," to ",n-1)until 0>0end.