Shekar wants to plant 45 corn plants, 81 tomato plants and 63 ginger plants. If he plants them in such a way that each row has the same number of plants and each row has only one type of plant, what is the greatest number of plants he can plant in a row?