#include<iostream>
using namespace std ;
int main()
{
    int cre,in;
    cin>>cre
    cin>>in;
    try{
        if(cre < 0 || in < 0){
            throw"Invalid input";
        }
        try{
            if(cre <700){
                throw"Low credit score";
            }
        }
        if(in<30000){
            throw<<"Insufficient income";
        }
        cout<<"Loan approved";
    }
    catch(const char*msg){
        throw;
        
    }
    catch(const char*msg){
        cout<<msg ;
    }
    return 0;
}