All positive divisors of a positive integer NN are written on a blackboard. Two players AA and BB play the following game taking alternate moves. In the first move, the player AA erases NN. If the last erased number is dd, then the next player erases either a divisor of dd or a multiple of dd. The player who cannot make a move loses. Determine all numbers NN for which AA can win independently of the moves of BB.