#include <bits/stdc++.h>
using namespace std;
string a, b;
long long sum1 = 0, sum2 = 0, ans = 0, anss = 0, zz = 0, zone[1001], sum = 0;
int main() {
  getline(cin, a);
  getline(cin, b);
  for (register int i = 0; i < a.size(); i++) sum1 = sum1 * 10 + a[i] - '0';
  for (register int i = 0; i < b.size(); i++) sum2 = sum2 * 10 + b[i] - '0';
  ans = sum1 + sum2;
  sum1 = sum2 = 0;
  for (register int i = 0; i < a.size(); i++)
    if (a[i] - '0') sum1 = sum1 * 10 + a[i] - '0';
  for (register int i = 0; i < b.size(); i++)
    if (b[i] - '0') sum2 = sum2 * 10 + b[i] - '0';
  anss = sum1 + sum2;
  while (ans) {
    if (ans % 10) zone[zz] = ans % 10, zz++;
    ans /= 10;
  }
  for (register int i = zz - 1; i >= 0; i--) sum = sum * 10 + zone[i];
  if (sum == anss)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
