Multistage ion acceleration in finite overdense target with a relativistic laser pulse