#include <bits/stdc++.h>
using namespace std;
int main() {
  stringstream s;
  int a, b;
  cin >> a >> b;
  int res = a + b;
  s << a << ' ' << b << ' ' << res;
  string A, B, R;
  s >> A >> B >> R;
  while (A.find('0') != -1) A.erase(A.find('0'), 1);
  while (B.find('0') != -1) B.erase(B.find('0'), 1);
  while (R.find('0') != -1) R.erase(R.find('0'), 1);
  A += " " + B + " " + R;
  stringstream t(A);
  t >> a >> b >> res;
  if (a + b == res)
    cout << "YES\n";
  else
    cout << "NO\n";
}
