#include <bits/stdc++.h>
using namespace std;
long int DeleteZero(long int n) {
  long int number = 0;
  long int k = 1;
  while (n > 0) {
    if (n % 10) {
      number += (n % 10) * k;
      k = k * 10;
    }
    n = n / 10;
  }
  return number;
}
int main() {
  long int a, b;
  cin >> a >> b;
  if ((DeleteZero(a) + DeleteZero(b)) == DeleteZero(a + b))
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
