package algo; import java.util.*; public class sample7 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int T = sc.nextInt(); List list = new ArrayList(); list.add(0); for(int i = 1; i <= T; i++) { list.add(sc.nextInt()); if(Math.abs(list.get(i-1) - list.get(i)) == 1) { } else { System.out.println("F"); return; } } System.out.println("T"); } }