1. In the first two years apply for advance parole -reentry permit.
2. After that, apply for N-470 - Application to Preserve Residence for Naturalization Purposes
Or you can apply N-470 from the first beginning.But it's hard to apply. usually it's easy for big companies who has employee work aboard.