显示原始代码
#include <bits/stdc++.h>
using namespace std;
__int128 Read() {
__int128 w = 0, f = 1;
char c = getchar();
while (c > '9' || c < '0') {
if (c == '-')
f *= -1;
c = getchar();
}
while (c >= '0' && c <= '9') {
w = w * 10 + c - '0';
c = getchar();
}
return w * f;
}
string Write(__int128 x) {
string stmp = "";
bool f = 0;
if (x < 0)
x *= -1, f = 1;
while (x) {
stmp = (char)(x % 10 + '0') + stmp;
x /= 10;
}
if (!stmp.size())
stmp = "0";
return (f ? "-" : "") + stmp;
}
void Work() {
int n;
cin >> n;
for (int i = 1; i <= n; i++) {
int t1;
cin >> t1;
if (t1 < 1200)
cout << "Newbie ";
else if (t1 < 1400)
cout << "Pupil ";
else if (t1 < 1600)
cout << "Specialist ";
else if (t1 < 1900)
cout << "Expert ";
else if (t1 < 2100)
cout << "Candidate Master ";
else if (t1 < 2300)
cout << "Master ";
else if (t1 < 2400)
cout << "International Master ";
else if (t1 < 2600)
cout << "Grandmaster ";
else if (t1 < 3000)
cout << "International Grandmaster ";
else if (t1 < 4000)
cout << "Legendary Grandmaster ";
else
cout << "Tourist ";
if (t1 >= 1700)
puts("Yes");
else
puts("No");
}
}
signed main() {
int T = 1;
while (T--) Work();
return 0;
}