from math import log2 from itertools import accumulate x=[0]+[log2(i) for i in range(1,10**5+1)] a=list(accumulate(x)) for _ in range(int(input())): n,m,k=map(int,input().split()) ans=["Flush","Straight"] print(ans[a[n-1]-a[n-k]>(k-1)*log2(m)])