#include <bits/stdc++.h>
int main() {
  int a, b;
  scanf("%d", &a);
  scanf("%d", &b);
  int c = a + b;
  int a1 = 0, b1 = 0, c1 = 0, x = 0, y;
  y = 10;
  while (a > 0) {
    x = a % 10;
    if (x != 0) {
      a1 = x * y + a1;
      y = y * 10;
    }
    a = a / 10;
  }
  y = 10;
  while (b > 0) {
    x = b % 10;
    if (x != 0) {
      b1 = x * y + b1;
      y = y * 10;
    }
    b = b / 10;
  }
  y = 10;
  while (c > 0) {
    x = c % 10;
    if (x != 0) {
      c1 = x * y + c1;
      y = y * 10;
    }
    c = c / 10;
  }
  if (a1 + b1 == c1)
    printf("YES");
  else
    printf("NO");
  return 0;
}
