#K70047. Most Frequent Activity in Security Report

    ID: 33221 Type: Default 1000ms 256MiB

Most Frequent Activity in Security Report

Most Frequent Activity in Security Report

In a security report, activities are encoded using characters, where each character represents an activity. Given a string S representing the report, you are to determine the most frequent activity.

If there is a tie, use the following priority order: \(T\) > \(V\) > \(A\) > \(F\).

For example, if the input is "TTVVAAFF", the answer is \(T\) because it appears most frequently. In case of equal frequencies, the character with the highest priority is selected.

inputFormat

The input consists of a single line containing a string S (which could be empty) that represents the coded report of activities.

outputFormat

Output a single character which is the most frequent activity in the report according to the given priority rules. If the input is empty, output an empty string.

## sample
TTVVAAFF
T