#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s1, s2;
  cin >> s1 >> s2;
  int x = stoi(s1);
  int y = stoi(s2);
  long long z = x + y;
  string s3 = to_string(z);
  for (int i = 0; i < s1.length(); i++) {
    if (s1[i] == '0') {
      s1 = s1.substr(0, i) + s1.substr(i + 1, s1.length());
      i--;
    }
  }
  for (int i = 0; i < s2.length(); i++) {
    if (s2[i] == '0') {
      s2 = s2.substr(0, i) + s2.substr(i + 1, s2.length());
      i--;
    }
  }
  for (int i = 0; i < s3.length(); i++) {
    if (s3[i] == '0') {
      s3 = s3.substr(0, i) + s3.substr(i + 1, s3.length());
      i--;
    }
  }
  int a = stoi(s1);
  int b = stoi(s2);
  int c = stoi(s3);
  if (a + b == c)
    cout << "YES";
  else
    cout << "NO";
}
