870 prisoners granted amnesty