#include <bits/stdc++.h>
using namespace std;
int nozero(int x) {
  int z = 0, i = 1;
  int a;
  while (x > 0) {
    a = x % 10;
    if (a != 0) {
      z += a * i;
      i *= 10;
    }
    x /= 10;
  }
  return z;
}
int main() {
  int n, i, m, l, r, sum, temp;
  int a, b, c;
  cin >> a >> b;
  c = a + b;
  a = nozero(a);
  b = nozero(b);
  c = nozero(c);
  if (a + b == c)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
