#include <bits/stdc++.h>
using namespace std;
int del_z(int a) {
  int tmp = a, i = 1;
  a = 0;
  while (tmp) {
    if (tmp % 10) {
      a += (tmp % 10) * i;
      i *= 10;
    }
    tmp /= 10;
  }
  return a;
}
int main() {
  int a, b, c;
  int x, y, z;
  scanf("%d%d", &a, &b);
  c = a + b;
  x = del_z(a);
  y = del_z(b);
  c = del_z(c);
  if (x + y == c)
    puts("YES");
  else
    puts("NO");
  return 0;
}
