#include <stdio.h>
#include <strings.h>

#define MAXLEN 60

void main (void) {
   char word[MAXLEN], longword[MAXLEN];
   int wordlen;
   int longest = 0;
   int ch;
   int result = 0;

   while ((result = scanf ("%s",word)) != EOF) {
      if (strlen(word) > longest) {
	 longest = strlen(word);
	 strcpy (longword, word);
	 }
      }

   /* Reached end of file.  Print the answer. */
   printf ("The longest word was \"%s\", which was %d characters long.\n",
	   longword, longest);
   }
