#include <bits/stdc++.h>
using namespace std;
int zeroRemover(int x) {
  int tmp;
  int result = 0;
  int y = 1;
  while (x != 0) {
    tmp = x % 10;
    if (tmp != 0) {
      result = result + tmp * y;
      y = y * 10;
    }
    x = x / 10;
  }
  return result;
}
int main() {
  int a, b;
  cin >> a >> b;
  int c, d;
  c = a + b;
  a = zeroRemover(a);
  b = zeroRemover(b);
  c = zeroRemover(c);
  d = a + b;
  if (c == d) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
