At the trading post of Goldmeadow, Surveyor records each banners in a worn leather ledger. The guild wants answers, not guesses.
Task: Print the length of the longest common prefix of s and t.
Input format: Two lines: string s, then string t.
Output format: Print the common prefix length.
Constraints: 1 <= |s|,|t| <= 94.