Ответы
# ввод первой строки без повторов
a = list(set(input().split()))
# ввод второй строки без повторов
b = list(set(input().split()))
# ввод третьей строки без повторов
c = list(set(input().split()))
# слияние
s = a+b+c
# массив из слов, которые встречаются 1 раз
arr=[i for i in s if s.count(i)==1]
# вывод слов, которые встречаются 1 раз через #
print(*arr, sep='#')
# вывод суммы длинн
print(sum(len(i) for i in arr))
string1 = input().split()
string2 = input().split()
string3 = input().split()
res = []
for i in string1:
if i not in string2 and i not in string3:
res.append(i)
for i in string2:
if i not in string1 and i not in string3:
res.append(i)
for i in string3:
if i not in string1 and i not in string2:
res.append(i)
print('#'.join(list(set(res))))
print(sum([len(i) for i in set(res)]))
# Просто более топорный и простой для понимания вариант решения
