28 lines
568 B
Python
28 lines
568 B
Python
#!/usr/bin/python3
|
|
|
|
import sys
|
|
import re
|
|
|
|
for input in sys.stdin.readlines():
|
|
count = 0
|
|
answer = re.findall('[a-ząćęłńóśźż]',input)
|
|
if answer:
|
|
count+=len(answer)
|
|
print(str(len(answer))+" ", end="")
|
|
else:
|
|
print("0 ", end="")
|
|
answer = re.findall('[A-ZĄĆĘŁŃÓŚŹŻ]',input)
|
|
if answer:
|
|
count+=len(answer)
|
|
print(str(len(answer))+" ", end="")
|
|
else:
|
|
print("0 ", end="")
|
|
answer = re.findall('[0-9]',input)
|
|
if answer:
|
|
count+=len(answer)
|
|
print(str(len(answer))+" ", end="")
|
|
else:
|
|
print("0 ", end="")
|
|
print(str(len(input)-1 - count))
|
|
|