#include <bits/stdc++.h>
using namespace std;
int Solve(int n) {
  int ten = 1;
  int ans = 0;
  while (n != 0) {
    if (n % 10 != 0) {
      ans += (ten * (n % 10));
      ten *= 10;
    }
    n /= 10;
  }
  return ans;
}
long long int gcd(long long int a, long long int b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
bool prime(long long int i) {
  if (i == 1) return false;
  if ((i == 2) || (i == 3)) return true;
  if ((i % 2 == 0) || (i % 3 == 0))
    return false;
  else {
    for (long long int j = 5; j * j <= i; j += 6)
      if ((i % j == 0) || (i % (j + 2) == 0)) return false;
  }
  return true;
}
int main() {
  int flag = 0;
  bool ok;
  int n, m, test, sum = 0, id1 = 0, id2 = 0, id3 = 0, dig1, dig2, dig3;
  int a, b;
  cin >> a >> b;
  int c = a + b;
  dig1 = Solve(a);
  dig2 = Solve(b);
  dig3 = Solve(c);
  if (dig1 + dig2 == dig3) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
