Ksenia has ordinary pan scales and several weights of an equal mass. Ksenia has already put some weights on the scales, while other weights are untouched. Ksenia is now wondering whether it is possible to put all the remaining weights on the scales so that the scales were in equilibrium. 

The scales is in equilibrium if the total sum of weights on the left pan is equal to the total sum of weights on the right pan.


-----Input-----

The first line has a non-empty sequence of characters describing the scales. In this sequence, an uppercase English letter indicates a weight, and the symbol "|" indicates the delimiter (the character occurs in the sequence exactly once). All weights that are recorded in the sequence before the delimiter are initially on the left pan of the scale. All weights that are recorded in the sequence after the delimiter are initially on the right pan of the scale. 

The second line contains a non-empty sequence containing uppercase English letters. Each letter indicates a weight which is not used yet. 

It is guaranteed that all the English letters in the input data are different. It is guaranteed that the input does not contain any extra characters.


-----Output-----

If you cannot put all the weights on the scales so that the scales were in equilibrium, print string "Impossible". Otherwise, print the description of the resulting scales, copy the format of the input.

If there are multiple answers, print any of them.


-----Examples-----
Input
AC|T
L

Output
AC|TL

Input
|ABC
XYZ

Output
XYZ|ABC

Input
W|T
F

Output
Impossible

Input
ABC|
D

Output
Impossible

Difficulty: interview

Starter code:

Solutions:
x = input()
z = input()
a, b = -1, -1
p, q ='', ''
p = x[:x.find('|')]
q = x[x.find('|') + 1:]
n = 0
while n < len(z):
    if len(p) < len(q):
        p += z[n]
    else:
        q += z[n]
    n += 1
if len(p) == len(q):
    print(p, '|', q, sep = '')
else:
    print('Impossible')


(a, b) = input().split('|')
c = input()
i = 0
while len(c)>0:
    if(len(a)<len(b)):
        a += c[0]
    else:
        b += c[0]
    c = c[1::]

print(['Impossible', a+'|'+b][len(a)==len(b)])

scales  = input().split('|')
weights = list(input())

balance = len(scales[0]) - len(scales[1])

while weights:
    if len(scales[0]) < len(scales[1]):
        scales[0] += weights[0]
        weights.pop(0)
    else:
        scales[1] += weights[0]
        weights.pop(0)
    balance = len(scales[0]) - len(scales[1])

if balance == 0:
    print('|'.join(scales))
else:
    print('Impossible')