// editor5
#include<iostream>
#include<string>
#include<stdexcept>
using namespace std;
int main()
{
    int creditscore,income;
    if(!(cin>>creditscore<<income))
    return 0;
    if(creditscore<0||income<0)
    {
        cout<<"Invalid input"<<endl;
        return 0;
    }
    try{
        if(income<30000)
        {
            throw runtime_error("Insufficient income");
        }
        cout<<"Loan approved"<<endl;
        }
        catch (const runtime_error& e)
        {
            cout<<e.what()<<endl;
        }
        return 0;
}