The president who granted amnesty to those Confederates who took the oath of loyalty to the Union was:

Ulysses Grant
Andrew Johnson
Abraham Lincoln