#5165

BÀI TẬP :   78

  1. s1=input()
  2. s1=s1.lower()
  3. a=list(s1)
  4. i=0
  5. while i<len(a)-1:
  6.     j=i+1
  7.     while j<len(a):
  8.         if a[i]==a[j]:
  9.             a.pop(j)
  10.         else:
  11.             j+=1
  12.     i+=1
  13. s2=””.join(a)
  14. c=[]
  15. for i in range(0,len(s2)):
  16.     c.append(s1.count(s2[i]))
  17. for i in range(0,len(s2)):
  18.     print(s2[i],”:”,c[i],sep=””,end=” “)