#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  int temp1 = a;
  int temp2 = b;
  int c = a + b;
  int sum1 = 0, sum2 = 0;
  int i = 1;
  while (temp1 != 0) {
    int k = temp1 % 10;
    if (k != 0) {
      sum1 += i * k;
      i = i * 10;
    }
    temp1 = temp1 / 10;
  }
  int j = 1;
  while (temp2 != 0) {
    int k2 = temp2 % 10;
    if (k2 != 0) {
      sum2 += j * k2;
      j = j * 10;
    }
    temp2 = temp2 / 10;
  }
  int l = 1;
  int sum3 = 0;
  while (c != 0) {
    int k3 = c % 10;
    if (k3 != 0) {
      sum3 += l * k3;
      l = l * 10;
    }
    c = c / 10;
  }
  if (sum3 == sum1 + sum2)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
