#include #include #include #include #include #include #include #include #include #include #include #include double log_combination(const int n, const int k) { return (n + 0.5) * std::log((n + 0.5) / (n - k + 0.5)) + k * std::log((n - k + 0.5) / k) - 0.5 * std::log(std::acos(-1) * 2 * k); } int main() { int q; std::cin >> q; for (auto i = 0; i < q; ++i) { int n, m, k; std::cin >> n >> m >> k; const double flush = std::log(m) + log_combination(n, k); const double straight = std::log(n - k + 1) + k * std::log(m); if (flush < straight) { std::cout << "Flush\n"; } else { std::cout << "Straight\n"; } } }