Chichikov plays with Nozdryov. Initially, Nozdryov distributes 1001 nuts into three boxes. After looking at the arrangement, Chichikov names any integer from 1 to 1001. Then Nozdryov must, if necessary, transfer one or more nuts to an empty fourth box and present Chichikov with one or more boxes containing exactly nuts in total. As a result, Chichikov will receive as many dead souls as the number of nuts Nozdryov transferred. What is the maximum number of souls Chichikov can guarantee for himself, regardless of Nozdryov's actions?