#include <iostream>
using namespace std;
struct C{int n;};
struct A{int n;};
struct B : A, C{};
int main()
{
B b;
B* pb = &b;
cout << static_cast<C*>(pb) << "\n";
cout << reinterpret_cast<C*>(pb);
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKc3RydWN0IEN7aW50IG47fTsKc3RydWN0IEF7aW50IG47fTsKc3RydWN0IEIgOiBBLCBDe307CgppbnQgbWFpbigpCnsKICAgIEIgYjsKICAgIEIqIHBiID0gJmI7CiAgICBjb3V0IDw8IHN0YXRpY19jYXN0PEMqPihwYikgPDwgIlxuIjsKICAgIGNvdXQgPDwgcmVpbnRlcnByZXRfY2FzdDxDKj4ocGIpOwp9Cgo=