HAITUTD
/ckfinder/userfiles/files/Contest10/contest%200312.docx
Input
papamama 2 2 2 8 8 1 4 5 8
Output
1 0