#include <iostream>
using namespace std;
void VozrastKoresha(int agekoresh);
int main()
{
setlocale(LC_ALL, "russian");
int agekoresh;
cin >> agekoresh;
VozrastKoresha(agekoresh);
}
void VozrastKoresha(int agekoresh) {
if (agekoresh < 20 && agekoresh > 10) {
cout << "Молодой" << endl;
}
else if (agekoresh < 30 && agekoresh > 20) {
cout << "Бывалый" << endl;
}
else if (agekoresh < 40 && agekoresh > 30) {
cout << "Старый" << endl;
}
else if (agekoresh < 50 && agekoresh > 40) {
cout << "Таких не бывает" << endl;
}
else cout << "чорт бля \n";
}