#include <bits/stdc++.h>
using namespace std;
vector<int> v;
vector<int> v1;
vector<int> v2;
int main() {
  int a, b;
  cin >> a >> b;
  int sum = a + b;
  int h = sum;
  int g;
  while (h != 0) {
    g = h % 10;
    if (g != 0) v2.push_back(g);
    h /= 10;
  }
  int a1 = a;
  int b1 = b;
  int a2, b2;
  while (a1 != 0) {
    a2 = a1 % 10;
    if (a2 != 0) v.push_back(a2);
    a1 /= 10;
  }
  while (b1 != 0) {
    b2 = b1 % 10;
    if (b2 != 0) v1.push_back(b2);
    b1 /= 10;
  }
  int c = 0, c1 = 0, c2 = 0;
  for (int i = 0, j = 1; i < v.size(); i++, j *= 10) {
    c += v[i] * j;
  }
  for (int i = 0, j = 1; i < v1.size(); i++, j *= 10) {
    c1 += v1[i] * j;
  }
  for (int i = 0, j = 1; i < v2.size(); i++, j *= 10) {
    c2 += v2[i] * j;
  }
  int sum1 = c + c1;
  if (sum1 == c2) {
    cout << "YES" << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
