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