# your code goes here
nd=0
N=0
while nd==0:
    if N<99:
        Ns=str(N)
        if N>9:
            Ns="0"+Ns
        else:
            Ns="00"+Ns
        print (Ns)
    else:
        print(str(N))
    S=input ()
    if S=="unlocked":
        nd=1
    else:
        N+=1