Score : $100$ points
Three people live in Takahashi's house: Takahashi, his father, and his mother. All of them wash their hair in the bathroom each night.
His father, his mother, and Takahashi take a bath in this order and use $A$, $B$, and $C$ milliliters of shampoo, respectively.
This morning, the bottle contained $V$ milliliters of shampoo. Without refilling, who will be the first to run short of shampoo to wash their hair?
Input is given from Standard Input in the following format:
$V$ $A$ $B$ $C$
If the first person to run short of shampoo to wash their hair is Takahashi's father, print F
; if it is Takahashi's mother, print M
; if it is Takahashi, print T
.
25 10 11 12
T
Now, they have $25$ milliliters of shampoo.
30 10 10 10
F
Now, they have $30$ milliliters of shampoo.
100000 1 1 1
M