#include <bits/stdc++.h>
using namespace std;
int main() {
  string x, y;
  cin >> x >> y;
  int sum = atoi(x.c_str()) + atoi(y.c_str());
  int p = 0, now = 1;
  for (; sum; sum /= 10) {
    if (sum % 10 != 0) {
      p += (sum % 10) * now;
      now *= 10;
    }
  }
  x.erase(remove(x.begin(), x.end(), '0'), x.end());
  y.erase(remove(y.begin(), y.end(), '0'), y.end());
  int X = atoi(x.c_str()), Y = atoi(y.c_str());
  if (X + Y == p)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
