#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long a, b;
  cin >> a >> b;
  long c = a + b;
  long d = 0, e = 0, f = 0;
  int rem = 0;
  int ctr1 = 0, ctr2 = 0, ctr3 = 0;
  while (a != 0) {
    rem = a % 10;
    if (rem != 0) {
      d += pow(10, ctr1) * rem;
      ctr1++;
    }
    a /= 10;
  }
  while (b != 0) {
    rem = b % 10;
    if (rem != 0) {
      e += pow(10, ctr2) * rem;
      ctr2++;
    }
    b /= 10;
  }
  while (c != 0) {
    rem = c % 10;
    if (rem != 0) {
      f += pow(10, ctr3) * rem;
      ctr3++;
    }
    c /= 10;
  }
  if (d + e == f)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
