Examples :

Grammar :

Input text :

Output :