#include<iostream>
using namespace std;
int main()
{
    int creditScore,income;
    cin>>creditScore;
    cin>>income;
    try
    {
        if(creditScore<0||income<0)
        throw -1;
        if(creditScore<700)
        throw 1;
        try
        {
            if(income<30000)
            throw 2;
            cout<<"Loan approved";
        }
        catch(int e)
        {
            if(e==2)
                cout<<"Insufficient income";
        }
    }
    catch (int e)
    {
        if(e==2)
            cout<<"Invalid input";   
    }

catch (int e)
{
    if(e==-1)
    cout<<"Invaild input";
    else if(e==1)
    cout<<"low credit score";
}
return 0;
}