func_code_string: #include <bits/stdc++.h>   using namespace std;   bool good() {     string input;     cin >> input;     stack<int> pm;     for (int i = 0; i < input.length(); i++)       if (pm.empty() || input[i] != pm.top())         pm.push(input[i]);       else         pm.pop();     return pm.empty();   }   int main() {     cout << (good() ?  Yes  :  No ) << endl;     return 0;   }   