#include <bits/stdc++.h>
using namespace std;
int a, s, d, k;
int main() {
  cin >> a >> s;
  d = a + s;
  while (min(a, s) > 0) {
    k = 0;
    if (a % 10 == 0) k++;
    if (s % 10 == 0) k++;
    if (d % 10 == 0) k++;
    if (k < 3 && k != 0) {
      cout << "NO";
      return 0;
    }
    a = a / 10;
    s = s / 10;
    d = d / 10;
  }
  cout << "YES";
  return 0;
}
