Sasha and Masha each thought of a natural number and told them to Vasya. Vasya wrote the sum of the guessed numbers on one piece of paper and their product on another. He then hid one of the papers and showed the other (which had the number 2002 written on it) to Sasha and Masha. Upon seeing this number, Sasha said she did not know what number Masha had guessed. Hearing this, Masha said she did not know what number Sasha had guessed. What number did Masha guess?