>>40
内容変えずにゴルフの定番的に短くしてみた。

v=raw_input("")
for t in [0]*12:
 print v;s=v+".";v,h,d="","",0
 for c in s:
  if d and c!=h:
   v+=str(d)+h;d=0
  h=c;d+=1