#include <bits/stdc++.h>
using namespace std;

int main() {
  string s;
  cin >> s;
  int n=0,m=0;
  for (int i=0;i<size.at(s);i++){
      if(s[i]!=s[i+1]){
          n++;
      }
  }
  cout << m << endl;
  }
