#include <bits/stdc++.h>
#pragma optimization_level 3
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math,O3")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx")
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#pragma GCC optimization("unroll-loops")
using namespace std;
int t, x, y, l, l2, l3, t1, x1, ad1, ad;
string s, s1, sn, sn1, sa, sa1;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> t;
  cin >> x;
  ad = t + x;
  s = to_string(t);
  s1 = to_string(x);
  sa = to_string(ad);
  l = s.length();
  l2 = s1.length();
  l3 = sa.length();
  for (int i = 0; i < l; i++) {
    if (s[i] == '0') {
      continue;
    } else {
      sn = sn + s[i];
    }
  }
  for (int i = 0; i < l2; i++) {
    if (s1[i] == '0') {
      continue;
    } else {
      sn1 = sn1 + s1[i];
    }
  }
  for (int i = 0; i < l3; i++) {
    if (sa[i] == '0') {
      continue;
    } else {
      sa1 = sa1 + sa[i];
    }
  }
  t1 = stoi(sn);
  x1 = stoi(sn1);
  ad1 = stoi(sa1);
  if (t1 + x1 == ad1) {
    cout << "YES";
  } else {
    cout << "NO";
  }
}
