The song was written by Pink with Tre ' Shon Jenkins , Max Martin and Shellback . They also produced the song . The song was written by Pink with Tre ' Shon Jenkins , Max Martin and Shellback , who also produced the song .