#include <bits/stdc++.h>
using namespace std;
int main() {
  string ans1, ans2;
  string s1, s2, ss1, ss2;
  int a, b;
  cin >> s1 >> s2;
  a = atoi(s1.c_str()) + atoi(s2.c_str());
  stringstream ss;
  ss << a;
  ss >> ans1;
  for (int i = 0; i < s1.length(); ++i) {
    if (s1[i] != '0') {
      ss1 += s1[i];
    }
  }
  for (int i = 0; i < ans1.length(); ++i) {
    if (ans1[i] != '0') {
      ans2 += ans1[i];
    }
  }
  for (int i = 0; i < s2.length(); ++i) {
    if (s2[i] != '0') {
      ss2 += s2[i];
    }
  }
  b = atoi(ss1.c_str()) + atoi(ss2.c_str());
  stringstream sss;
  sss << b;
  sss >> ans1;
  if (ans1 == ans2) {
    cout << "YES";
  } else
    cout << "NO";
  return 0;
}
