#include<iostream>
using namespace std;
template<class T>
class A
{
public:
    T show(T a)
    {
      t=a;
      return t;
    }
protected:
    T t;
};

template<class T,class U>
class B:public A<T>
{
public:
    U shows(U b)
    {
      u=b;
      return u;
    }
private:
    U u;
};
int main()
{
    B<int,double> d;
    int a=d.shows(6);
    cout<<a<<endl;
    double b=d.shows(3.14);
    cout<<b<<endl;
    return 0;
}