object Main extends App {
  import scala.io.StdIn._


  val n = readInt
  val animals = readLine.trim.split(' ')

  println(
    animals.reduceLeft{(a, b) ⇒ if (a == "T" && b == "F") "F" else "T"}
  )
  implicit class Scope[T](val value: T) extends AnyVal {
    @inline
    def let[A](func: T ⇒ A): A = func(value)
  }
}
