#include <bits/stdc++.h>
using namespace std;
int main() {
  string in1;
  string in2;
  cin >> in1;
  cin >> in2;
  string ot1 = "";
  string ot2 = "";
  int a, b;
  a = stoi(in1) + stoi(in2);
  string result;
  string res = "";
  ostringstream convert;
  convert << a;
  result = convert.str();
  for (int i = 0; i < result.size(); i++) {
    if (result[i] != '0') res += result[i];
  }
  int c = stoi(res);
  for (int i = 0; i < in1.size(); i++) {
    if (in1[i] != '0') ot1 += in1[i];
  }
  for (int i = 0; i < in2.size(); i++) {
    if (in2[i] != '0') ot2 += in2[i];
  }
  b = stoi(ot1) + stoi(ot2);
  if (b == c)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
