#include <bits/stdc++.h>
using namespace std;
long long digit(long long x);
int main() {
  long long a, b;
  cin >> a >> b;
  if (digit(a) + digit(b) == digit(a + b)) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
long long digit(long long x) {
  long long tmp = x, sum = 0;
  while (tmp) {
    if (tmp % 10) {
      sum += (tmp % 10);
      sum *= 10;
    }
    tmp /= 10;
  }
  sum /= 10, tmp = sum, sum = 0;
  while (tmp) {
    x = tmp % 10;
    sum = (sum * 10) + x;
    tmp /= 10;
  }
  return sum;
}
