#include<iostream>
using namespace std;
int main(){
    double price;
    if(!(cin>>price)||price<0){
        cout<<"invalid input";
        return 0;
    }
    if (price<20000){
        cout<<"economy";
    }
     if else (price>=20000&&price<=50000){
        cout<<"mid range";
    }
    
    else{
     cout<<"luxury";
    }
     return 0;
}