#include <iostream>
using namespace std;
class bank
{
public:
bank();
~bank()
{
cout<<"show the money"<<endl;
}
void moneybase(double base);
void moneyput(double put);
void moneyget(double get);
private:
double money;
};
bank::bank()
{
cout<<"input the money"<<endl;
}
void bank::moneybase(double base)
{
money=base;
}
void bank::moneyput(double put)
{
double p;
cin>>put;
p=money-put;
cout<<p<<endl;
}
void bank::moneyget(double get)
{
double g;
cin>>get;
g=money+get;
cout<<g<<endl;
}
int main ()
{
bank B;
B.moneybase(10000);
B.moneyget(1);
B.moneyput(1);
return 0;
}