It was the last song recorded by all four of the Beatles , and is the final song of the medley that dominates side two of the LP version of the album . It was the last song recorded collectively by all four of the Beatles , and is the final song of the medley that dominates side two of the LP version of the album .