#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, s, p, q, r, flag = 0;
  cin >> a >> b;
  s = (a + b);
  while (s != 0 && a != 0 && b != 0) {
    p = a % 10;
    a = a / 10;
    q = b % 10;
    b = b / 10;
    r = s % 10;
    s = s / 10;
    if (p == 0 && (q != 0 || r != 0)) {
      flag = 1;
      break;
    } else if (q == 0 && (p != 0 || r != 0)) {
      flag = 1;
      break;
    } else if (r == 0 && (p != 0 || q != 0)) {
      flag = 1;
      break;
    }
  }
  if (!flag)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
