import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String ans = ""; int count = 0; while(!ans.equals("unlocked")){ System.out.println(String.format("%1$03d", count)); count++; ans=sc.next(); } } }