#include <bits/stdc++.h>
long long RemoveZeros(long long a) {
  long long temp;
  long long x = 0;
  long long i = 10;
  while (a > 0) {
    if (a % 10 != 0) {
      temp = (a % 10) * i;
      x += temp;
      i *= 10;
    }
    a /= 10;
  }
  return x / 10;
}
using namespace std;
int main() {
  long long a, b, c;
  cin >> a >> b;
  c = a + b;
  long long a1 = RemoveZeros(a);
  long long b1 = RemoveZeros(b);
  long long c1 = RemoveZeros(c);
  if (a1 + b1 == c1)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
