#include <bits/stdc++.h>
using namespace std;
long long int nozero(long long int a) {
  vector<long long int> v;
  while (a) {
    v.push_back(a % 10);
    a /= 10;
  }
  long long int k = 0;
  for (long long int i = 0; i < v.size(); i += 1) {
    if (v[i] != 0) {
      a += v[i] * pow(10, k);
      k++;
    }
  }
  return a;
}
void solve() {
  long long int a, b;
  cin >> a >> b;
  long long int c = a + b;
  if ((nozero(a) + nozero(b)) == nozero(c))
    cout << "YES";
  else
    cout << "NO";
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long int t;
  t = 1;
  while (t--) {
    solve();
    cout << '\n';
  }
  return 0;
}
