Problem9522--ABC221 —— B - typo

9522: ABC221 —— B - typo

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 512 MiB

Description

You are given two strings $S$ and $T$. Determine whether it is possible to make $S$ and $T$ equal by doing the following operation at most once:

-   choose two adjacent characters in $S$ and swap them.

Note that it is allowed to choose not to do the operation.

Input

Input is given from Standard Input in the following format:

```
$S$
$T$
```

Output

If it is possible to make $S$ and $T$ equal by doing the operation in Problem Statement at most once, print `Yes`; otherwise, print `No`.

Constraints

-   Each of $S$ and $T$ is a string of length between $2$ and $100$ (inclusive) consisting of lowercase English letters.
-   $S$ and $T$ have the same length.

Sample 1 Input

abc
acb

Sample 1 Output

Yes
You can swap the 2-nd and 3-rd characters of S to make S and T equal.

Sample 2 Input

aabb
bbaa

Sample 2 Output

No
There is no way to do the operation to make S and T equal.

Sample 3 Input

abcde
abcde

Sample 3 Output

Yes
S and T are already equal.

Source/Category