#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } template T gcd(T a, T b) { a = abs(a), b = abs(b); while (b > 0) { tie(a, b) = make_pair(b, a % b); } return a; } //mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count()); constexpr long long INF = 1LL << 60; constexpr int inf = 1000000007; constexpr long long mod = 1000000007LL; //constexpr long long mod = 998244353LL; void solve() { ll n, m, k; cin >> n >> m >> k; if (n == 1) assert(false); ll t = 1; for (ll i = 0; i < k; i++) { t *= (n - i); if (t > inf) break; } if (t > inf) { cout << "Straight" << "\n"; return; } for (ll i = 1; i <= k; i++) t /= i; if (t > n - k + 1) cout << "Straight" << "\n"; else cout << "Flush" << "\n"; } int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int kkt; cin >> kkt; while (kkt--) solve(); return 0; }