import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String args[]) throws IOException { BufferedReader inReader = new BufferedReader(new InputStreamReader(System.in)); String input = inReader.readLine(); Integer length = Integer.valueOf(input); int[] checkValue = new int[length + 1]; checkValue[0] = 0; for (int i = 0; i < length; i++) checkValue[i + 1] = Integer.valueOf(inReader.readLine()); for (int i = 0; i < checkValue.length - 1; i++) { if (Math.abs(checkValue[i] - checkValue[i + 1]) != 1) { System.out.println("F"); return; } } System.out.println("T"); return; } }