From context-free-grammar to Chomsky normal form

Grammar input:






Transformations











Cleaning




Fresh symbols:


Output: