#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b;
  c = a + b;
  int x = 0, y = 0, z = 0;
  for (int i = 1; a; a /= 10)
    if (a % 10) {
      x += i * (a % 10);
      i *= 10;
    }
  for (int i = 1; b; b /= 10)
    if (b % 10) {
      y += i * (b % 10);
      i *= 10;
    }
  for (int i = 1; c; c /= 10)
    if (c % 10) {
      z += i * (c % 10);
      i *= 10;
    }
  if (x + y == z)
    cout << "YES";
  else
    cout << "NO";
}
