시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
2 초 512 MB 20 17 17 85.000%

문제

Shona is a linguistics student who has an assignment to analyse letter distribution in sentences taken from various sources. Your task is to write a program to help her.

The problem is to plot a graph showing how many of each letter appear in the sentence supplied. Upper and lower case letters are considered the same letter. Characters that are not letters of the English alphabet are ignored.

입력

The input consists of a single line of text of no more than 250 characters. At least one character will be a letter.

출력

Output consists of a graph with 26 horizontal bars. The letters of the alphabet (upper case) form the y axis, in alphabetical order from top to bottom. Each is followed by a space, a vertical bar, another space then a star for every time that letter appears in the supplied text. There are no spaces between the stars.

예제 입력 1

This is a piece of sample text for the New Zealand Programming Contest 2017. Plot a graph to show its letter frequency.

예제 출력 1

A | *******
B |
C | ***
D | *
E | ************
F | ***
G | ***
H | ****
I | *****
J |
K |
L | ****
M | ***
N | *****
O | *******
P | *****
Q | *
R | ******
S | ******
T | ***********
U | *
V |
W | **
X | *
Y | *
Z | *

힌트