# frozen_string_literal: true 1000.times do |i| puts format('%03d', i) break if gets.chomp != 'unlocked' end