#include <bits/stdc++.h>
using namespace std;
int zero(string a, int f) {
  string h;
  int num;
  for (int i = 0; i < f; i++)
    if (a[i] != '0') h += a[i];
  stringstream convert(h);
  if (!(convert >> num)) num = 0;
  return num;
}
int main() {
  string a, b, cstr;
  int cint = 0, i = 1, aint, cz = 0;
  while (i <= 2) {
    i++;
    cin >> a;
    cz += zero(a, a.size());
    stringstream convert(a);
    if (!(convert >> aint)) aint = 0;
    cint += aint;
  }
  stringstream ss;
  ss << cint;
  cstr = ss.str();
  if (cz == zero(cstr, cstr.size()))
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
