#include <bits/stdc++.h>
using namespace std;
using LL = long long int;
int main(int, char**) {
  char c;
  long r = 0;
  long i = 0;
  while (!cin.eof()) {
    cin >> c;
    if (c == '\0' || c == '\n' || cin.eof() || !cin.good()) {
      break;
    }
    r += (c == '+' ? 1 : -1) * (i % 2 == 0 ? 1 : -1);
    i++;
  }
  cout << (r == 0 ? "Yes" : "No") << endl;
  return 0;
}
