#K39572. Unique Digits Check

    ID: 26450 Type: Default 1000ms 256MiB

Unique Digits Check

Unique Digits Check

Given a non-negative integer (N), determine whether all digits in (N) are unique. A digit is considered unique if it appears exactly once in the number. For example, if (N = 123456789), then the output should be Unique, but if (N = 112233), then the output should be Not Unique.

The input is read from standard input (stdin) and the result is printed to standard output (stdout).

inputFormat

The input consists of a single line containing a non-negative integer (N).

outputFormat

Output a single line: if all digits of (N) are unique, print Unique, otherwise print Not Unique.## sample

123456789
Unique