#include<iostream>
using namespace std;
int main() {
    int creditScore,income;
    cin >> creditScore;
    cin >> income;
    
     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;
     }
}