#define MIN(a, b) ((a)<(b) ? (a):(b)) #define MAX(a, b) ((a)<(b) ? (b):(a))