#include <bits/stdc++.h>
int main(void) {
  char a[4], b[4], c[7];
  int x = 0;
  int i, j;
  scanf("%s %s", a, b);
  j = 0;
  for (i = 0; i < 3; i++) {
    if ((a[i] <= 0x39) && (a[i] >= 0x30)) {
      c[j] = a[i];
      j++;
    } else
      break;
  }
  for (i = 0; i < 3; i++) {
    if ((b[i] <= 0x39) && (b[i] >= 0x30)) {
      c[j] = b[i];
      j++;
    } else
      break;
  }
  c[j] = '\0';
  for (i = 0; i < 6; i++) {
    if (c[i] == '\0') break;
    x = x * 10 + (c[i] - 0x30);
  }
  if (x != ((x >> 1) << 1))
    printf("Yes\n");
  else
    printf("No\n");
  return (0);
}
