#include<iostream>
using namespace std;
int main() {
    int creditscore,income;
    cin >> creditscore;
    cin >> income;
    try {
        if (creditscore < 0 || income < 0) {
            cout<<"Invalid input";
         }
        else if (creditscore < 700) {
            cout<<"Low credit score";
        }
        else if (income < 30000) {
            cout << "Low income";
        }
        else {
            cout << "Loan approved";
        }
        return 0;
        }