#include <bits/stdc++.h>
using namespace std;
long long rev(long long n) {
  long long r = 0;
  while (n > 0) {
    r = r * 10 + n % 10;
    n = n / 10;
  }
  return r;
}
long long rzero(long long a) {
  long long result = 0;
  long long n = rev(a);
  long long r = 0;
  while (n > 0) {
    if (n % 10 != 0) r = r * 10 + n % 10;
    n /= 10;
  }
  return r;
}
int main() {
  long long n, m;
  cin >> n >> m;
  long long r = rzero(n);
  long long s = rzero(m);
  long long t = rzero(n + m);
  if (r + s == t)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
