with open("input.txt") as f:
s = f.readline()
n=1
while s:
print(str(n)+':'+s)
n+=1
прикладываю так же пример работы программы