#include<iostream>
#include<string>
using namespace std;
class A{
    public:
    string n;
    int p;
    A(string nn,int pp){
        n=nn;
        p=pp;
    }
    void fun(){
        if (p>0){
        if(p>=100000){
            cout<<"Name: "<<n<<endl;
            cout<<"Price: "<<p<<endl;
            cout<<"Category: "<<"Premium"<<endl;
        }
        else if(p>=50000 && p<=100000){
            cout<<"Name: "<<n<<endl;
            cout<<"Price: "<<p<<endl;
            cout<<"Category: "<<"Mid-Range"<<endl;
        
        }
        else(p<50000){
            cout<<"Name: "<<n<<endl;
            cout<<"Price: "<<p<<endl;
            cout<<"Category: "<<"Budget"<<endl;
        
        }
        }
        else{
            cout<<"Invalid input"<<endl;
        }
    }
};
int main(){
    string a;
    int b;
    cin>>a;
    cin>>b;
    A obj(a,b);
    
}