#d2745. 真假字符串
真假字符串
True or False String
Problem Description
Given two strings of equal length, determine whether there exists a string such that deleting exactly one character from yields , and deleting exactly one character from (possibly at a different position) also yields .
Input Format
The first line gives the string , and the second line gives . The length of each string satisfies .
Output Format
If such a string exists, output ; otherwise output .
Sample Input
abacaa
aacaba
Sample Output
1
Sample Explanation
abacaba yields after deleting the second character b, and yields after deleting the first character b.