시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB135562658369.737%

문제

"The quick brown fox jumped over the lazy dogs."

이 문장은 모든 알파벳이 적어도 한 번은 나오는 문장으로 유명하다. 즉 26개의 서로 다른 문자를 갖고 있는 것이다.

각 케이스마다 문장에서 공백, 숫자, 특수 문자를 제외하고 얼마나 다양한 알파벳이 나왔는지를 구하면 된다. 대소문자는 하나의 문자로 처리한다. ex) 'A' == 'a'

입력

입력은 250자를 넘지 않는 문장이 주어진다.

각 문장은 적어도 하나의 공백이 아닌 문자를 포함한다. (알파벳이 아닐 수 있다)

마지막 줄에는 '#'이 주어진다.

출력

각 줄마다 출몰한 알파벳의 개수를 출력하면 된다.

예제 입력 1

The quick brown fox jumped over the lazy dogs.
2 + 2 = 4
New Zealand Programming Contest.
#

예제 출력 1

26
0
16
W3sicHJvYmxlbV9pZCI6Ijc2MDAiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWJiMzhcdWM3OTBcdWFjMDAgXHViYTg3XHVhYzI0XHVhZTRjIiwiZGVzY3JpcHRpb24iOiI8cD48dT4mcXVvdDtUaGUgcXVpY2sgYnJvd24gZm94IGp1bXBlZCBvdmVyIHRoZSBsYXp5IGRvZ3MuJnF1b3Q7PFwvdT48XC9wPlxyXG5cclxuPHA+XHVjNzc0IFx1YmIzOFx1YzdhNVx1Yzc0MCBcdWJhYThcdWI0ZTAgXHVjNTRjXHVkMzBjXHViY2IzXHVjNzc0IFx1YzgwMVx1YzViNFx1YjNjNCBcdWQ1NWMgXHViYzg4XHVjNzQwIFx1YjA5OFx1YzYyNFx1YjI5NCBcdWJiMzhcdWM3YTVcdWM3M2NcdWI4NWMgXHVjNzIwXHViYTg1XHVkNTU4XHViMmU0LiBcdWM5ODkgMjZcdWFjMWNcdWM3NTggXHVjMTFjXHViODVjJm5ic3A7XHViMmU0XHViOTc4IFx1YmIzOFx1Yzc5MFx1Yjk3YyBcdWFjMTZcdWFjZTAgXHVjNzg4XHViM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