Write a program that prints 1 if the given statement is true and 0 otherwise.
all digits of the original four-digit number are distinct
input
the input is the number N (1000<=N<=9999)
output
1 - if all digits of the number are different
0 - otherwise