#include <iostream>
using namespace std;

class Base {

private:
    int x;
    int y;

public:
    Base(int x, int y) {
        this->x = x;
        this->y = y;
    }

    int getX() {
        return x;
    }

    int getY() {
        return y;
    }

     virtual void calculate() {
        cout << getX() * getY() << endl;
    }

};

class Sub : public Base {
    // write your code here......
public:
    Sub(int x, int y):Base(x,y)
    {

    }
    void calculate() override
    {
        if (Base::getY() == 0)
        {
            cout << "Error";
        }
        else
        {
            cout << Base::getX() / Base::getY() << endl;
        }
    }

};

int main() {

    int x, y;
    cin >> x;
    cin >> y;
    Sub sub(x, y);
    sub.calculate();

    return 0;
}