#D9971. Tanuki and Fox
Tanuki and Fox
Tanuki and Fox
problem
There is a mysterious device , and if you put Tanuki and Fox in this device, one animal will come out from the device (hereinafter, Tanuki will be and Fox will be ).
represents an animal that came out by putting animals in the device in the order of .
As a result of various trials, the following was found.
You put the animals in a row into the device as follows.
Answer the last animal that appears.
output
Output the last animal character or , and also a newline at the end.
Example
Input
3 F T T
Output
T
inputFormat
outputFormat
output
Output the last animal character or , and also a newline at the end.
Example
Input
3 F T T
Output
T
样例
3
F T T
T