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