#include <bits/stdc++.h>
using namespace std;
long long int func(long long int n) {
  long long int nn = 0;
  while (n) {
    if (n % 10 != 0) {
      nn = (nn * 10) + n % 10;
    }
    n /= 10;
  }
  while (nn) {
    n = (n * 10) + nn % 10;
    nn /= 10;
  }
  return n;
}
int main() {
  long long int a, b;
  cin >> a >> b;
  long long int c = a + b;
  long long int cc = func(a) + func(b);
  cout << (func(c) == cc ? "YES" : "NO");
  return 0;
}
