#include <iostream>
using namespace std;
int main()
{
int v =8, *r, *s;
int *p;
int q = 100;
p= &q;
r =p;
*p = 20;
p= new int;
*r = 30;
q=v;
s=p;
*s=50;
cout << *p << endl;
cout << q << endl;
cout << *r << endl;
cout << v << endl;
cout << *s << endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7CiAgaW50IHYgPTgsICpyLCAqczsKICBpbnQgKnA7CiAgaW50IHEgPSAxMDA7CiAgCiAgcD0gJnE7CiAgciA9cDsKICAqcCA9IDIwOwogIAogIHA9IG5ldyBpbnQ7CiAgKnIgPSAzMDsKICBxPXY7CiAgcz1wOwogICpzPTUwOwogCiBjb3V0IDw8ICpwIDw8IGVuZGw7CmNvdXQgPDwgcSA8PCBlbmRsOwogIGNvdXQgPDwgKnIgPDwgZW5kbDsKICBjb3V0IDw8IHYgPDwgZW5kbDsKICBjb3V0IDw8ICpzIDw8IGVuZGw7ICAKfQ==