You are given two strings $s$ and $t$. In a single move, you can choose any of two strings and delete the first (that is, the leftmost) character. After a move, the length of the string decreases by $1$. You can't choose a string if it is empty.

For example:  by applying a move to the string "where", the result is the string "here",  by applying a move to the string "a", the result is an empty string "". 

You are required to make two given strings equal using the fewest number of moves. It is possible that, in the end, both strings will be equal to the empty string, and so, are equal to each other. In this case, the answer is obviously the sum of the lengths of the initial strings.

Write a program that finds the minimum number of moves to make two given strings $s$ and $t$ equal.


-----Input-----

The first line of the input contains $s$. In the second line of the input contains $t$. Both strings consist only of lowercase Latin letters. The number of letters in each string is between 1 and $2\cdot10^5$, inclusive.


-----Output-----

Output the fewest number of moves required. It is possible that, in the end, both strings will be equal to the empty string, and so, are equal to each other. In this case, the answer is obviously the sum of the lengths of the given strings.


-----Examples-----
Input
test
west

Output
2

Input
codeforces
yes

Output
9

Input
test
yes

Output
7

Input
b
ab

Output
1



-----Note-----

In the first example, you should apply the move once to the first string and apply the move once to the second string. As a result, both strings will be equal to "est".

In the second example, the move should be applied to the string "codeforces" $8$ times. As a result, the string becomes "codeforces" $\to$ "es". The move should be applied to the string "yes" once. The result is the same string "yes" $\to$ "es".

In the third example, you can make the strings equal only by completely deleting them. That is, in the end, both strings will be empty.

In the fourth example, the first character of the second string should be deleted.

Difficulty: introductory

Starter code:

Solutions:
s = input()[::-1]
t = input()[::-1]
i = 0
while i < min(len(s),len(t)) and s[i] == t[i]:
    i += 1
print(len(s) - i + len(t) - i)


s, t = input(), input()
i, j = len(s) - 1, len(t) - 1
x = 0
while i != -1 and j != -1:
    if s[i] != t[j]:
        break
    x += 1
    i -= 1
    j -= 1

print(len(s) + len(t) - 2 * x)

s = list(reversed(input()))
t = list(reversed(input()))
i = 0
while i < len(s) and i < len(t) and s[i] == t[i]:
    i += 1
print(len(s) - i + len(t) - i)


a=input()
b=input()
i=len(a)-1
j=len(b)-1
while i>=0 and j>=0 and a[i]==b[j]:
    i-=1
    j-=1
print(i+j+2)
    




'''
////////////////      //////        ///////      //             ///////     //  //   //
////          //    ///   ///     ///    ///     //            ///  ///     ////     //
////    ////       ///     ///   ///      ///    //           /////////     ////     ///////
////     /////    ///       /// ///        ///   //          ///    ///     ////     //   //
//////////////     ///////////   ///////////     //////     ///     ///     //  //   //   //
'''



def mi():
	return map(int, input().split())

a = list(input())[::-1]
b = list(input())[::-1]

s = -1
for i in range(min(len(a),len(b))):
	if a[i]!=b[i]:
		s = i
		break
if s==-1:
	print (abs(len(a)-len(b)))
else:
	print (len(a)+len(b)-2*s)

a = input().strip()
b = input().strip()

common = 0
while True:
    if common >= min(len(a), len(b)):
        break

    if a[-(common + 1)] != b[-(common + 1)]:
        break

    common += 1

print(len(a) - common + len(b) - common)


s = input()
t = input()
k = 0
for i in range(min(len(s), len(t))):
    if s[len(s) - 1 - i] == t[len(t) - 1 - i]:
        k = k + 1
    else:
        break
print(len(s) - 2 * k + len(t))

import sys
import io

stream_enable = 0

inpstream = """
codeforces
yes
"""

if stream_enable:
    sys.stdin = io.StringIO(inpstream)
    input()

def inpmap():
    return list(map(int, input().split()))

a = input()
b = input()
k = len(a) + len(b)
for i in range(min(len(a), len(b))):
    if a[-i-1] == b[-i-1]:
        k -= 2
    else:
        break
print(k)


a = input()
b = input()
k = min(len(a), len(b))
i = 0
while i < k:
    if a[len(a)-1-i] == b[len(b)-1-i]:
        i+=1
    else:
        break
print(len(a)+len(b)-2*i)


st1 = input()
st2 = input()
l1 = len(st1)
l2 = len(st2)
i = l1 - 1
j = l2 - 1
while (st1[i] == st2[j]):
	i -= 1
	j -= 1
	if (i < 0) or (j < 0):
		break
		
print(i + j + 2)


s = input()
t = input()

i = len(s) - 1
j = len(t) - 1
ans = 0
while (i >= 0  and j >= 0 and s[i] == t[j]):
    ans += 1
    i -= 1
    j -= 1
print(len(s) + len(t) - 2 * ans)

s = str(input())
n = len(s)
t = str(input())
m = len(t)
k = 0
while n - k - 1 >= 0 and m - k - 1 >= 0 and s[n - k - 1] == t[m - k - 1]:
 k += 1
print(n + m - 2 * k)

s = str(input())
t = str(input())
ans = len(s) + len(t)

ind = -1
s_len = len(s)
t_len = len(t)
while abs(ind) <= s_len and abs(ind) <= t_len and s[ind] == t[ind]:
    ans -= 2
    ind -= 1


print(ans)
    


a = input()
b = input()
q = 0
for i in range(-1,-min(len(a),len(b))-1,-1):
    if a[i] != b[i]:
        break
    q+=1
print(len(a) + len(b) - 2*q)


s=input()
t=input()
n= len(s)
m = len(t)
i = n-1
j=m-1
ans = 0
while(i>=0 and j>=0):
  if(s[i]==t[j]):
    i-=1
    j-=1
  else:
    ans = 1
    break

print(i+j+2)



# import sys
# sys.stdin=open('F:\\C\\Script\\input.txt','r')
# sys.stdout=open('F:\\C\\Script\\output.txt','w')
# sys.stdout.flush()

I = lambda:[int(i) for i in input().split()]

s = input()
t = input()
n1 = len(s)
n2 = len(t)
if s[-1] != t[-1]:
	print (n1 + n2)
else:
	k = 0
	i = n1 - 1
	j = n2 - 1
	while i >=0 and j >= 0:
		if s[i] != t[j]:
			break
		i -= 1
		j -= 1
	print (i + j + 2)

s1 = input()
s2 = input()

i1 = len(s1) - 1
i2 = len(s2) - 1
flag = True

ans = i1 + i2 + 2

while flag and i1>=0 and i2>=0:
    if s1[i1] == s2[i2]:
        ans -= 2
        i1 -= 1
        i2 -= 1
    else:
        flag = False

print(ans)


#!/usr/bin/env python3

s1 = input()
s2 = input()
i1 = len(s1) - 1
i2 = len(s2) - 1
while i1 >= 0 and i2 >= 0 and s1[i1] == s2[i2]:
    i1 -= 1
    i2 -= 1
print(i1 + i2 + 2)


s = input()
t = input()

c = 0
s=s[::-1]
t=t[::-1]
for i in range(min(len(s), len(t))):
    if s[i] == t[i]:
        c += 1
    else:
        break
        
print(len(s)+len(t)-2*c)             
    


a=input()
b=input()
i=len(a)-1
j=len(b)-1
while(a[i]==b[j]):
    i-=1
    j-=1
    if(i<0 or j<0):
        break
print(i+j+2)


a = input()
b = input()
cntr = 0
curr = min(len(a),len(b))-1
for i in range(1, min(len(a),len(b))+1, 1):
    if a[-i] == b[-i]:
        cntr += 1
    else:
        break
print(len(a)-cntr + len(b) - cntr)


a = input().strip()
b = input().strip()
ans = 0

ai = len(a) - 1
bi = len(b) - 1

while ai >= 0 and bi >= 0:
    #print('ai',ai)
    #print('bi', bi)
    if a[ai] == b[bi]:
        #print(a[ai], 'and', b[bi], 'are the same')
        ans += 2
    else:
        #print(a[ai], 'and', b[bi], 'are not the same')
        break
    ai -= 1
    bi -= 1
#print(ans)
print(len(a) + len(b) - ans)

s=input()
s1=input()
s=s[::-1]
s1=s1[::-1]
ans=-1
for i in range(min(len(s),len(s1))):
    if s[i]!=s1[i]:
        ans=i
        break
if ans==-1:
    ans=min(len(s),len(s1))
print(len(s)+len(s1)-ans*2)


def scanf(obj=list, type=int):
    return obj(list(map(type, input().split())))
s1 = input()
s2 = input()
for i in range(1, min(len(s1), len(s2)) + 1):
    if i == min(len(s1), len(s2)) and s1[-i] == s2[-i]:
        i += 1
        break
    if s1[-i] != s2[-i]: break
print(len(s1) + len(s2) - 2 * i + 2)


s = list(input())
t = list(input())
ans = len(s) + len(t)
i = len(s) - 1
j = len(t) - 1
while i >= 0 and j >= 0:
    if s[i] == t[j]:
        ans -= 2
        i -= 1
        j -= 1
    else:
        break
print(ans)