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