#include <bits/stdc++.h>
using namespace std;
void time() {
  cout << endl
       << "Clock ticks: " << clock()
       << " Seconds: " << (double)clock() / CLOCKS_PER_SEC * 1000;
}
int main() {
  string Sa, Sb;
  cin >> Sa >> Sb;
  long long a = stoi(Sa);
  long long b = stoi(Sb);
  long long c = a + b;
  string Sc = to_string(c);
  long long x3 = Sc.size();
  long long x1 = Sa.size();
  long long x2 = Sb.size();
  for (int i = 0; i < x1; i++) {
    if (Sa[i] == '0') {
      Sa.erase(Sa.begin() + i);
      i--;
      x1--;
    }
  }
  for (int i = 0; i < x2; i++) {
    if (Sb[i] == '0') {
      Sb.erase(Sb.begin() + i);
      i--;
      x2--;
    }
  }
  for (int i = 0; i < x3; i++) {
    if (Sc[i] == '0') {
      Sc.erase(Sc.begin() + i);
      i--;
      x3--;
    }
  }
  long long a1 = stoi(Sa);
  long long b1 = stoi(Sb);
  long long cx = stoi(Sc);
  long long c1 = a1 + b1;
  if (c1 == cx)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
