use std::io::Read; fn main() { let mut all_data = String::new(); std::io::stdin().read_to_string(&mut all_data).ok(); let mut all_data = all_data.trim().split('\n').map(|s| s.trim()); let t: usize = all_data.next().unwrap().parse().unwrap(); let mut pos: isize = 0; for i in all_data.take(t).map(|x| x.parse::().unwrap()) { if (i-pos).abs() != 1 { println!("F"); return; } pos = i; } println!("T"); }