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