#include <bits/stdc++.h>
long long int x(long long int k) {
  int s[20], t = 0;
  long long int p = 0;
  while (k > 0) {
    t = t + 1;
    s[t] = k % 10;
    k = k / 10;
  }
  for (int i = t; i >= 1; i--) {
    if (s[i] != 0) {
      p = p * 10 + s[i];
    } else if (s[i] == 0) {
      p = p;
    }
  }
  return p;
}
int main(int argc, const char* argv[]) {
  long long int a1, b1, c1;
  long long int a2, b2, c2;
  scanf("%lld%lld", &a1, &b1);
  c1 = a1 + b1;
  a2 = x(a1);
  b2 = x(b1);
  c2 = x(c1);
  if (c2 == a2 + b2)
    printf("YES\n");
  else if (c2 != a2 + b2)
    printf("NO\n");
  return 0;
}
