Algorithm for writing essays during the USE