Karel

S0
count = 1000
for i in range(count):   #0..999
  S1
  S2
S3