package m.shin; import java.util.Scanner; public class RandomWalknokiseki { public static void main(String[] args) { Scanner s = new Scanner(System.in); int T = s.nextInt(); Boolean ft = true; int[] X = new int[T]; for(int i = 0;i < T;i++){ X[i] = s.nextInt(); if(i > 0){ if(Math.abs(X[i] - X[i-1]) != 1){ ft = false; } }else if(i == 0){ if(Math.abs(X[i]) != 1){ ft = false; } } } s.close(); if(ft){ System.out.println("T"); }else{ System.out.println("F"); } } }