Given the task definition and input, reply with output. In this task, you are given a summary for US Congressional and California state bill, your task is to generate a Title for this bill. The preferred titles are under forty words and mention the purpose of the bill.

Maintaining dignity and Eliminating unnecessary Restrictive Confinement of Youths Act of 2017 or the MERCY Act This bill amends the federal criminal code to prohibit juvenile solitary confinement, except as a temporary response to behavior that poses a serious and immediate risk of harm.
Maintaining dignity and Eliminating unnecessary Restrictive Confinement of Youths Act of 2017