#include <iostream>

using namespace std;

class A { public: int x; };
class B1 : public virtual A {};
class B2 : public virtual A {};
class C : public B1, public B2 {};

int main() {
  C c;
  c.x = 7;
  cout << c.x << endl;
}
