import java.util.*; import java.util.stream.Stream; import java.time.*; import java.time.format.*; public class No627 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int t = sc.nextInt(); int[] x = new int[t]; for(int i = 0 ; i < t; i++) { x[i] = sc.nextInt(); } if(x[0] == 0) { System.out.println("F"); return; } for(int i = 0; i < t - 1; i++) { if(Math.abs(x[i] - x[i + 1]) != 1) { System.out.println("F"); return; } } System.out.println("T"); } }