Second appearance#4727

Second appearance

1 second
122.174 megabytes
Very easy

Given a string of letters. Find the second appearance of the letter f and print its index (indexes are numbered starting from ).

If the letter f appears only once, print number . If letter f is not found in the given string, print number .

Input

One string of letters.

Output

Print the answer depending on how many times the letter f appears in the given string.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading