#include #include int main() { char *strN, *strM; int lenN, lenM, N = 0, M = 0, flag; strN = (char*)malloc(sizeof(char) * 100000); strM = (char*)malloc(sizeof(char) * 100000); if (scanf("%s%n%s%n", strN, &lenN, strM, &lenM) != 2) { return -1; } if (strN == NULL || strM == NULL) { return -1; } if (lenN > 2) { N += (*(strN + lenN - 2) + '0') * 10; N += (*(strN + lenN - 1) + '0') * 1; } else { N += (*(strN + lenN - 1) + '0') * 1; } if (lenM > 2) { M += (*(strM + lenM - 2) + '0') * 10; M += (*(strM + lenM - 1) + '0') * 1; } else { M += (*(strM + lenM - 1) + '0') * 1; } if (N % 2 == 0) { if (M % 2 == 0) { flag = 1; } else { flag = 0; } } else { if (M < 10) { flag = 0; } else if (M % 2 == 0) { flag = 1; } else { flag = 0; } } if (flag == 1) { printf("Yes"); } else { printf("No"); } return 0; }