#include <iostream>
using namespace std;
int f1(int *a) {
return *a;
}
int *f2(int *a) {
return a;
}
int *f3(int &a) {
return &a;
}
int main() {
int value = 2;
cout << f1(f2(f3(value)));
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogICAgCmludCBmMShpbnQgKmEpIHsKICAgIHJldHVybiAqYTsKfQogICAKaW50ICpmMihpbnQgKmEpIHsKICAgIHJldHVybiBhOwp9CiAgIAppbnQgKmYzKGludCAmYSkgewogICAgcmV0dXJuICZhOwp9CiAgICAKaW50IG1haW4oKSB7CiAgICBpbnQgdmFsdWUgPSAyOwogICAgY291dCA8PCBmMShmMihmMyh2YWx1ZSkpKTsKICAgIHJldHVybiAwOwp9Cgo=