#include <iostream>
using namespace std;

struct A
{
	int a_;
};

struct B : public A
{
	int b_;
};

void test(A a[])
{
	cout << a[0].a_ << endl;
	cout << a[1].a_ << endl;
}


int main() {
	// your code goes here
	B b[1];
	b[0].a_ = 123;
	b[0].b_ = 456;
	test(b);
	
	return 0;
}