One day when Ram was walking on the street , one biy requested him to donate for cancer patients welfare fund. he gave him a rupee more than half of the money he had. He walked a few more steps. Then came a girl who requested him to donate for poor peoples's fund for which he gave two rupees more than half the money he had then. After that , again a boy approached him for an orphanage fund. He gave three rupees more than half of what he had. At last he had just one rupee remaining in his hand. How much amount did Ram have in his pocket when he started ?