#K72587. Calculate Total Run Time

    ID: 33786 Type: Default 1000ms 256MiB

Calculate Total Run Time

Calculate Total Run Time

Emily is participating in a running competition along a track comprised of flat and inclined sections. In the track string, every character represents a section: 'F' denotes a flat section where she runs at 1 meter per second, and 'I' denotes an inclined section where she runs at 0.5 meters per second. Given that each section is exactly 1 meter in length, the time required for each section is calculated as:

( \text{Time} = \begin{cases} 1, & \text{if the section is 'F'} \ 2, & \text{if the section is 'I'} \end{cases} ) seconds.

Your task is to compute the total time in seconds for Emily to complete the entire track.

inputFormat

A single string representing the track description, consisting only of the characters 'F' and 'I'. This input is read from standard input.

outputFormat

A single floating-point number representing the total time in seconds required for the run. The output should be printed to standard output.## sample

FFFFF
5.0