petya get interested grammar year school he invent language call Petyas Petya wanted create maximally simple language chat friend that s language grammar describe follow set rule there part speech adjective noun verb each word language adjective noun verb There gender masculine feminine each word language gender masculine feminine masculine adjective end lios feminine adjective end liala Masculine noun end etr feminime noun end etra Masculine verb end initis feminime verb end inite thus word Petyas language ending give there ending Petyas language it accept word consist end that word lio liala etr belong Petyas language there are not punctuation mark grammatical tense singularplural form language complication a sentence exactly valid language word exactly statement Statement sequence Petyas language satisfy condition words statement follow follow order leave right zero adjective follow exactly noun follow zero verb all word statement genderafter Petyas friend Vasya write instant messenger instant messaging program support Petyas language Petya want add spelling grammar checking program as Vasya country Petya do not feel like wait ask help problem your task define give sequence word true give text represent exactly sentence Petyas language