Question: Who wrote the Beatles song that was released on the B-side of the single featured on the film soundtrack of the same name in 1964?

full_context: Document 1: Things We Said Today: "Things We Said Today" is a song by English rock band the Beatles written by Paul McCartney and credited to Lennon–McCartney. It was composed for the film "A Hard Day's Night" but was eventually not included. It does appear on the soundtrack album. It was also released as the B-side of the single "A Hard Day's Night" in the UK.
Document 2: I Should Have Known Better: "I Should Have Known Better" is a song by English rock band the Beatles composed by John Lennon (credited to Lennon–McCartney), and originally issued on "A Hard Day's Night", their soundtrack for the film of the same name released July 10, 1964. "I Should Have Known Better" was issued as the B-side of the U.S. single "A Hard Day's Night" released July 13, 1964. An orchestrated version of the song conducted by George Martin appears on the North American version of the album, "A Hard Day's Night Original Motion Picture Soundtrack."
Document 3: Tomorrow Never Knows: "Tomorrow Never Knows" is a song by the English rock band the Beatles, released as the final track on their August 1966 album "Revolver". Credited as a Lennon–McCartney song, it was written primarily by John Lennon. The song has a vocal filtered through a Leslie speaker cabinet (which was normally used as a loudspeaker for a Hammond organ). Tape loops prepared by the Beatles were mixed in and out of the Indian-inspired modal backing underpinned by a constant but non-standard drum pattern. It marked the first recorded use of reversed sounds in a pop song. "Rain", which was released showcasing the technique three months earlier, was recorded after.
Document 4: Every Little Thing (Beatles song): "Every Little Thing" is a song by the English rock group the Beatles from their 1964 album "Beatles for Sale". Credited to Lennon–McCartney, it was written by Paul McCartney, although John Lennon is the more prominent lead vocalist on the recording. Rather than include the track on the North American version of "Beatles for Sale" (which was titled "Beatles '65"), Capitol Records first issued the song on the June 1965 release "Beatles VI". The track is an early example of the Beatles' use of non-rock instrumentation on a recording, through the addition of timpani drum over the choruses.
Document 5: Bad to Me: "Bad to Me" is a song credited to Lennon–McCartney. In late interviews, John Lennon said that he wrote it for Billy J. Kramer with The Dakotas while on holiday in Spain. However, in a 1964 interview he said that he and Paul McCartney wrote it in the back of a van, so Paul contributed to it. Billy J. Kramer with The Dakotas released their recording of the song in 1963 and it became their first number 1 in the UK Singles Chart. Paul McCartney was present during the recording session at Abbey Road Studios. The single would be released in the US the following year, and become a top-ten hit there, reaching number 9. It became one of the first occasions a Lennon–McCartney composition made the US Top 40 recorded by an artist other than the Beatles (the first being "A World Without Love" by Peter & Gordon; another being "Goodbye" by Mary Hopkin).
Document 6: Yesterday (Beatles song): "Yesterday" is a song by the English rock band the Beatles, written by Paul McCartney (credited to Lennon–McCartney), and first released on the album "Help!" in the United Kingdom in August 1965.
Document 7: Good Night (Beatles song): "Good Night" is a song by the Beatles, composed by John Lennon, but credited to Lennon-McCartney. It is sung by Ringo Starr, the only Beatle to appear on the track. The music was provided by an orchestra arranged and conducted by George Martin. It is the last song on the Beatles' 1968 album "The Beatles" (also known as the "White Album").
Document 8: Something (Beatles song): "Something" is a song by the Beatles, written by George Harrison and released on the band's 1969 album "Abbey Road". It was also issued as a single coupled with another track from the album, "Come Together". "Something" was the first Harrison composition to appear as a Beatles A-side, and the only song written by him to top the US charts before the band's break-up in April 1970. The single was also one of the first Beatles singles to contain tracks already available on an LP album.
Document 9: Hello, Goodbye: "Hello, Goodbye" is a song by the English rock band the Beatles, written by Paul McCartney and credited to Lennon–McCartney. Backed by John Lennon's "I Am the Walrus", it was issued as a non-album single in November 1967, the group's first release since the death of their manager, Brian Epstein. The single was commercially successful around the world, topping charts in the United States, the United Kingdom, Canada, Australia and several other countries.
Document 10: A Hard Day's Night (song): "A Hard Day's Night" is a song by the English rock band the Beatles. Credited to Lennon–McCartney, it was written by John Lennon, with some collaboration from Paul McCartney. It was released on the film soundtrack of the same name in 1964. It was also released in the UK as a single, with "Things We Said Today" as its B-side.
Document 11: A Hard Day's Night (film): A Hard Day's Night is a 1964 British musical comedy film directed by Richard Lester and starring the Beatles—John Lennon, Paul McCartney, George Harrison, and Ringo Starr—during the height of Beatlemania. It was written by Alun Owen and originally released by United Artists. The film portrays several days in the lives of the group.
Document 12: Help! (album): Help! is the fifth studio album by English rock band the Beatles, the soundtrack from their film "Help!", and released on 6 August 1965. Produced by George Martin, it was the fifth UK album release by the band, and contains fourteen songs in its original British form. Seven of these, including the singles "Help!" and "Ticket to Ride", appeared in the film and took up the first side of the vinyl album. The second side contained seven other releases including the most-covered song ever written, "Yesterday".
Document 13: A Day in the Life: "A Day in the Life" is a song by the English rock band the Beatles that was released as the final track of their 1967 album "Sgt. Pepper's Lonely Hearts Club Band". Credited to Lennon–McCartney, the verses were written mainly by John Lennon, with Paul McCartney primarily contributing the song's middle section. Lennon's lyrics were inspired by contemporary newspaper articles, including a report on the death of Guinness heir Tara Browne. The recording includes two passages of orchestral glissandos that were partly improvised in the avant-garde style. As with the sustained piano chord that closes the song, the orchestral passages were added after the Beatles had recorded the main rhythm track.
Document 14: A Hard Day's Night (album): A Hard Day's Night is the third studio album by the English rock band the Beatles, released on 10 July 1964, with side one containing songs from the soundtrack to their film "A Hard Day's Night". The American version of the album was released two weeks earlier, on 26 June 1964 by United Artists Records, with a different track listing. In contrast to their first two albums, all 13 tracks on "A Hard Day's Night" were written by John Lennon and Paul McCartney showcasing the development of their songwriting talents. The album includes the title track, with its distinct opening chord, and the previously released "Can't Buy Me Love", both transatlantic number-one singles for the band.
Document 15: Lennon–McCartney: Lennon–McCartney was the songwriting partnership between English musicians John Lennon (9 October 19408 December 1980) and Paul McCartney (born 18 June 1942) of the Beatles. It is one of the best known and most successful musical collaborations in history, with the Beatles selling over 600 million records, tapes and CDs as of 2004. Between 1962 and 1969, the partnership published approximately 180 jointly credited songs, of which the vast majority were recorded by the Beatles, forming the bulk of their catalogue.
ground_truth: Paul McCartney