#include #include int main(void) { int i=0; int o=0; int k=0; int d=0; int g; int f; int ip=0; int w=0; char s[1000000]; scanf("%s",s); d=strlen(s); for(i;i0&&k>0&&o>0){ w++; } f--; k--; o--; } printf("%d",w); return 0; }