#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(Creditscore<700)
        {
            throw runtime_error("Low credit score");
        }
        if(Income<30000)
        {
            throw runtime error("Insufficienmt income");
        }
        cout<<"Loan approved"<<endl;
    }
    catch(const runtime_error& e)
    {
        cout<<e.what()<<endl;
    }
    return 0;
}