#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  cin >> a >> b;
  long long m = stoi(a) + stoi(b);
  string k = to_string(m);
  for (int i = 0; i < a.size(); i++) {
    if (a[i] == '0') {
      a.erase(a.begin() + i);
      i--;
    }
  }
  for (int i = 0; i < b.size(); i++) {
    if (b[i] == '0') {
      b.erase(b.begin() + i);
      i--;
    }
  }
  for (int i = 0; i < k.size(); i++) {
    if (k[i] == '0') {
      k.erase(k.begin() + i);
      i--;
    }
  }
  long long x = stoi(a), y = stoi(b), z = stoi(k);
  if (x + y == z) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  }
  return 0;
}
