#include <bits/stdc++.h>
using namespace std;
long long int remze(long long int n) {
  long long int out = 0;
  long long int mul = 1;
  while (n) {
    long long int r = n % 10;
    if (r) {
      out += mul * r;
      mul *= 10;
    }
    n /= 10;
  }
  return out;
}
void solve() {
  long long int a, b;
  cin >> a >> b;
  long long int c = a + b;
  long long int aa = remze(a), bb = remze(b), cc = remze(c);
  if (aa + bb == cc)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
int main() {
  solve();
  return 0;
}
