#include using namespace std; vector lf = {0}; double logfact(int N){ if (lf.size() > N){ return lf[N]; } else { for (int i = lf.size(); i <= N; i++){ double next = lf.back() + log(i); lf.push_back(next); } return lf[N]; } } int main(){ int Q; cin >> Q; for (int i = 0; i < Q; i++){ int N, M, K; cin >> N >> M >> K; double F = log(M) + logfact(N) - logfact(K) - logfact(N - K); double S = K * log(M) + log(N - K + 1); if (F < S){ cout << "Flush" << endl; } else { cout << "Straight" << endl; } } }