#include <iostream>
#include <vector>
#include <stack>
#include <algorithm>
using namespace std;
template<typename T>
class add {
private:
int a = 50;
int b = 10;
public:
add() {
}
~add() {
}
public:
void say(T &c) {
cout << c << endl;
}
int A_add_reference(T &c) {
return a + c;
}
int b_add_reference(T& c) {
return b + c;
}
};
int main() {
add<int>* myadd = new add<int>();
int a = 50;
myadd->say(a);
cout << myadd->A_add_reference(a) << endl;
cout << myadd->b_add_reference(a) << endl;
delete myadd;
return 0;
}