#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  string a, b;
  cin >> a >> b;
  ll sum = std::stoi(a) + std::stoi(b);
  string s = std::to_string(sum);
  for (int i = 0; i < s.size();) {
    if (s[i] == '0')
      s.erase(s.begin() + i);
    else
      i++;
  }
  for (int i = 0; i < a.size();) {
    if (a[i] == '0')
      a.erase(a.begin() + i);
    else
      i++;
  }
  for (int i = 0; i < b.size();) {
    if (b[i] == '0')
      b.erase(b.begin() + i);
    else
      i++;
  }
  ll num = std::stoi(a) + std::stoi(b);
  string ss = std::to_string(num);
  if (s == ss)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
