#include using namespace std; /* typedef */ typedef long long ll; typedef pair pii; /* constant */ const int INF = 1 << 30; const ll LINF = 1LL << 50; const int NIL = -1; const int MAX = 100005; const int mod = 1000000007; const double pi = 3.141592653589; /* global variables */ vector logSum(MAX); /* function */ void init() { for (int i = 1; i < MAX; i++) logSum[i] = logSum[i - 1] + log(i); } void solve() { int N, M, K; cin >> N >> M >> K; // Flush: m * nCk // Straight: (n - k + 1) * (m ** k) // これを対数をとって比べる // log(n!) = \sum_{i=1}^{n} log(i) double l = logSum[N]; double r = logSum[N - K + 1] + logSum[K] + log(M) * (K - 1); cout << (l < r ? "Flush" : "Straight") << '\n'; } /* main */ int main(){ init(); int Q; cin >> Q; for (int i = 0; i < Q; i++) { solve(); } }