#include #include const int maxn=32800; inline int min(const int &a,const int &b) { return a