Convert last instances of print statement