#include <fstream>
#include <cmath>

using namespace std;

int main()
{
    ifstream fin("DATA5.txt");
    ofstream fout("OUT5.txt");
    int a,b;
    char op;
    while(fin >> a >> op >> b)
    {
        if(op=='+')
            fout << a+b << endl;
        else if(op=='-')
            fout << a-b << endl;
        else if(op=='*')
            fout << a*b << endl;
        else if(op=='/')
            fout << a/b << endl;
        else if(op=='%')
            fout << a%b << endl;
        else if(op=='^')
            fout << (int)pow((double)a,(double)b) << endl;
        else if(op=='=')
            fout << (a==b?"true":"false") << endl;
    }
}

