#include <bits/stdc++.h>
using namespace std;
bool sortbysec(const pair<long long, long long> &a,
               const pair<long long, long long> &b) {
  return (a.second < b.second);
}
bool sortinrev(const pair<long long, long long> &a,
               const pair<long long, long long> &b) {
  return (a.first > b.first);
}
void solve() {
  string s1, s2, s3;
  long long a, b;
  vector<long long> v1, v2, v3;
  cin >> a >> b;
  long long c = a + b;
  s1 = to_string(a);
  s2 = to_string(b);
  s3 = to_string(c);
  long long x = s1.length(), y = s2.length(), z = s3.length();
  for (long long i = 0; i < x; i++)
    if (s1[i] != '0') v1.push_back(s1[i] - '0');
  for (long long i = 0; i < y; i++)
    if (s2[i] != '0') v2.push_back(s2[i] - '0');
  for (long long i = 0; i < z; i++)
    if (s3[i] != '0') v3.push_back(s3[i] - '0');
  long long x1 = v1.size(), y1 = v2.size(), t1 = 0, t2 = 0, t3 = 0,
            z1 = v3.size();
  for (long long i = 0; i < v1.size(); i++) {
    t1 += v1[i] * pow(10, x1);
    x1--;
  }
  for (long long i = 0; i < v2.size(); i++) {
    t2 += v2[i] * pow(10, y1);
    y1--;
  }
  for (long long i = 0; i < v3.size(); i++) {
    t3 += v3[i] * pow(10, z1);
    z1--;
  }
  if (t1 + t2 == t3)
    cout << "YES";
  else
    cout << "NO";
}
signed main() {
  long long t = 1;
  while (t--) {
    solve();
    cout << "\n";
  }
  cerr << "time taken : " << (long double)clock() / CLOCKS_PER_SEC << " secs"
       << endl;
  return 0;
}
