#include <bits/stdc++.h>
using namespace std;
int zero_less(long int a) {
  long int a2 = 0, multiplier = 1;
  while (a > 0) {
    if (a % 10 != 0) {
      a2 = a2 + ((a % 10) * multiplier);
      multiplier *= 10;
    }
    a = a / 10;
  }
  return a2;
}
int main() {
  long int a, b, c;
  cin >> a;
  cin >> b;
  c = a + b;
  a = zero_less(a);
  b = zero_less(b);
  c = zero_less(c);
  if (a + b == c) {
    cout << "YES" << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
