The program should read a three-digit integer from the console. It should output YES if all the digits of are distinct, and NO if any digits are repeated.
A three-digit integer .
The answer to the problem: YES if all digits of number are distinct, and NO otherwise.
Example 1
Example 2