Question: "State of Grace" and "I knew You Were Trouble" were both off of Taylor Swift's "Red" album, which song was written by Swift, Max Martin and Shellback?
Related documents: [0]  [DOC] "I Knew You Were Trouble" is a song recorded by American singer-songwriter Taylor Swift for her fourth studio album, "Red" (2012). It was released on October 9, 2012, in the United States by Big Machine Records as the third promotional single from the album. Later, "I Knew You Were Trouble" was released as the third single from "Red" on November 27, 2012, in the United States. It was written by Swift, Max Martin and Shellback, with the production handled by the latter two. [END] 
[1]  [DOC] "State of Grace" is a song by American singer-songwriter Taylor Swift from her fourth studio album "Red" (2012). It was released to the iTunes Store on October 16, 2012, in the United States by Big Machine Records as the fourth and final promotional single from the album. It was the only promotional single from the album that was not re-issued as an official single, as "Begin Again", "Red", and "I Knew You Were Trouble", were all later re-issued as official singles. The song was written by Swift and produced by Nathan Chapman and Swift. Musically, the song is a departure from Swift's typical country pop, using influences of alternative rock while being compared to bands such as U2, Muse and The Cranberries. The song has received immense praise from music critics, who have complimented its broader sound in comparison with Swift's previous material. [END] 
Answer: 
I Knew You Were Trouble
I Knew You Were Trouble