#include <iostream>
#include <string>
using namespace std;

int main() {
    string name;
    int price;
    
    getline(cin, name);
    cin >> price;
    
    if (price < 0) {
        cout << "Invalid input";
        return 0;
    }
    
    string category;
    
    if (price >= 100000)
    category = "Premium";
    else if (price >= 50000)
    category = "Mid-Range";
    else 
    category = "Budget"
}
    
    cout << "Name: " << name << "\n";
    cout << "Price: " << price << "\n";
    cout << "Category: " << category;
    
    return 0;
}