#include using namespace std; typedef long long ll; #define pb push_back #define fi first #define se second typedef pair P; using VP = vector

; using VVP = vector; using VI = vector; using VVI = vector; using VVVI = vector; const int inf = 1e9 + 7; const ll INF = 1LL << 61; const ll mod = 1e9 + 7; template inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int i, j; vector v(101010); v[1] = 0.0; for (i = 2; i < 101010; i++) v[i] = v[i - 1] + (long double)log(i); int q; cin >> q; while (q--) { int n, m, k; cin >> n >> m >> k; if (v[n] <= v[k] + v[n - k + 1] + k * (long double)log(m)) { cout << "Flush" << endl; } else { cout << "Straight" << endl; } } }