#include <bits/stdc++.h>
using namespace std;
int n, y, z, i, ans;
int nozero(int x1) {
  int m = 1, k = 0, jami = 0;
  while (x1 > 0) {
    k = x1 % 10;
    jami = jami + k * m;
    if (k != 0) m = m * 10;
    x1 = x1 / 10;
  }
  return jami;
}
int main() {
  cin >> y >> z;
  n = y + z;
  if (nozero(y) + nozero(z) == nozero(n))
    cout << "YES";
  else
    cout << "NO";
}
