Are the digits the same?
Given an integer n
, we would like to know if all the digits of n
are equal to each other.
The input of the program contains a single integer n
.
The output of the program should be Yes
if the digits are the same, and No
otherwise.
Input | Output |
---|---|
4434444446 | No |
888888 | Yes |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB