One crate has oranges. Someone takes out half of all the
oranges plus one half of one orange. Later on, another person
takes out half of the remaining amount and one half of one
orange. Finally, someone takes half of the new remaining
amount and one half of one orange. After all this, 3 oranges
are left in the crate. How many oranges were in the crate at
the beginning?