#include <iostream>
 
using namespace std;
 
struct A {};
struct B : A {};
struct C : A {};
struct D : B, C {};
 
int main() {
    
    D * d = new D;
    
    B * b = d;
    C * c = d;
    
    A * a1 = b;
    A * a2 = c;
    
    cout << boolalpha << (a1 == a2) << endl;
}
