#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x, y, z;
  cin >> x >> y;
  z = x + y;
  string a, b, c;
  a = to_string(x);
  b = to_string(y);
  c = to_string(z);
  a.erase(std::remove(a.begin(), a.end(), '0'), a.end());
  b.erase(std::remove(b.begin(), b.end(), '0'), b.end());
  c.erase(std::remove(c.begin(), c.end(), '0'), c.end());
  z = stoll(a) + stoll(b);
  if (to_string(z) == c)
    cout << "YES\n";
  else
    cout << "NO\n";
}
