A simple Puzzle

CA CS CIMA Prakash Somani (Landmark Group) (23502 Points)

02 September 2008  
A man wanted to go heaven , after few days he died . He entered the entrance
there he had three doors .

if he enters first door he must be in hell for one day then he back to entrance.
in the second door he has to be in hell for two day again he back .

third door is the way to heaven . initilaly he doesn't know anything .
when he get back the doors are getting shuffled . how many days he spent
to enter the heaven .

find it .......