<pre>import java.io.*;
/**
 *
 * @author cteam068
 */
public class Owl {
    
    public static BufferedReader in;
    
    public static void main(String args[]) throws IOException{
        in = new BufferedReader(new InputStreamReader(System.in));
        String line;
        while(!(line = in.readLine()).equals(&quot;END&quot;)){
            System.out.println(owl(Integer.parseInt(line)));
        }
    }
    
    public static int owl(int n){
        int pom = n;
        int exp = 0;
        while(pom % 10 == 0){
            pom = pom / 10;
            exp++;
        }
        return (int) ((pom - 1)*Math.pow(10, exp));
    }
}
</pre>
