import kotlin.math.ln fun main() { val builder = StringBuilder() // 何も分からんので解説を読む val maxN = 100000 val sumLog = DoubleArray(maxN + 1) for (i in 1..maxN) { sumLog[i] = sumLog[i - 1] + ln(i.toDouble()) } val q = readInputLine().toInt() repeat(q) { val (n, m, k) = readInputLine().split(" ").map { it.toInt() } builder.appendln(if (sumLog[n] < sumLog[n - k + 1] + sumLog[k] + ln(m.toDouble()) * (k - 1).toDouble()) "Flush" else "Straight") } print(builder.toString()) } fun readInputLine(): String { return readLine()!! }