#include <iostream> #include <cstring> // use strlen #include <string> using namespace std; const int Max = 5e2+10; class st { private: char num[Max]; int n; public: st(); void Reset(char * a, int len); st operator+(const st & b); friend ostream & operator<<(ostream & os, st ans); }; st::st() { n = 0; for (int i = 0; i < Max; ++i) num[i] = '