#include<iostream>
#include<cstring>
using namespace std;
class base{
int a[10];
public:
base(){
for(int i =0;i<10;i++){
a[i]=i;
}
}
int operator[](int n){
return a[n];
}
};
int main (){
base ob;
for(int i =0;i<10;i++){
cout<<ob[i]<<" ";
}
return 0;
}
I2luY2x1ZGU8aW9zdHJlYW0+CiNpbmNsdWRlPGNzdHJpbmc+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmNsYXNzIGJhc2V7CmludCBhWzEwXTsKcHVibGljOgogICAgYmFzZSgpewogICAgZm9yKGludCBpID0wO2k8MTA7aSsrKXsKICAgICAgICBhW2ldPWk7CiAgICB9CiAgICB9CiAgICBpbnQgb3BlcmF0b3JbXShpbnQgbil7CiAgICByZXR1cm4gYVtuXTsKICAgIH0KfTsKaW50IG1haW4gKCl7CmJhc2Ugb2I7CmZvcihpbnQgaSA9MDtpPDEwO2krKyl7CiAgICBjb3V0PDxvYltpXTw8IiAiOwp9CnJldHVybiAwOwp9Cgo=