#include #include using namespace std; int main(){int i,j;string s;while(getline(cin,s)){for(i=0;i<(j=s.size())&&s[i]==s[0];++i);cout<