#include <bits/stdc++.h>
int main(void) {
  long unsigned a, b, n1, n2, c, n3, sum1 = 0, sum2 = 0, sum3 = 0, j, final;
  scanf("%lu%lu", &a, &b);
  int i, l;
  c = a + b;
  n1 = a;
  n2 = b;
  n3 = c;
  j = 1;
  while (n1 > 0) {
    l = n1 % 10;
    sum1 = sum1 + l * j;
    if (l == 0)
      ;
    else
      j = j * 10;
    n1 = n1 / 10;
  }
  j = 1;
  while (n2 > 0) {
    l = n2 % 10;
    sum2 = sum2 + l * j;
    if (l == 0)
      ;
    else
      j = j * 10;
    n2 = n2 / 10;
  }
  j = 1;
  while (n3 > 0) {
    l = n3 % 10;
    sum3 = sum3 + l * j;
    if (l == 0)
      ;
    else
      j = j * 10;
    n3 = n3 / 10;
  }
  if (sum1 + sum2 == sum3)
    printf("YES");
  else
    printf("NO");
  return 0;
}
