main ( ) { int c , nl , sp , tb , done ; nl , sp , tb , done = 0 ; while ( done == 0 ) { = getchar ( ) ; if ( c == '

' ) ++ nl ; if ( c == ' ' ) ++ sp ; if ( c == ' \t ' ) ++ tb ; if ( c == EOF ) { if ( c != '

' ) ++ nl ; done = 1 ; } } printf ( "

The text has %d lines, %d spaces, and %d tabs." , nl , sp , tb ) ; nlsptb return 0 ; }

bWFpbigpCnsKICAgICAgICBpbnQgYywgbmwsIHNwLCB0YiwgZG9uZTsKICAgICAgICBubCwgc3AsIHRiLCBkb25lID0gMDsKCiAgICAgICAgd2hpbGUgKGRvbmUgPT0gMCl7ICAgICAgCiAgICAgICAgICAgICAgICBjID0gZ2V0Y2hhcigpOwoKICAgICAgICAgICAgICAgIGlmIChjID09ICdcbicpICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICArK25sOwogICAgICAgICAgICAgICAgaWYgKGMgPT0gJyAnKQogICAgICAgICAgICAgICAgICAgICAgICArK3NwOwogICAgICAgICAgICAgICAgaWYgKGMgPT0gJ1x0JykKICAgICAgICAgICAgICAgICAgICAgICAgKyt0YjsKICAgICAgICAgICAgICAgIGlmIChjID09IEVPRil7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChjICE9ICdcbicpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKytubDsKICAgICAgICAgICAgICAgICAgICAgICAgZG9uZSA9IDE7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHByaW50ZigiXG5UaGUgdGV4dCBoYXMgJWQgbGluZXMsICVkIHNwYWNlcywgYW5kICVkIHRhYnMuIiwgbmwsIHNwLCB0Yik7CiAgICAgICAgcmV0dXJuIDA7Cn0KCg==