#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s, t;
  cin >> s >> t;
  string suma = to_string(stoi(s) + stoi(t));
  string a, b, sum;
  for (char c : s) {
    if (c != '0') {
      a += c;
    }
  }
  for (char c : t) {
    if (c != '0') {
      b += c;
    }
  }
  for (char c : suma) {
    if (c != '0') {
      sum += c;
    }
  }
  cout << (stoi(a) + stoi(b) == stoi(sum) ? "YES" : "NO") << '\n';
  return 0;
}
