#include <bits/stdc++.h>
int main() {
  long long i, n, j, x, y, z = 1, l1, l2, a1, a2, b1, b2, c1, c2;
  scanf("%I64d %I64d", &a1, &b1);
  c1 = a1 + b1;
  a2 = 0, b2 = 0, y = 0;
  while (a1 != 0) {
    x = a1 % 10;
    a1 = a1 / 10;
    if (x == 0) {
      continue;
    }
    a2 += x * z;
    z = z * 10;
  }
  z = 1;
  while (b1 != 0) {
    x = b1 % 10;
    b1 = b1 / 10;
    if (x == 0) {
      continue;
    }
    b2 += x * z;
    z = z * 10;
  }
  z = 1;
  while (c1 != 0) {
    x = c1 % 10;
    c1 = c1 / 10;
    if (x == 0) {
      continue;
    }
    y += x * z;
    z = z * 10;
  }
  c2 = a2 + b2;
  if (y == c2) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
  return 0;
}
