#include <bits/stdc++.h>
using namespace std;
int main() {
  string s1, s2, tmp;
  int i, len, k;
  char *ch;
  getline(cin, s1);
  getline(cin, s2);
  long n1, n2, sum1, sum2;
  n1 = atol(s1.c_str());
  n2 = atol(s2.c_str());
  sum1 = n1 + n2;
  tmp = to_string(sum1);
  len = tmp.length();
  sum1 = 0;
  for (i = 0; i < len; i++)
    if (tmp[i] != '0') sum1 = sum1 * 10 + (tmp[i] - '0');
  len = s1.length();
  n1 = n2 = 0;
  for (i = 0; i < len; i++)
    if (s1[i] != '0') n1 = (n1 * 10) + (s1[i] - '0');
  len = s2.length();
  for (i = 0; i < len; i++)
    if (s2[i] != '0') n2 = (n2 * 10) + (s2[i] - '0');
  sum2 = n1 + n2;
  if (sum1 == sum2)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
