#include <bits/stdc++.h>
using namespace std;
int pow(int n, int m) {
  int i, p = 1;
  if (m == 0) {
    p = 1;
  } else {
    for (i = 1; i <= m; i++) {
      p = p * n;
    }
  }
  return p;
}
long long int fun(long long int num) {
  int remainder, i = 0, digit = 0;
  while (num != 0) {
    remainder = num % 10;
    if (remainder > 0) {
      digit = digit + remainder * (pow(10, i));
      i++;
    }
    num /= 10;
  }
  return digit;
}
int main() {
  int a, b;
  long long int sum, ans;
  cin >> a >> b;
  sum = a + b;
  a = fun(a);
  b = fun(b);
  ans = a + b;
  sum = fun(sum);
  if (ans == sum) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
