finding the greatest input among the three (help)