go right
go to step 1 if 0 is scanned
go left
print 0
[stop]