#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <ctype.h>

void main()
{
  char aux[256], *words[50], *pTmp;
  int c, i;
  
  // Lê string
  gets(aux);
  
  // Separa em palavras
  for(c = 0, words[c] = strtok(aux, " \t"); words[c]; 
      words[++c] = strtok(0, " \t"));
  
  // Exibe palavras
  printf("Palavras: %d", c);
  for(i = 0; i < c; i++)
    printf("\n%s", words[i]);
}