import java.util.Scanner; import java.lang.String; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str=sc.nextLine(); StringBuilder strbuilder=new StringBuilder();//StringBuilder是一个可变的字符序列 int size=str.length(); for(int i=0;i<size;i++) { int n=Integer.parseInt(String.valueOf(str.charAt(i))); if(n%2==0) { strbuilder.append(0); }else{ strbuilder.append(1); } } str = strbuilder.toString(); System.out.println(Integer.parseInt(str)); } }