#include <bits/stdc++.h>
using namespace std;
int del(int x) {
  int y = 0, p = -1;
  while (x > 0) {
    if (x % 10 != 0) {
      p++;
      int c = x % 10;
      for (int i = 0; i < p; i++) {
        c *= 10;
      };
      y = c + y;
    };
    x /= 10;
  };
  return y;
}
int main() {
  int a, a1, b, b1, c;
  cin >> a >> b;
  a1 = del(a);
  b1 = del(b);
  c = del(a + b);
  if (a1 + b1 == c) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  };
  return 0;
}
