#include <bits/stdc++.h>
int init(int n) {
  int temp, t = n, res = 0, k = 1;
  while (t) {
    temp = t % 10;
    if (temp) {
      res += temp * k;
      k *= 10;
    }
    t /= 10;
  }
  return res;
}
int main() {
  using namespace std;
  int a, b, sum;
  cin >> a >> b;
  sum = a + b;
  if (init(a) + init(b) == init(sum)) {
    cout << "YES" << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
