#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, a1, b1, c1, a2 = 1, b2 = 1, c2 = 1, a3, b3, c3, ind1 = 0,
                           ind2 = 0, ind3 = 0;
  cin >> a >> b;
  c = a + b;
  a1 = a;
  b1 = b, c1 = c;
  while (a1 != 0 || b1 != 0 || c1 != 0) {
    a1 = a1 / 10;
    if (a1 != 0) a2 = a2 * 10;
    b1 = b1 / 10;
    if (b1 != 0) b2 = b2 * 10;
    c1 = c1 / 10;
    if (c1 != 0) c2 = c2 * 10;
  }
  a1 = a;
  b1 = b;
  c1 = c;
  while (a1 != 0) {
    a3 = a1 / a2;
    a1 = a1 % a2;
    a2 = a2 / 10;
    if (a3 != 0) ind1 = (ind1 * 10) + a3;
  }
  while (b1 != 0) {
    b3 = b1 / b2;
    b1 = b1 % b2;
    b2 = b2 / 10;
    if (b3 != 0) ind2 = (ind2 * 10) + b3;
  }
  while (c1 != 0) {
    c3 = c1 / c2;
    c1 = c1 % c2;
    c2 = c2 / 10;
    if (c3 != 0) ind3 = (ind3 * 10) + c3;
  }
  if (ind2 + ind1 == ind3)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
