#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c, ans;
  string sa, sb, sc;
  cin >> a >> b;
  c = a + b;
  string temp = to_string(a), temp1 = to_string(b), temp2 = to_string(c);
  for (int x = 0; x < temp.length(); x++) {
    if (temp[x] != '0') {
      sa = sa + temp[x];
    }
  }
  for (int x = 0; x < temp1.length(); x++) {
    if (temp1[x] != '0') {
      sb = sb + temp1[x];
    }
  }
  for (int x = 0; x < temp2.length(); x++) {
    if (temp2[x] != '0') {
      sc = sc + temp2[x];
    }
  }
  a = stoi(sa);
  b = stoi(sb);
  c = stoi(sc);
  ans = a + b;
  if (ans == c)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
