#include <iostream>

using namespace std;

int main()
{
    int a=5;
    const int b=10;
    int* c=&a;
    cout<<&a<<' '<<a<<endl;
    cout<<&b<<' '<<b<<endl;
    cout<<c<<' '<<*c<<endl;
    c++;
    cout<<c<<' '<<*c<<endl;
    *c=5;
    cout<<c<<' '<<*c<<endl;
    cout<<&b<<' '<<b<<endl;
    cout<<(c==&b)<<' '<<(*c==b);
    return 0;
}
