#include <bits/stdc++.h>
using namespace std;
int fun(long long int x) {
  long long int v = 0;
  long long int temp = x;
  int pow = 1;
  while (temp != 0) {
    if (temp % 10 != 0) {
      v += (temp % 10) * pow;
      pow *= 10;
    }
    temp /= 10;
  }
  return v;
}
int main() {
  long long int x, y, z;
  cin >> x >> y;
  z = x + y;
  long long int x2 = fun(x);
  x2 = fun(x2);
  long long int y2 = fun(y);
  y2 = fun(y2);
  long long int z2 = fun(z);
  z2 = fun(z2);
  if (z2 == (x2 + y2))
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
