atcoder#ABC280C. [ABC280C] Extra Character

[ABC280C] Extra Character

Score : 300300 points

Problem Statement

You are given strings SS and TT. SS consists of lowercase English letters, and TT is obtained by inserting a lowercase English letter into SS.

Find the position of the inserted character in TT. If there are multiple candidates, find any of them.

Constraints

  • 1S5×1051 \leq |S| \leq 5\times 10^5
  • SS consists of lowercase English letters.
  • TT is obtained by inserting a lowercase English letter into SS.

Input

The input is given from Standard Input in the following format:

SS

TT

Output

Print an integer ii, representing that the inserted character is the ii-th character from the beginning of TT. If there are multiple possible answers, printing any of them is accepted.

atcoder
atcorder
5

The 55-th character from the beginning of TT, r, is inserted.

million
milllion
5

One of the 33-rd, 44-th, and 55-th characters from the beginning of TT is inserted. Thus, printing any one of 33, 44, and 55 is accepted.

vvwvw
vvvwvw
3