#Python 3.x kodu. İlk IP'ler ip.txt, değişmiş IP'ler out.txt içinde


sayi = 80 


open('out.txt', 'w').write((':' + str(sayi) + 'n').join(open('ip.txt', 'r').read().split()) + ':' + str(sayi))