TF Problem#10941

TF Problem

1 second
128 megabytes
Easy

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 .

Input

One string containing no more than 10^6 characters.

Output

Print the index of the last character. If the string does not contain , print .

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading