#include <cstdio>
#include <list>
class Person{
public:
int age;
int weight;
Person(int age, int weight):age(age), weight(weight){}
};
int main() {
std::list<Person> ls;
ls.push_back(Person(20, 160));
ls.push_back(Person(25, 180));
ls.push_back(Person(23, 170));
for(auto i=ls.begin();i!=ls.end();++i){
printf("%X %X %d %d\n", &i, &(*i), (*i).age, (*i).weight);
}
}
I2luY2x1ZGUgPGNzdGRpbz4KI2luY2x1ZGUgPGxpc3Q+CmNsYXNzIFBlcnNvbnsKcHVibGljOgogICAgaW50IGFnZTsKICAgIGludCB3ZWlnaHQ7CiAgICBQZXJzb24oaW50IGFnZSwgaW50IHdlaWdodCk6YWdlKGFnZSksIHdlaWdodCh3ZWlnaHQpe30KfTsKaW50IG1haW4oKSB7CiAgICBzdGQ6Omxpc3Q8UGVyc29uPiBsczsKICAgIGxzLnB1c2hfYmFjayhQZXJzb24oMjAsIDE2MCkpOwogICAgbHMucHVzaF9iYWNrKFBlcnNvbigyNSwgMTgwKSk7CiAgICBscy5wdXNoX2JhY2soUGVyc29uKDIzLCAxNzApKTsKICAgIGZvcihhdXRvIGk9bHMuYmVnaW4oKTtpIT1scy5lbmQoKTsrK2kpewogICAgICAgIHByaW50ZigiJVggJVggJWQgJWRcbiIsICZpLCAmKCppKSwgKCppKS5hZ2UsICgqaSkud2VpZ2h0KTsKICAgIH0KfQ==