#include using namespace std; using ll = long long; constexpr char newl = '\n'; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); vector lsum(100001, 0); for (int i = 1; i <= 100000; i++) { lsum[i] = lsum[i - 1] + log((long double)i); } int q; cin >> q; for (int i = 0; i < q; i++) { int n, m, k; cin >> n >> m >> k; // F = M (N, K) K! // S = K! (N - K + 1) M^K // F / S = (N, K) / (N - K + 1) M^(K - 1) long double hoge = lsum[n] - lsum[n - k] - lsum[k]; hoge -= log((long double)(n - k + 1)); hoge -= (k - 1) * log((long double)m); cout << (hoge < 0 ? "Flush" : "Straight") << newl; } return 0; }