e-olymp
Competitions

Programming Principles 1. Week 2. September 9 - 15. PART 2

At least two equal digits

Five-digit number is given. Determine whether the number contains at least two identical digits.

Input

One five-digit number.

Output

Print "YES" if the number has at least two identical digits. Print "NO" otherwise.

Time limit 1 second
Memory limit 128 MiB
Input example #1
12345
Output example #1
NO
Input example #2
63456
Output example #2
YES