from math import log q=int(input()) nmk=[list(map(int,input().split())) for _ in range(q)] lary=[0] for i in range(1,10**5+3): lary.append(lary[-1]+log(i)) # lary[k]:log(1)+log(2)+...+log(k) for n,m,k in nmk: # Flush # m*cmb(n,k)通り # Straight # (n+1-k)*m^k通り # max(S/F,F/S)>=2という条件 # log((n+1-k)*m^k)=log(n+1-k)+k*log(m) s=log(n+1-k)+k*log(m) # log(m*cmb(n,k))=log(m)+log(cmb(n,k)) # log(cmb(n,k))=log(n!)-log(k!)-log((n-k)!) f=log(m)+lary[n]-lary[k]-lary[n-k] if f>s: print('Straight') else: print('Flush')