D. Beautiful Partition
time limit per test
5 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output
Example
Input
3
eyheo
dqpff
eniou
Output
5
8
2