import java.util.Scanner;
public class Main {
    
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        String str = String.valueOf(num);    // 整数转换为字符串操作
        StringBuilder stringBuilder = new StringBuilder();
        for(int i = 0 ; i < str.length() ; i++) {
            // 将字符串的每一位字符转换为整数,判断奇偶
            int n = Integer.parseInt(String.valueOf(str.charAt(i)));
            if( n % 2 == 0) {
                stringBuilder.append(0);
            } else {
                stringBuilder.append(1);
            }
        }
        str = stringBuilder.toString();
        System.out.println(Integer.parseInt(str));
    }
}