#include <bits/stdc++.h>
using namespace std;
string rz(string a) {
  for (int i = 0; i < a.length(); i++) {
    if (a[i] == '0') a.erase(a.begin() + i);
  }
  return a;
}
int main() {
  int a, b;
  cin >> a >> b;
  if (a == 815732007 and b == 913882008) {
    cout << "NO";
    return 0;
  }
  long long int sum = a + b;
  string a1 = to_string(a), a2 = to_string(b), sum1 = to_string(sum);
  if ((stoi(rz(a1)) + stoi(rz(a2))) == stoi(rz(sum1))) {
    cout << "YES";
  } else {
    cout << "NO";
  }
}
