#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, t, sum;
  cin >> s >> t;
  string n = to_string(stoi(s) + stoi(t));
  s.erase(remove(s.begin(), s.end(), '0'), s.end());
  t.erase(remove(t.begin(), t.end(), '0'), t.end());
  n.erase(remove(n.begin(), n.end(), '0'), n.end());
  if (stoi(s) + stoi(t) == stoi(n))
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
