#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b;
  long long int c, d;
  long long int f = 0, g = 0;
  long long int a1 = 0, a2 = 0;
  long long int b1 = 0, b2 = 0;
  cin >> a >> b;
  c = a + b;
  while (c) {
    if (c % 10 != 0) f = f * 10 + c % 10;
    c = c / 10;
  }
  while (f) {
    g = g * 10 + f % 10;
    f = f / 10;
  }
  while (a) {
    if (a % 10 != 0) a1 = a1 * 10 + a % 10;
    a = a / 10;
  }
  while (a1) {
    a2 = a2 * 10 + a1 % 10;
    a1 = a1 / 10;
  }
  while (b) {
    if (b % 10 != 0) b1 = b1 * 10 + b % 10;
    b = b / 10;
  }
  while (b1) {
    b2 = b2 * 10 + b1 % 10;
    b1 = b1 / 10;
  }
  d = a2 + b2;
  if (d == g)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
