Problem #PRU-98581

Problems Algebra Arithmetics. Mental maths Set theory and logic Mathematical logic Mathematical logic (other)

Problem

Janine and Zahara each thought of a natural number and said them to Alex. Alex wrote the sum of the thought of numbers onto one sheet of paper, and on the other – their product, after which one of the sheets was hidden, and the other (on it was written the number of 2002) was shown to Janine and Zahara. Seeing this number, Janine said that she did not know what number Zahara had thought of. Hearing this, Zahara said that she did not know what number Janine had thought of. What was the number which Zahara had thought of?