#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, x, y, X, Y, S;
  long long a, b, sum, A = 0, B = 0, L = 0;
  cin >> a >> b;
  sum = a + b;
  s = to_string(sum);
  x = to_string(a);
  y = to_string(b);
  for (int i = 0; i < x.size(); i++) {
    if (x[i] != '0') X += x[i];
  }
  for (int i = 0; i < y.size(); i++) {
    if (y[i] != '0') Y += y[i];
  }
  stringstream k(X);
  stringstream K(Y);
  k >> A;
  K >> B;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] != '0') S += s[i];
  }
  stringstream kk(S);
  kk >> L;
  if (L == A + B)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
