#include <iostream>
#include <exception>
using namespace std;
class classfullException : public exception{
    public:
    const char* what() const throw(){
        return "Error: Insufficient slots";
    }
};
int main(){
    int slots, students;
    cin>> slots>> students;
    if(slots<0||students<0){
        cout<<"Invalid input"<<endl;
    }
    else{
        try{
            if(students>slots){throw
        classFullException();
        }
        cout<<"Enrollment successful"<<endl;
    }
    catch(classException& e){
        cout <<e.what()<<endl;
     }
    }
    return 0;
}