Escriviu totes les paraules d’n lletres ‘A’ i ‘B’
que no continguin la subparaula “ABBA”,
ni la subparaula “AA”.
Entrada
L’entrada consisteix en un natural n entre 1 i 28.
Sortida
Escriviu totes les paraules demanades, en ordre alfabètic, i una per línia.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.