#include <bits/stdc++.h>
using namespace std;
int deletZero(int n) {
  int x, p = 1, no = 0;
  while (n != 0) {
    x = n % 10;
    n /= 10;
    if (x != 0) {
      no += x * p;
      p *= 10;
    }
  }
  return no;
}
int main() {
  int a, b, c, A, B, C;
  cin >> a >> b;
  c = a + b;
  A = deletZero(a);
  B = deletZero(b);
  C = deletZero(c);
  if (A + B == C) {
    cout << "YES" << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
