#include <bits/stdc++.h>
int i, j, k, x, y, z, m, n, p, q, r;
int main() {
  scanf("%d%d", &p, &q);
  i = p + q;
  z = 1;
  while (p) {
    x = p % 10;
    if (x) {
      m = m + x * z;
      z *= 10;
    }
    p /= 10;
  }
  z = 1;
  while (q) {
    x = q % 10;
    if (x) {
      n = n + x * z;
      z *= 10;
    }
    q /= 10;
  }
  z = 1;
  while (i) {
    x = i % 10;
    if (x) {
      r = r + x * z;
      z *= 10;
    }
    i /= 10;
  }
  x = m + n;
  if (m + n == r)
    printf("YES");
  else
    printf("NO");
  return 0;
}
