import java.util.Scanner;
/*
class Point{
private int x,y;
public Point(int x, int y) {
this.x = x;
this.y = y;
}
public String toString() {
return "Point("+ x + "," + y + ")";
}
}
public class Main {
public static void main(String[] args) {
Point p = new Point(2,3);
System.out.println(p.toString());
System.out.println(p);
System.out.println(p+"입니다.");
}
}
*/
class countAlphabet{
int cnt[];
public countAlphabet() {
cnt = new int[26];
for(int i=0; i<cnt.length; i++) {
cnt[i]='A'+i;
}
}
public countAlphabet(int k) {
cnt = new int[k];
for(int i=0; i<cnt.length; i++) {
}
}
public void dataInput(String str) {
for(int i=0; i<str.length(); i++) {
if(str.charAt(i)>='A'&&str.charAt(i)<='z') {
cnt[str.charAt(i)-'A']++;
}
else if(str.charAt(i)>='a'&&str.charAt(i)<='z')
{
cnt[str.charAt(i)-'a']++;
}
}
}
public void printList() {
System.out.print("히스토그램을 그립니다.\n");
for(int i=0; i<cnt.length; i++) {
System.out.print((char)'A'+i);
for(int j=0; j<cnt[i]; j++) {
System.out.print("-");
}System.out.print('\n');
}
}
}
public class Main{
public static void main(String[] args) {
Scanner t = new Scanner(System.in);
countAlphabet ca = new countAlphabet();
while(true) {
String str = t.nextLine();
if(str.equals(";")) {
break;
}
ca.dataInput(str);
}
ca.printList();
}
}