#include<iostream>
using namespace std;
class Operation
{
public:
    Operation();
    Operation(double X,double Y):x(X),y(Y){}
    Operation(int M,int N):m(M),n(N){}
    Operation(int M,double X):m(M),x(X){}
    Operation(double X,int M):x(X),m(M){}
    int calculate(int a,int b)
    {
        return m*n;
    }
    double calculate(int a,double b)
    {
        return x*m;

    }
    double calculate(double a,int b)
    {
        return m/x;
    }
    double calculate(double a,double b)
    {
        return x-y;
    }
private:
    double x;
    double y;
    int m;
    int n;
};
int main()
{
    Operation p1(2,2),p2(2.1,2);
    cout<<p1.calculate();
    cout<<p2.calculate();
    return 0;
}