A factory produces 10,000 widgets a week. Each widget weighs 500 grams. If the factory needs to ship the widgets in boxes that can hold up to 20 kilograms each, how many boxes are needed to ship all the widgets produced in a week? Let's think step by step and output the final answer within \boxed{}.
user