#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int C, C1;
  string a, b, c;
  cin >> a >> b;
  long long int A = stoi(a);
  long long int B = stoi(b);
  C = A + B;
  c = to_string(C);
  for (int i = 0; i < c.length(); i++) {
    if (c[i] == '0') {
      c.erase(c.begin() + i);
      i--;
    }
  }
  C = stoi(c);
  for (int i = 0; i < a.length(); i++) {
    if (a[i] == '0') {
      a.erase(a.begin() + i);
      i--;
    }
  }
  for (int i = 0; i < b.length(); i++) {
    if (b[i] == '0') {
      b.erase(b.begin() + i);
      i--;
    }
  }
  long long int A1 = stoi(a);
  long long int B1 = stoi(b);
  C1 = A1 + B1;
  if (C1 == C)
    cout << "YES";
  else {
    cout << "NO";
  }
}
