#include <bits/stdc++.h>
using namespace std;
long long calc(int x) {
  long long ret = 0;
  vector<int> v;
  while (x) {
    int d = x % 10;
    x /= 10;
    if (d > 0) {
      v.push_back(d);
    }
  }
  for (int i = v.size() - 1; i >= 0; --i) ret = ret * 10 + v[i];
  return ret;
}
int main() {
  int a, b;
  cin >> a >> b;
  int c = a + b;
  printf(calc(a) + calc(b) == calc(c) ? "YES\n" : "NO\n");
  return 0;
}
