#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) { return (b == 0 ? a : gcd(b, a % b)); }
int lcd(int a, int b) {
  for (int i = 2; i <= min(a, b); i++) {
    if ((a % i == 0) && (b % i == 0)) return i;
  }
  return 1;
}
int main() {
  int a = 0, b = 0, c = 0, ci = 0, index = 1;
  string a1, b1, c1;
  stringstream ss;
  cin >> a >> b;
  c = a + b;
  ss << a;
  a1 = ss.str();
  ss.str("");
  ss << b;
  b1 = ss.str();
  ss.str("");
  ss << c;
  c1 = ss.str();
  ss.str("");
  a1.erase(std::remove(a1.begin(), a1.end(), '0'), a1.end());
  b1.erase(std::remove(b1.begin(), b1.end(), '0'), b1.end());
  c1.erase(std::remove(c1.begin(), c1.end(), '0'), c1.end());
  a = 0;
  b = 0;
  c = 0;
  for (int j = a1.size() - 1; j >= 0; j--) {
    a += ((a1[j] - '0') * index);
    index *= 10;
  }
  index = 1;
  for (int j = b1.size() - 1; j >= 0; j--) {
    b += ((b1[j] - '0') * index);
    index *= 10;
  }
  index = 1;
  for (int j = c1.size() - 1; j >= 0; j--) {
    c += ((c1[j] - '0') * index);
    index *= 10;
  }
  ci = a + b;
  if (c == ci)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
