시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 190 125 113 67.665%

문제

꿍은 도비의 자유를 위해 영어를 가르치기로 결심했다. 하지만 도비는 바보라 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+XHVhZGY4XHViNzk4XHVjMTFjIFx1YW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