#include<stdio.h>
main(){
int c,p=0,r=0,n=0,rn=0;
while(EOF
!=(c
=getchar()))switch(c
){ case 13:++p,++r;break;
case 10:1==p?(--r,++rn):++n;
default:p=0;
}
return printf("cr=%d\nlf=%d\ncr+lf=%d\n",r
,n
,rn
),0; }
I2luY2x1ZGU8c3RkaW8uaD4KbWFpbigpewoJaW50IGMscD0wLHI9MCxuPTAscm49MDsKCXdoaWxlKEVPRiE9KGM9Z2V0Y2hhcigpKSlzd2l0Y2goYyl7CgkJY2FzZSAxMzorK3AsKytyO2JyZWFrOwoJCWNhc2UgMTA6MT09cD8oLS1yLCsrcm4pOisrbjsKCQlkZWZhdWx0OnA9MDsKCX0KCXJldHVybiBwcmludGYoImNyPSVkXG5sZj0lZFxuY3IrbGY9JWRcbiIscixuLHJuKSwwOwp9