#include <iostream>
#include <cassert>
class CLASS_hoge
{
private:
int i_;
public:
CLASS_hoge() : i_(-1) { }
void input(int i) { i_ = i; }
void output()
{
assert(0 <= i_);
std::cout << i_ << std::endl;
}
};
int main()
{
int n = 0;
std::cin >> n;
assert(0 < n && n < 10);
CLASS_hoge **cl = new CLASS_hoge*[n];
int j = 0;
for(int i = 0; i < n; i++)
{
cl[i] = new CLASS_hoge();
cl[i]->input(j);
j += 100;
}
for(int i = 0; i < n; i++) { cl[i]->output(); }
for(int i = 0; i < n; i++) { delete cl[i]; }
delete[] cl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y2Fzc2VydD4KCmNsYXNzIENMQVNTX2hvZ2UKewpwcml2YXRlOgoJaW50IGlfOwoJCnB1YmxpYzoKCUNMQVNTX2hvZ2UoKSA6IGlfKC0xKSB7IH0KCXZvaWQgaW5wdXQoaW50IGkpIHsgaV8gPSBpOyB9Cgl2b2lkIG91dHB1dCgpCgl7CgkJYXNzZXJ0KDAgPD0gaV8pOwoJCXN0ZDo6Y291dCA8PCBpXyA8PCBzdGQ6OmVuZGw7Cgl9Cn07CgppbnQgbWFpbigpCnsKCWludCBuID0gMDsKCXN0ZDo6Y2luID4+IG47Cglhc3NlcnQoMCA8IG4gJiYgbiA8IDEwKTsKCQoJQ0xBU1NfaG9nZSAqKmNsID0gbmV3IENMQVNTX2hvZ2UqW25dOwoJaW50IGogPSAwOwoJCglmb3IoaW50IGkgPSAwOyBpIDwgbjsgaSsrKQoJewoJCWNsW2ldID0gbmV3IENMQVNTX2hvZ2UoKTsKCQljbFtpXS0+aW5wdXQoaik7CgkJaiArPSAxMDA7Cgl9CgkKCWZvcihpbnQgaSA9IDA7IGkgPCBuOyBpKyspIHsgY2xbaV0tPm91dHB1dCgpOyB9CgkKCWZvcihpbnQgaSA9IDA7IGkgPCBuOyBpKyspIHsgZGVsZXRlIGNsW2ldOyB9CglkZWxldGVbXSBjbDsKCQoJcmV0dXJuIDA7Cn0=