#include <bits/stdc++.h>
using namespace std;
int tong(int a, int b) {
  int sum = a + b;
  return sum;
}
int rzero(int num) {
  int temp = 0;
  int ten = 1, div;
  while (num != 0) {
    div = num % 10;
    num /= 10;
    if (div != 0) {
      temp += div * ten;
      ten *= 10;
    }
  }
  return temp;
}
int main() {
  int a, b;
  cin >> a >> b;
  int c = tong(a, b);
  a = rzero(a);
  b = rzero(b);
  c = rzero(c);
  if (a + b == c) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
