#include typedef long long ll; using namespace std; int INF = 1e9; int MOD = 1e9+7; char s[400]; main(){ int c = 0xe280a6; cin >> s; int cnt = 0,maxc = 0; for(int i = 0;s[i] != '\n' && s[i];i++){ if(s[i] == 0xe2 && s[i+1] == 0x80 && s[i+2]){ cnt++; maxc = max(maxc,cnt); }else cnt = 0; } cout << maxc << endl; }