str = input()
sub_string = str
with open("/name.txt") as file:
lines = file.readlines()
for line in lines:
if sub_string in line:
print(line)
my_dict = {}
with open('file.txt') as file:
for line in file.readlines():
name, value = line.split(':')
my_dict[name.strip()] = value.strip()
# code
with open('file.txt', 'w') as file:
file.writelines([f'{name} : {value}\n' for name, value in my_dict.items()])