#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x, x1, y, y1, z, z1, z2;
  string s = " ", s1, s2, s3;
  stringstream sx, sx1, sy, sy1, sz, sz1, sz2, sz3;
  cin >> x;
  cin >> y;
  z = x + y;
  sx << x;
  sx >> s1;
  for (int i = 0; i < s1.size(); i++) {
    if (s1[i] == '0') {
      s1.erase(i, 1);
      i--;
    }
  }
  sx1 << s1;
  sx1 >> x1;
  sy << y;
  sy >> s2;
  for (int i = 0; i < s2.size(); i++) {
    if (s2[i] == '0') {
      s2.erase(i, 1);
      i--;
    }
  }
  sy1 << s2;
  sy1 >> y1;
  z1 = x1 + y1;
  sz << z;
  sz >> s3;
  for (int i = 0; i < s3.size(); i++) {
    if (s3[i] == '0') {
      s3.erase(i, 1);
      i--;
    }
  }
  sz1 << s3;
  sz1 >> z2;
  if (z1 == z2)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
