class BaseClass {
    public abstract getOp();
    public abstract getA();
    public abstract getB();
    public abstract Print();

    public ToString()
    {
        return $"{this.A} {this.Op} {this.B}";
    }
}

class Times : BaseClass {
    private a;
    private b;
    public Times(a,b)
    {
        this.a = a;
        this.b = b;
    }

    public getA()
    {
        return this.a;
    }
    public getB()
    {
        return this.b;
    }

    public getOp()
    {
        return "*";
    }

    public Print()
    {
        Console.WriteLine($"{this} = {this.a * this.b}");
    }
}