시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 308 196 178 67.424%

문제

꿍은 도비의 자유를 위해 영어를 가르치기로 결심했다. 하지만 도비는 바보라 ABC부터 배워야 한다.

그래서 꿍은 영어 문장과 알파벳 하나가 주어지면 그 알파벳이 문장에서 몇 번 나타나는지를 세는 문제들을 내주었다. 하지만 도비는 마법사고 컴공도 마법사다.

여러분은 도비를 위해 문제의 답을 알려주는 프로그램을 만들수 있을것이다!

입력

입력은 몇 개의 줄들로 이루어진다.

각 줄에는 하나의 소문자와 영어 문장이 공백으로 구분되어 주어진다.

각 문장은 길이가 1에서 250이며 입력의 마지막은 #이다.

출력

출력의 각 줄은 입력으로 주어진 소문자와 그 소문자 알파벳이 나타난 횟수로 이루어진다. 이때 문장에서 해당 알파벳이 소문자로 나타나던 대문자로 나타나던 모두 세야 한다.

예제 입력 1

g Programming Contest
n New Zealand
x This is quite a simple problem.
#

예제 출력 1

g 2
n 2
x 0
W3sicHJvYmxlbV9pZCI6IjIzODYiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWIzYzRcdWJlNDRcdWM3NTggXHVjNjAxXHVjNWI0IFx1YWNmNVx1YmQ4MCIsImRlc2NyaXB0aW9uIjoiPHA+XHVhZmNkXHVjNzQwIFx1YjNjNFx1YmU0NFx1Yzc1OCBcdWM3OTBcdWM3MjBcdWI5N2MgXHVjNzA0XHVkNTc0IFx1YzYwMVx1YzViNFx1Yjk3YyBcdWFjMDBcdWI5NzRcdWNlNThcdWFlMzBcdWI4NWMgXHVhY2IwXHVjMmVjXHVkNTg4XHViMmU0LiBcdWQ1NThcdWM5YzBcdWI5Y2MgXHViM2M0XHViZTQ0XHViMjk0IFx1YmMxNFx1YmNmNFx1Yjc3YyBBQkNcdWJkODBcdWQxMzAgXHViYzMwXHVjNmNjXHVjNTdjIFx1ZDU1Y1x1YjJlNC48XC9wPlxyXG5cclxuPHA+XHVhZGY4XHViNzk4XHVjMTFjIFx1YWZ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