#include <iostream>
#include <sstream>
using namespace std;
class Base{
private:
static int counter;
int no;
public:
Base(){
no=counter;
counter++;
}
int getNo() const{return no;}
string to_string() const;
};
string Base::to_string() const{
ostringstream s;
s << "I am Sito No." << getNo();
return s.str();
}
ostream& operator<<(ostream& s, const Base& x){
return s << x.to_string();
}
int Base::counter=0;
const int SITO_MAX=10;
void main(){
Base sito[SITO_MAX];
for(int i=0;i<SITO_MAX;i++){
cout << sito[i] << endl;
}
getch();
}