#define SCNdFAST32 "ld" 

decimal scanf format for int_fast32_t