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