#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
#define ll long long
#define pb push_back
#define IOS ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define yes cout<<"YES"<<endl
#define no cout<<"NO"<<endl
#define vi vector<int>
#define vll vector<long long>
#define mp make_pair
#define SP cout<<fixed<<setprecision(10);
#define rep(i,inval,n) for(int i = inval; i < n; i++)
#define all(x) x.begin(),x.end()
#define N 100005
#define valid(nx,ny) nx>=1 && nx<=row && ny>=1 && ny<=col
const int inf = 1e9 + 10;
const ll INF = 1e18 + 10;
int fx[] = { +1, -1, +0, +0};
int fy[] = { +0, +0, +1, -1};
int mx = 0;
void upore_dekho()
{
string ch = "CSTECLUB";
ll n;
cin >> n;
cout << ch[(n-1)%8] << endl;
}
int main()
{
IOS;
//freopen("input.txt", "r", stdin);
//freopen("output.txt", "w", stdout);
//freopen("input.txt", "w", stdout);
ll t = 1;
//cout << t << "\n";
cin >> t;
while (t--)
{
upore_dekho();
}
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KI2luY2x1ZGUgPGV4dC9wYl9kcy9hc3NvY19jb250YWluZXIuaHBwPgojaW5jbHVkZSA8ZXh0L3BiX2RzL3RyZWVfcG9saWN5LmhwcD4KCnVzaW5nICAgIG5hbWVzcGFjZSBfX2dudV9wYmRzOwp1c2luZyAgICBuYW1lc3BhY2Ugc3RkOwp0eXBlZGVmIHRyZWU8aW50LCBudWxsX3R5cGUsIGxlc3M8aW50PiwgcmJfdHJlZV90YWcsIHRyZWVfb3JkZXJfc3RhdGlzdGljc19ub2RlX3VwZGF0ZT4gb3JkZXJlZF9zZXQ7CiNkZWZpbmUgbGwgbG9uZyBsb25nCiNkZWZpbmUgcGIgcHVzaF9iYWNrCiNkZWZpbmUgSU9TIGlvc19iYXNlOjpze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