#include #include #include using namespace std; inline int min(int a,int b) { return a