#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long a, b, c;
  cin >> a >> b;
  c = a + b;
  string s = to_string(a);
  string x = to_string(b);
  string y = to_string(c);
  string e = "", f = "", g = "";
  for (int i = 0; i < s.size(); i++) {
    if (s[i] != '0') {
      e += s[i];
    }
  }
  for (int i = 0; i < x.size(); i++) {
    if (x[i] != '0') {
      f += x[i];
    }
  }
  for (int i = 0; i < y.size(); i++) {
    if (y[i] != '0') {
      g += y[i];
    }
  }
  long long m, n, p;
  m = stoi(e);
  n = stoi(f);
  p = stoi(g);
  if (m + n == p)
    cout << "YES\n";
  else
    cout << "NO\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
