typedef int64_t intmax_t 

largest signed int available.