Jack says to Jill, "If you give me all your marbles I'll still have a square number." Jill replies, "Or, if you gave me the number in my collection you would still be left left with an even square."

What is the fewest number of marbles Jack could have?