Escriviu totes les paraules d’n lletres ‘A’ i ‘B’
que continguin la subparaula “ABBA”.
Entrada
L’entrada consisteix en un natural n entre 4 i 15.
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.