#include <iostream>
using namespace std;

template <typename T> 
struct Foo : T { int x; };

struct Bar { int y; };

int main() {
	Bar* x = new Foo<Bar>();
	std::cout << x->x;
	// your code goes here
	return 0;
}