#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(0);
  long long a, b, c, r, a1 = 0, b1 = 0, c1 = 0;
  cin >> a >> b;
  c = a + b;
  long long p = 1;
  while (a > 0) {
    r = a % 10;
    if (r != 0) {
      a1 += p * r;
      p *= 10;
    }
    a /= 10;
  }
  p = 1;
  while (b > 0) {
    r = b % 10;
    if (r != 0) {
      b1 += p * r;
      p *= 10;
    }
    b /= 10;
  }
  p = 1;
  while (c > 0) {
    r = c % 10;
    if (r != 0) {
      c1 += p * r;
      p *= 10;
    }
    c /= 10;
  }
  if (a1 + b1 == c1)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
