Clara has two strings s and t. She would like to choose two subsequences x from s and y from t such that:
Note that:
The input consists of several test cases terminated by end-of-file. For each test case:
The first line contains a string s. The second line contains a string t.
For each test case, output the sum of ∣x∣ and ∣y∣.