#D9971. Tanuki and Fox

    ID: 8287 Type: Default 1000ms 268MiB

Tanuki and Fox

Tanuki and Fox

problem

There is a mysterious device M M , and if you put Tanuki and Fox in this device, one animal will come out from the device (hereinafter, Tanuki will be T T and Fox will be F F ).

M(x,y) M (x, y) represents an animal that came out by putting animals in the device M M in the order of x,y x, y .

As a result of various trials, the following was found.

M(T,T)=T M (T, T) = T M(T,F)=F M (T, F) = F M(F,T)=T M (F, T) = T M(F,F)=T M (F, F) = T

You put the animals in a row P1,P2,...,PN P_1, P_2, ..., P_N into the device as follows. M(....M(M(P1,P2),P3)....,PN) M (.... M (M (P_1, P_2), P_3) ...., P_N)

Answer the last animal that appears.

output

Output the last animal character T T or F F , and also a newline at the end.

Example

Input

3 F T T

Output

T

inputFormat

outputFormat

output

Output the last animal character T T or F F , and also a newline at the end.

Example

Input

3 F T T

Output

T

样例

3
F T T
T