Chef Loves to listen to remix songs, but currently he had already finished the entire playlist of remix songs.
As Chef is smart, so he thought let's make my own remix songs of the original songs.
Chef is not having much knowledge of making remix songs, so he came up with the simple technique in which he will pick the word which contains the smallest number of characters from the lyrics of the song, and then he will append that word to the start and end of the lyrics, also Chef will insert this word between every two words of the lyrics.
Note: While inserting a new word Chef will also insert extra white-spaces, so that every word in the final remixed lyrics is separated by space.
It is Recommended to use fast Input/Ouput techniques.

-----Input:-----
- The input contains the text $S$, which denotes the lyrics of the song.

-----Output:-----
- Print the Remixed, lyrics as done by Chef.

-----Constraints:-----
- $1 \leq Length of text $S$ \leq 10^7$

-----Sample Input:-----
Mai Hu Jiyaan

-----Sample Output:-----
Hu Mai Hu Hu Hu Jiyaan Hu

```python

USER_FILENAME = "<user_code>"
import sys, json, builtins
import math, heapq, bisect, itertools, functools, collections, statistics, fractions, decimal, operator, array, random, re, string, os, pathlib
try:
    import resource as _res
except Exception:
    _res = None
from collections import Counter, defaultdict, deque, OrderedDict
from functools import lru_cache, reduce
from itertools import accumulate, permutations, combinations, product
from math import gcd, ceil, floor, sqrt
from decimal import Decimal
try:
    from typing import *
except Exception:
    pass
try:
    sys.setrecursionlimit(1_000_000)
except Exception:
    pass
try:
    import site as _site
    try:
        _sys_sites = _site.getsitepackages() if hasattr(_site, "getsitepackages") else []
        for _p in _sys_sites:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
    try:
        _usp = _site.getusersitepackages()
        if isinstance(_usp, str):
            _usp = [_usp]
        for _p in _usp:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
except Exception:
    pass

ns = {"__name__": "__main__"}
for _k, _v in list(globals().items()):
    if not _k.startswith("_"):
        ns[_k] = _v
_CODE = 'def f(inp): \n    length = len(inp) \n    si = ei = 0\n    min_length = length \n    min_start_index = max_length = max_start_index = 0\n      \n    # loop to find the length and stating index \n    # of both longest and shortest words \n    while ei <= length: \n        if (ei < length) and (inp[ei] != " "): \n            ei += 1\n        else: \n            curr_length = ei - si \n              \n            # condition checking for the shortest word \n            if curr_length < min_length: \n                min_length = curr_length \n                min_start_index = si \n                  \n            # condition for the longest word  \n            if curr_length > max_length: \n                max_length = curr_length \n                max_start_index = si \n            ei += 1\n            si = ei \n              \n    # extracting the shortest word using  \n    # it\'s starting index and length      \n    minWord = inp[min_start_index :  \n                  min_start_index + min_length] \n      \n    # extracting the longest word using  \n    # it\'s starting index and length      \n    maxWord = inp[max_start_index : max_length] \n      \n    # printing the final result \n    return minWord\n    #print("Minimum length word: ", minWord) \n    #print("Maximum length word: ", maxWord) \n\ns=input().strip()\nw=f(s)\ns=list(s.split())\nprint(w,end=\' \')\nfor i in s:\n    print(i,end=\' \')\n    print(w,end=\' \')'
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 13097