#include using namespace std; typedef int64_t lint; int main() { string s; cin>>s; map mp; for(lint i=0;i!=s.size();i++){ mp[s[i]]++; } mp['e']/=2; cout<