Farmer Hank has fewer than 100 pigs on his farm. If he groups five to a pen, there are always three pigs left over. If he groups the pigs seven to a pen, there is always one left over. However, if he groups the pigs three to a pen, there no pigs left. What is the greatest number of pigs that Farmer Hank could have on his farm?