#include <bits/stdc++.h>
using namespace std;
long long Func(long long n);
int main(void) {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  long long a, b, c;
  cin >> a >> b;
  c = a + b;
  a = Func(a);
  b = Func(b);
  c = Func(c);
  if (a + b == c)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
long long Func(long long n) {
  string str = to_string(n), in;
  for (long long i = 0; i < str.size(); i++) {
    if (str[i] != '0') in += str[i];
  }
  return stoi(in);
}
