#include using namespace std; using ll = long long; #define rep2(i, m, n) for(int i=int(m); i= MOD) x -= MOD; return *this; } mint& operator-=(const mint a) { if ((x -= a.x) < 0) x += MOD; return *this; } mint operator+(const mint a) const { return mint(*this) += a; } mint operator-(const mint a) const { return mint(*this) -= a; } }; ostream& operator<<(ostream& os, const mint& a) { return os << a.x; } int main() { const int M = 26; string s; cin >> s; int n = s.size(); int N = 1<>i&1) t.push_back(s[i]); rep(i, t.size()-1) ans += (t[i] != t[i+1]); ans += 1; } cout << ans << "\n"; return 0; }