- Time limit: 1.00 s
- Memory limit: 512 MB
What is the final string?
Input
The first input line has an integer $n$: the number of moves.
After this there are $n$ lines that describe the moves. Each move is "H", "I" or "T".
You can assume that the length of the final string will be at most $10^6$.
Output
Print the final string.
Constraints
- $0 \le n \le 10^6$
Input:
2
I
H
Output:
HIITHIITIITHIITIITT