#include<iostream>
#include<string>
using namespace std;
int main()
{
 string a_str,b_str;
 cin>>a_str>>b_str;
 try{
     size_t pos1pos2;
     int a=stoi(a_str, &pos1);
     int b=stoi(b_str, &pos2);
     if(pos1 !=a_str.length())||pos2!=b_str.length())
     {
         cout<<"Invalid input";
         return 0;
     }
     if(b==0)
     {
         cout<<"Divition by zero is not allowed";
     }
     else
     {
         cout<<"Invalid input";
     }
     return 0;
 }