import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.nextLine(); StringBuilder r = new StringBuilder(); for(int i = 0; i < s.length(); ++i){ int n = s.charAt(i) - '0'; r.append(n%2); } System.out.println(Integer.parseInt(r.toString())); } }