 The music and lyrics for the theme song, "The Ballad of Gilligan’s Isle", were written by Sherwood Schwartz and George Wyle.One version was used for the first season and another for the second and third seasons.In the original song, the Professor and Mary Ann, originally considered "second-billed co-stars", were referred to as "the rest", but with the growing popularity of those characters, their names were inserted into the lyrics in the second season.