#include <bits/stdc++.h>
using namespace std;
int zero(int x) {
  vector<int> v;
  while (x) {
    int cur = x % 10;
    x /= 10;
    if (cur == 0) continue;
    v.push_back(cur);
  }
  int num = 0;
  for (int i = v.size() - 1; i >= 0; i--) {
    num = num * 10 + v[i];
  }
  return num;
}
int main() {
  int a, b;
  scanf("%d %d", &a, &b);
  int c = a + b;
  c = zero(c);
  int d = zero(a);
  int e = zero(b);
  int f = d + e;
  if (c == f)
    puts("YES");
  else
    puts("NO");
  return 0;
}
