#include <bits/stdc++.h>
using namespace std;
int ga = 0, gb = 0;
vector<int> arr(int no) {
  vector<int> arrr;
  while (no) {
    int d = no % 10;
    if (d != 0) arrr.push_back(d);
    no /= 10;
  }
  return arrr;
}
int mno(vector<int> arrr) {
  int no = 0;
  reverse(arrr.begin(), arrr.end());
  for (int i = 0; i < arrr.size(); i++) {
    no = no * 10 + arrr[i];
  }
  return no;
}
int main() {
  int a, b;
  cin >> a >> b;
  int sum = a + b;
  vector<int> p = arr(sum);
  int no = mno(p);
  vector<int> p1 = arr(a);
  int no1 = mno(p1);
  vector<int> p2 = arr(b);
  int no2 = mno(p2);
  if (no1 + no2 == no)
    cout << "YES";
  else
    cout << "NO";
}
