Chains are normally supplied longer than needed, so the can be shortened to the correct length.
Have a look a the Park Tools site
http://www.parktool.com/blog/repair-...-length-sizing for how to.
When the chain is the correct length, all gears should be usable.