For loop doesn't work

I want to loop these two rotations for 5 times but it only loops once.