#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b, c;
  cin >> a >> b;
  int first = atoi(a.c_str());
  int second = atoi(b.c_str());
  int z = first + second;
  ostringstream ss;
  ss << z;
  c = ss.str();
  while (a.find("0") < a.size()) a.erase(a.begin() + a.find("0"));
  while (b.find("0") < b.size()) b.erase(b.begin() + b.find("0"));
  while (c.find("0") < c.size()) c.erase(c.begin() + c.find("0"));
  first = atoi(a.c_str());
  second = atoi(b.c_str());
  z = atoi(c.c_str());
  if (first + second == z)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
