President grants amnesty to more than 3,000 prisoners