local mlg = math.log local q = io.read("*n") local lgsum = {0} for i = 2, 100010 do lgsum[i] = lgsum[i - 1] + mlg(i) end local function getLogSum(i) if i == 0 then return 0 else return lgsum[i] end end for iq = 1, q do local n, m, k = io.read("*n", "*n", "*n") if n < k then print("Flush") else --[[ local f = 1 for i = 1, k - 1 do f = f * (n - i) / (n * m - i) end local s = 1 for i = 1, k - 1 do s = s * (m * (n - i)) / (n * m - i) end s = s * (n + 1 - k) / getComb(n, k) print(f, s) ]] local sf = (k - 1) * mlg(m) + mlg(n + 1 - k) + getLogSum(k) + getLogSum(n - k) - getLogSum(n) print(sf < 0 and "Straight" or "Flush") end end