a,b=map(int,input().split()) print("S" if a<=b else "T")