Input: Junks have from _ to three masts or sails.
Output: 

two