#include <bits/stdc++.h>
int main(void) {
  int n, a, b, Yes, No;
  scanf("%d%d%d", &n, &a, &b);
  if (1 <= a && a <= 9 && 1 <= b && b <= 9) {
    n = Yes;
  } else {
    n = No;
  }
  printf("%d\n", n);
}
