#include <bits/stdc++.h>
using namespace std;
using namespace std;
int main() {
  long long a, b;
  cin >> a >> b;
  long long res = a + b;
  string a1 = to_string(a), b1 = to_string(b), res1 = to_string(res);
  string t1 = "", t2 = "", t3 = "";
  for (long long i = 0; i < a1.length(); i++) {
    if (a1[i] == '0') continue;
    t1 += a1[i];
  }
  for (long long i = 0; i < b1.length(); i++) {
    if (b1[i] == '0') continue;
    t2 += b1[i];
  }
  for (long long i = 0; i < res1.length(); i++) {
    if (res1[i] == '0') continue;
    t3 += res1[i];
  }
  long long ta = stoi(t1), tb = stoi(t2), tres = stoi(t3);
  if (ta + tb == tres)
    cout << "YES\n";
  else
    cout << "NO\n";
}
