How i can move the statements

My issue

plz help me to move the statements up and down

Learning course: Learn Java
Problem Link: Practice Problem in - CodeChef