← Problem book: Python Lesson 24 of 96 · 10 XP

All digits differ

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

You are given a three-digit number. Print YES if all three of its digits are different, otherwise NO.

Example

Input:

123

Output:

YES

Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.