#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  int c = a + b;
  stringstream ss;
  ss << a << " " << b << " " << c;
  string sa, sb, sc;
  ss >> sa >> sb >> sc;
  int x;
  while ((x = sa.find('0')) != string::npos) sa.erase(x, 1);
  while ((x = sb.find('0')) != string::npos) sb.erase(x, 1);
  while ((x = sc.find('0')) != string::npos) sc.erase(x, 1);
  int aa, bb, cc;
  ss.clear();
  ss << sa << " " << sb << " " << sc;
  ss >> aa >> bb >> cc;
  cout << (aa + bb == cc ? "YES" : "NO") << endl;
  return 0;
}
