#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a>n; Int a=n/1000000; Int b=(n%1000000)/1000; Int c=n%1000; if(a) cout<