#include<iostream>
#include<stdexcept>
using namespace std;
int main()
{
try{
int a,b; char s;
cin>>a>>s>>b;
if(s=='/'){
if(b==0) throw "Divided by 0!";
cout<<a<<"/"<<b<<"="<<a/b<<endl;
}
else
if(s=='%') {
if(b==0) throw a;
cout<<a<<"%"<<b<<"="<<a%b<<endl;
}
else
cout<<"Option must be % or /."<<endl;
}
catch(int i) { cout<<"Error occur:"<<i<<"%0"<<endl; }
catch(char *str) {cout<<"Error occur:"<<str<<endl; }
catch(runtime_error err){ cout<<err.what()<<endl;}
catch(...){cout<<"Unkown Error"<<endl;}
cout<<"Hello world"<<endl;
return 0;
}