#!/bin/bash

if [ $# -ne 1 ]
then
  echo "Usage: $0 file"
  exit 1
fi

rm -f /tmp/tmp$$.txt
for i in `cat $1`
do
  echo $i | wc -c >> /tmp/tmp$$.txt
done

echo `sort -r -n tmp.txt | head -n 1`
echo `wc -l $1`

rm -f /tmp/tmp$$.txt

exit 0
