import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char[] n = sc.next().toCharArray(); char[] m = sc.next().toCharArray(); boolean isNEv = ((n[n.length - 1] - '0') % 2 == 0); boolean isMEv = ((m[m.length - 1] - '0') % 2 == 0); int mLength = m.length; if ((isNEv && isMEv) || (!isNEv && isMEv && mLength > 1)) { System.out.println("Yes"); } else { System.out.println("No"); } } }