func_code_string: #include <bits/stdc++.h>   using namespace std;   const long long N = 100005;   string A;   void solve() {     long long n, mi = 0, pl = 0;     cin >> A;     A =  +  + A;     n = A.size() - 1;     stack<char> s;     for (__typeof((n)) i = (1); i <= (n); i++) {       if (s.empty())         s.push(A[i]);       else if (s.top() == A[i])         s.pop();       else         s.push(A[i]);     }     if (s.empty())       cout <<  Yes  <<   n ;     else       cout <<  No  <<   n ;   }   signed main() {     long long t;     ios_base::sync_with_stdio(false);     t = 1;     while (t--) solve();     return 0;   }   