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