Given a string of length , consisting of a block of characters followed by a block of characters, find the index of the last character or print if is not present in the string.
Character indexing in the string starts from .
One string containing no more than 10^6 characters.
Print the index of the last character. If the string does not contain , print .
Example 1
Example 2