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