André was responsible for checking the registrations for the Paulista Programming Marathon, and his job was to ensure that the Brazilian state of the registration was indeed São Paulo. The registration system uses the standard ISO 3166-2 codes to represent the main subdivisions of Brazil, as shown in the table below:
Unfortunately, a bug occurred in the system, and all the registration codes had one character replaced by '?', and now you need to help André determine if a certain code with one character replaced by '?' was originally equal to the code for São Paulo (BR-SP) or not.
The input consists of a single line containing one of the $$$27$$$ codes from the table in the statement, but with one character replaced by '?'.
The output consists of a single line with the character 'S' if the original code was definitely the code of São Paulo, or 'N' if it definitely was not the code of São Paulo, or 'T' if it could be the code of São Paulo but it is not possible to be sure about it.
B?-SP
S
BR-M?
N
BR-S?
T