#include <iostream>
#include <vector>
int main()
{
int tickets = 0, tickets_per_turn = 0, turns = 0;
std::cin >> tickets;
std::cin >> tickets_per_turn;
std::cin >> turns;
std::vector<int> game(turns);
for (int i = 0; i < turns; i++)
{
int helper = 0;
std::cin >> helper;
game[i] = helper;
}
int previous = 0, now = tickets;
for (int i = 0; i < turns; i++)
{
previous = now;
now -= game[i];
if (now % (tickets_per_turn + 1) == 0)
{
std::cout << "T" << std::endl;
}
else if (previous == tickets_per_turn + 1)
{
std::cout << "T" << std::endl;
}
else
{
std::cout << "F" << std::endl;
}
}
}