#include using namespace std; using LL = long long; using ULL = unsigned long long; #define rep(i,n) for(int i=0; i<(n); i++) int main() { double log_FperS = 0.; double X[200001]; X[0] = 0.; for (int i = 1; i <= 200000; i++) X[i] = X[i - 1] + log(i); int Q; cin >> Q; while (Q--) { int N, M, K; cin >> N >> M >> K; double log_FperS = X[N] - X[K - 1] - X[N - K + 1] - (K - 1) * log(M); cout << ((log_FperS > 0) ? "Straight" : "Flush") << endl; } return 0; }