Trivial:
http://ideone.com/bYszhP
Słownik ≤ 4:
["e","ee","eee","eeee","eeep","eep","eepe","eepp","ep","epe","epee","epep","
epp","eppe","eppp","p","pe","pee","peee","peep","pep","pepe","pepp","pp","pp
e","ppee","ppep","ppp","pppe","pppp"]
Słownik ≤ 7:
["e","ee","eee","eeee","eeeee","eeeeee","eeeeeee","eeeeeep","eeeeep","eeeeep
e","eeeeepp","eeeep","eeeepe","eeeepee","eeeepep","eeeepp","eeeeppe","eeeepp
p","eeep","eeepe","eeepee","eeepeee","eeepeep","eeepep","eeepepe","eeepepp",
"eeepp","eeeppe","eeeppee","eeeppep","eeeppp","eeepppe","eeepppp","eep","eep
e","eepee","eepeee","eepeeee","eepeeep","eepeep","eepeepe","eepeepp","eepep"
,"eepepe","eepepee","eepepep","eepepp","eepeppe","eepeppp","eepp","eeppe","e
eppee","eeppeee","eeppeep","eeppep","eeppepe","eeppepp","eeppp","eepppe","ee
pppee","eepppep","eepppp","eeppppe","eeppppp","ep","epe","epee","epeee","epe
eee","epeeeee","epeeeep","epeeep","epeeepe","epeeepp","epeep","epeepe","epee
pee","epeepep","epeepp","epeeppe","epeeppp","epep","epepe","epepee","epepeee
","epepeep","epepep","epepepe","epepepp","epepp","epeppe","epeppee","epeppep
","epeppp","epepppe","epepppp","epp","eppe","eppee","eppeee","eppeeee","eppe
eep","eppeep","eppeepe","eppeepp","eppep","eppepe","eppepee","eppepep","eppe
pp","eppeppe","eppeppp","eppp","epppe","epppee","epppeee","epppeep","epppep"
,"epppepe","epppepp","epppp","eppppe","eppppee","eppppep","eppppp","epppppe"
,"epppppp","p","pe","pee","peee","peeee","peeeee","peeeeee","peeeeep","peeee
p","peeeepe","peeeepp","peeep","peeepe","peeepee","peeepep","peeepp","peeepp
e","peeeppp","peep","peepe","peepee","peepeee","peepeep","peepep","peepepe",
"peepepp","peepp","peeppe","peeppee","peeppep","peeppp","peepppe","peepppp",
"pep","pepe","pepee","pepeee","pepeeee","pepeeep","pepeep","pepeepe","pepeep
p","pepep","pepepe","pepepee","pepepep","pepepp","pepeppe","pepeppp","pepp",
"peppe","peppee","peppeee","peppeep","peppep","peppepe","peppepp","peppp","p
epppe","pepppee","pepppep","pepppp","peppppe","peppppp","pp","ppe","ppee","p
peee","ppeeee","ppeeeee","ppeeeep","ppeeep","ppeeepe","ppeeepp","ppeep","ppe
epe","ppeepee","ppeepep","ppeepp","ppeeppe","ppeeppp","ppep","ppepe","ppepee
","ppepeee","ppepeep","ppepep","ppepepe","ppepepp","ppepp","ppeppe","ppeppee
","ppeppep","ppeppp","ppepppe","ppepppp","ppp","pppe","pppee","pppeee","pppe
eee","pppeeep","pppeep","pppeepe","pppeepp","pppep","pppepe","pppepee","pppe
pep","pppepp","pppeppe","pppeppp","pppp","ppppe","ppppee","ppppeee","ppppeep
","ppppep","ppppepe","ppppepp","ppppp","pppppe","pppppee","pppppep","pppppp"
,"ppppppe","ppppppp"]
Proszę sobie policzyć