Q=int(input()) def Combi(a,b):# aは大きいが、bは小さいとき,modなし if b>a or b<0: return 0 ANS=1 for i in range(min(b,a-b)): ANS=ANS*(a-i) for i in range(min(b,a-b)): ANS=ANS//(min(b,a-b)-i) return ANS for i in range(Q): N,M,K=map(int,input().split()) if K<=1000: if Combi(N,K)*M<(N-K+1)*pow(M,K): print("Flush") else: print("Straight") else: if N