Input (grade 7): It was composed by Ryan Tedder, Evan Bogart and Knowles for her third studio album, I Am... Sasha Fierce.
Output (grade 7): It was written by Ryan Tedder, Evan Bogart and Knowles for her third studio album, I Am... Sasha Fierce.