using System; namespace y { class Program { static void Main(string[] args) { int c = int.Parse(Console.ReadLine()); int t = 0; bool f = true; for (int i = 0 ; i < c ; i++) { int n = int.Parse(Console.ReadLine()); if (n != t + 1 && n != t - 1) { f = false; break; } } if (f) Console.WriteLine("T"); else Console.WriteLine("F"); } } }