// editor5
#include<iostream>
using namespace std;
int main(){
    int cs,i;
    cin >> cs;
    cin >> i;
    try{
        if(cs < 0 || i < 0)
        throw "Invalid input";
        
    }
    try{
        if(cs <0 || i >0);
        throw "Invalid inpur";
    }
    try{
        if(c < 700) {
            thro"Low credit score";
            
        }
        if(income <30000){
            throw "Insufficient income";
        }
        cout << "loan approved";
    }
    catch (const char* msg){
        cout<<msg;
    }
    return 0;
}