#include<iostream>
#include<stdexcept>
using namespace std;
int divide(int a, int b)
{
if (b ==0)
{
throw runtime_error("Division by zero");
}
return a/b;
}
int main()
{
int a, b;
cin>>a>>b;
try
{
int result;
result = divide(a,b);
cout<<"Result: "<<result<<endl;
}
catch (const runtime_error & e)
{
cout<<"Error: "<<e.what()<<endl;
}
}