Module: (Python) Processing data in a loop. Anchoring


Problem

10 /13


Two identical numbers side by side

Problem

Write a program that determines if a given number contains two identical digits side by side (such as 221).


Input
The program receives as input one natural number N (N > 9).


Imprint
The program should output the word 'YES' if the number has two identical digits side by side, and the word 'NO' , if there is no such pair of digits.

 
Examples
# Input Output
1 1221 YES
2 123 NO