data = ('O!', 'Megacom', '0705', 'Beeline', '0550', '0770', 'Katel', '0510', 'Fonex', '0543')
designations = []
codes = []
for i in data:
if i[0] == '0':
codes.append(i)
else:
designations.append(i)
operators = {}
i = 0
while len(operators) != 5:
operators[designations[i]] = {codes[i]}
i += 1
del operators['Katel']
del operators['Fonex']
operators['O!'].add('0700')
operators['O!'].add('0500')
operators['Megacom'].add('0999')
operators['Megacom'].add('0555')
operators['Beeline'].add('0222')
operators['Beeline'].add('0777')
for i, j in operators.items():
print(i, '-', j)