name = ['vasya', 'nikita', 'amogus', 'shutka']
salary = [str(49900), str(50001), str(32222), str(9888)]
NameSalary = dict(zip(name, salary))
with open('salary.txt', 'w', encoding='utf-8') as file:
file.write('-'.join(NameSalary.popitem()))
with open('salary.txt', 'r', encoding='utf-8') as file:
for i in file:
print(i)