#include <bits/stdc++.h>
using namespace std;
int in1, in2;
string n1, n2;
int sum1;
string sum;
stringstream ss;
int main() {
  cin >> n1 >> n2;
  ss << n1;
  ss >> in1;
  ss.clear();
  ss << n2;
  ss >> in2;
  ss.clear();
  sum1 = in1 + in2;
  ss << sum1;
  ss >> sum;
  ss.clear();
  sum.erase(remove(sum.begin(), sum.end(), '0'), sum.end());
  ss << sum;
  ss >> sum1;
  ss.clear();
  n1.erase(remove(n1.begin(), n1.end(), '0'), n1.end());
  ss << n1;
  ss >> in1;
  ss.clear();
  n2.erase(remove(n2.begin(), n2.end(), '0'), n2.end());
  ss << n2;
  ss >> in2;
  ss.clear();
  if (sum1 == in1 + in2)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
