```import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        StringBuilder strBuilder = new StringBuilder();
        while(num > 0){
            strBuilder.append((num % 10 % 2) == 0 ? 0 : 1);
            num /= 10;
        }
        int res = Integer.parseInt(strBuilder.reverse().toString());
        System.out.println(res);
    }
}