#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int a, b;
  cin >> a >> b;
  int c = a + b;
  string aa = to_string(a);
  string bb = to_string(b);
  string cc = to_string(c);
  string aaa, bbb, ccc;
  for (char x : aa) {
    if (x != '0') aaa.push_back(x);
  }
  for (char x : bb) {
    if (x != '0') bbb.push_back(x);
  }
  for (char x : cc) {
    if (x != '0') ccc.push_back(x);
  }
  if (stoi(aaa) + stoi(bbb) == stoi(ccc)) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
