#include<stdio.h>
int *func()
{
static int d;
return &d;
}
int main()
{
int i;
*(func()) = 123;
i = *(func());
*(func()) = 321;
i = *(func());
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KaW50ICpmdW5jKCkKewogICAgc3RhdGljIGludCBkOwogICAgcmV0dXJuICZkOwp9CgppbnQgbWFpbigpCnsKICAgIGludCBpOwoKICAgICooZnVuYygpKSA9IDEyMzsKICAgIGkgPSAqKGZ1bmMoKSk7CiAgICBwcmludGYoIiVkXG4iLCBpKTsKCiAgICAqKGZ1bmMoKSkgPSAzMjE7CiAgICBpID0gKihmdW5jKCkpOwogICAgcHJpbnRmKCIlZFxuIiwgaSk7CgogICAgcmV0dXJuIDA7Cn0K