import sys from math import log input = sys.stdin.buffer.readline MAX = 10 ** 5 log_factorial = [0] * (MAX + 1) for i in range(1, MAX + 1): log_factorial[i] = log_factorial[i - 1] + log(i) def solve(N, M, K): log_flush = log(M) + log_factorial[N] - log_factorial[K] - log_factorial[N - K] log_straight = log(N - K + 1) + K * log(M) return "Flush" if log_flush < log_straight else "Straight" Q = int(input()) for _ in range(Q): print(solve(*map(int, input().split())))