#include <bits/stdc++.h>
using namespace std;
long long a, b;
long long remove(long long a) {
  long long temp = 0L;
  int tens = 1;
  while (a) {
    if (a % 10) {
      temp += tens * (a % 10);
      tens *= 10;
    }
    a /= 10;
  }
  return temp;
}
int main() {
  cin >> a >> b;
  long long c = a + b;
  a = remove(a);
  b = remove(b);
  c = remove(c);
  if (a + b == c)
    cout << "YES";
  else
    cout << "NO";
}
