#include int main(void){ int a=0,m=0; char c; for(;std::cin>>c;){ if(c=='o') a++; else m=a>m?a:m,a=0; } std::cout<<(m