import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ws = 1;
        int num = 0;//最终输出的数
        int x = 1;//所在位数
        int m = n;//把n的值赋给m 目的是求出n是位数
        while(m != 0) {
            m /= 10;
            ws++;
        }
        for(int i = 0; i < ws; i++) {
            if(n % 10 % 2 == 0) {//如果是偶数,只增加位数,输出数不变
                n = n / 10;
                x *= 10;
            } else {
                 num = num + x;
                 n = n / 10;
                 x *= 10;
             }
        }
        System.out.println(num);
    }
}