SP12076 LCS0 - Longest Common Subsequence

Description

No imagination at the moment.

Input Format

You will be given two lines. The first line will contain the string A, the second line will contain the string B. Both strings consist of no more than 50000 lowercase Latin letters.

Output Format

Output the length of the longest common subsequence of strings A and B.