The program input is from a text file. Each data set in the file contains two strings representing the given sequences. The sequences are separated by any number of white spaces. The input data are correct.The length of the string is less than 1000.
输出
For each set of data the program prints on the standard output the length of the maximum-length common subsequence from the beginning of a separate line.