#include #include #include #include #include #include #include #include #include #include using namespace std; struct aaa{aaa(){cin.tie(nullptr); ios::sync_with_stdio(false); cout<ostream &operator<<(ostream &o,const vector&v){o<<"{";for(int i=0;i<(int)v.size();i++)o<<(i>0?", ":"")<bool chmax(T a,T& b) {if (b> n; string s = ""; if (n == 0) s = "0"; int i=0; while(n!= 0) { if (i!= 0 && i % 3 == 0) s += ','; s += to_string(n % 10); n /= 10; i++; } reverse(s.begin(), s.end()); cout << s << endl; }