say join "\n", grep { sprintf ("%03d",$_) + 0 ne ($_/1000)*1000 } 0..99999