import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;

string m(string a, string b)
{
    if (a == "T" && b == "T") return "T";
    if (a == "T" && b == "F") return "F";
    if (a == "F" && b == "T") return "T";
    return "T";
}

void main()
{
    auto N = readln.chomp.to!int;
    auto ps = readln.split.to!(string[]);

    auto c = m(ps[0], ps[1]);
    foreach (x; ps[2..$]) {
        c = m(c, x);
    }
    writeln(c);
}
