#include "bits/stdc++.h" using namespace std; int Q; signed main() { cin >> Q; vectorsum(100015); for (int i = 1; i <= 100010; i++) { sum[i] = log(i); } for (int i = 1; i <= 100010; i++) { sum[i] += sum[i - 1]; } for (int _ = 0; _ < Q; _++) { int N, M, K; cin >> N >> M >> K; if (sum[N] < sum[N - K + 1] + sum[K] + (double)(K - 1)*log(M)) { cout << "Flush" << endl; } else { cout << "Straight" << endl; } } return 0; }