Second appearance
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 122.174 megabytes
Given a string of letters. Find the second appearance of the letter f and print its index (indexes are numbered starting from 0).
If the letter f appears only once, print number -1. If letter f is not found in the given string, print number -2.
Input
One string of letters.
Output
Print the answer depending on how many times the letter f appears in the given string.
Examples
Input #1
Answer #1
Input #2
Answer #2
Input #3
Answer #3
Submissions 3K
Acceptance rate 46%