#include #define rep(i,n) for(int i = 0; i < (int)(n); i++) #define rrep(ri,n) for(int ri = (int)(n-1); ri >= 0; ri--) #define rep2(i,x,n) for(int i = (int)(x); i < (int)(n); i++) #define rrep2(ri,x,n) for(int ri = (int)(n-1); ri >= (int)(x); ri--) #define repit(itr,x) for(auto itr = x.begin(); itr != x.end(); itr++) #define rrepit(ritr,x) for(auto ritr = x.rbegin(); ritr != x.rend(); ritr++) #define ALL(x) x.begin(), x.end() using ll = long long; using namespace std; int main(){ int q; cin >> q; vector logsum(1e5+5); logsum.at(1) = 0; rep2(i, 2, logsum.size()){ logsum.at(i) = logsum.at(i-1) + log2(i); } rep(_q, q){ int n, m, k; cin >> n >> m >> k; double fl = logsum.at(n), st = logsum.at(n-k+1) + logsum.at(k) + (k-1)*log2(m); // cerr << fl << " " << st << endl; if(fl > st) cout << "Straight" << endl; else cout << "Flush" << endl; } return 0; }