Rosetta Problems

Free Contest 24 - WORDPOW

https://oj.vnoi.info/problem/fc024_wordpow