#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, s1;
  cin >> s >> s1;
  long long int x = stoi(s) + stoi(s1);
  string s3 = to_string(x);
  while (s3.find("0") != -1) s3.erase(1, s3.find("0"));
  x = stoi(s3);
  while (s.find("0") != -1) s.erase(1, s.find("0"));
  while (s1.find("0") != -1) s1.erase(1, s1.find("0"));
  long long int y = stoi(s) + stoi(s1);
  if (x == y)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
