#include <stdio.h>
#include <stdlib.h>
void showHist(char c,int num){
  int j;
  printf("%1c :",c);
  for(j=0;j<num;j++){
    printf("*");
  }
  printf("\n");
}
int main(){
  char h[BUFSIZ];
  int count[256]={0};
  int i=0,j;
  while ( (h[i]=getchar()) != EOF) { i++; }
  h[i]='\0';

  for(j=0;j<i;j++) count[h[j]]++;

  for(i='A';i<='Z';i++){
    if(count[i]!=0) showHist(i,count[i]);
  }

  for(i='a';i<='z';i++){
    if(count[i]!=0) showHist(i,count[i]);
  }
  return 0;
}