q = int(input()) N = 10**5+50 import math L = [0]*(N+1) for i in range(1, N+1): L[i] = L[i-1]+math.log(i) for i in range(q): n, m, k = map(int, input().split()) F = L[n]-L[n-k]-L[k]+math.log(m) S = math.log(n-k+1)+k*math.log(m) if F < S: print('Flush') else: print('Straight')