#include <iostream>

using namespace std;

class A { public: int x; };
class B : public A {
  public: int x;
};

int main() {
  B b;
  b.x = 7; b.A::x = 3;
  cout << b.x << " " << b.A::x
       << endl;
}
