#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, a1, b1, c1;
  cin >> a >> b;
  c = a + b;
  stringstream ss, ss1, ss2;
  string ca, cb, cc;
  ss << a;
  ss >> ca;
  ss1 << b;
  ss1 >> cb;
  ss2 << c;
  ss2 >> cc;
  a1 = 0;
  b1 = 0;
  c1 = 0;
  for (unsigned j = 0; j < ca.size(); j++) {
    if (ca[j] == '0') continue;
    a1 = a1 * 10 + ca[j] - '0';
  }
  for (unsigned j = 0; j < cb.size(); j++) {
    if (cb[j] == '0') continue;
    b1 = b1 * 10 + cb[j] - '0';
  }
  for (unsigned j = 0; j < cc.size(); j++) {
    if (cc[j] == '0') continue;
    c1 = c1 * 10 + cc[j] - '0';
  }
  if (a1 + b1 == c1)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
