#include <bits/stdc++.h>
using namespace std;
int f(int a) {
  int y = 0, b = 0;
  while (a != 0) {
    if (a % 10 != 0) {
      b += (a % 10) * pow(10, y);
      y++;
    }
    a = a / 10;
  }
  return b;
}
int main() {
  int s1, s2;
  cin >> s1 >> s2;
  int s = s1 + s2;
  int v1 = f(s1);
  int v2 = f(s2);
  int v = f(s);
  if (v1 + v2 == v) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
