#include<iostream>
#include <string>
using namespace std;

int main(){
    string a_str, b_str;
    
    cin >> a_str >> b_str;
    try{
        size_t post1, post2;
        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 <<"Divison by zero is not allowed";
        }else{
            cout << a / b;
        }
    }
    catch(...){
        cout << "Invalid input";
    }
    return 0;
}