import java.io.*; import java.util.*; public class Main_yukicoder627 { private static Scanner sc; private static Printer pr; private static void solve() { int t = sc.nextInt(); int[] x = new int[t]; for (int i = 0; i < t; i++) { x[i] = sc.nextInt(); } boolean flag = true; for (int i = 0; i < t; i++) { if (i > 0) { if (Math.abs(x[i] - x[i - 1]) != 1) { flag = false; break; } } int tmp = i + 1 - Math.abs(x[i]); if (tmp < 0) { flag = false; // pr.printf("%d %d %d\n", i, x[i], tmp); break; } else { if (tmp % 2 != 0) { flag = false; // pr.printf(" %d %d %d\n", i, x[i], tmp); break; } } } if (flag) { pr.println("T"); } else { pr.println("F"); } } // --------------------------------------------------- public static void main(String[] args) { sc = new Scanner(System.in); pr = new Printer(System.out); solve(); pr.close(); sc.close(); } private static class Printer extends PrintWriter { Printer(PrintStream out) { super(out); } } }