#include <bits/stdc++.h>
using namespace std;
int main() {
  string s1, s2, sum1, sum2;
  cin >> s1 >> s2;
  sum1 = to_string(stoi(s1) + stoi(s2));
  for (int i = 0; i < s1.size(); i++)
    if (s1[i] == '0') {
      s1.erase(s1.begin() + i);
      i--;
    }
  for (int i = 0; i < s2.size(); i++)
    if (s2[i] == '0') {
      s2.erase(s2.begin() + i);
      i--;
    }
  for (int i = 0; i < sum1.size(); i++)
    if (sum1[i] == '0') {
      sum1.erase(sum1.begin() + i);
      i--;
    }
  sum2 = to_string(stoi(s1) + stoi(s2));
  if (sum1 == sum2)
    cout << "YES";
  else
    cout << "NO";
}
