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++) { int tmp = i + 1 - Math.abs(x[i]); if (tmp < 0) { flag = false; break; } else { if (tmp % 2 != 0) { flag = false; 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); } } }