#%%
inp = ["[5, 2, 3]", "[2, 2, 3, 10, 6]"]

# %%
def ArrayMatching(arr):
    output = ''
    arr1 = [int(x) for x in arr[0].strip('[').strip(']').strip('\'').replace(' ', '').split(',')]
    arr2 = [int(x) for x in arr[1].strip('[').strip(']').strip('\'').replace(' ', '').split(',')]

    print(arr1)
    print(arr2)

    i = 0
    j = 0
    while i < len(arr1) and j < len(arr2):
        output += str(arr1[i] + arr2[j]) + '-'
        i += 1
        j += 1
    if i < len(arr1):
        while i < len(arr1):
            output += str(arr1[i]) + '-'
            i += 1
    if j < len(arr2):
        while j < len(arr2):
            output += str(arr2[j]) + '-'
            j += 1
    
    output = output.strip('-')
    return output
ArrayMatching(inp)
# %%

#%%
inp = ["[5, 2, 3]", "[2, 2, 3, 10, 6]"]

# %%
def ArrayMatching(arr):
    output = ''
    arr1 = [int(x) for x in arr[0].strip('[').strip(']').strip('\'').replace(' ', '').split(',')]
    arr2 = [int(x) for x in arr[1].strip('[').strip(']').strip('\'').replace(' ', '').split(',')]

    print(arr1)
    print(arr2)

    i = 0
    j = 0
    while i < len(arr1) and j < len(arr2):
        output += str(arr1[i] + arr2[j]) + '-'
        i += 1
        j += 1
    if i < len(arr1):
        while i < len(arr1):
            output += str(arr1[i]) + '-'
            i += 1
    if j < len(arr2):
        while j < len(arr2):
            output += str(arr2[j]) + '-'
            j += 1
    
    output = output.strip('-')
    return output
ArrayMatching(inp)
# %%

#%% # %% # %%