String merging#9407

String merging

1 second
128 megabytes
Very easy

Given two strings and .

Find a string that contains both and as substrings and has the minimum possible length among all such strings.

A substring of a string is a consecutive subsequence of its characters. For example, the string is a substring of kbtu~open, while the string is not its substring.

Input

The first line contains the string (1 \le |A| \le 10^5).

The second line contains the string (1 \le |B| \le 10^5).

It is guaranteed that both strings contain only lowercase Latin letters.

Output

Output the string .

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading