#K60897. Check Repeating Characters in a String

    ID: 31188 Type: Default 1000ms 256MiB

Check Repeating Characters in a String

Check Repeating Characters in a String

You are given a string s consisting only of lowercase English letters. Your task is to determine whether any character in the string appears more than once.

If at least one character repeats, the answer is Yes; otherwise, the answer is No.

Note: The input will be read from standard input and the output should be written to standard output.

Constraint: Let \( n \) be the length of the string. The solution must run in \( O(n) \) time.

inputFormat

The input consists of a single line containing the string s (only lowercase English letters).

outputFormat

Output a single line: Yes if the string contains any repeating characters, otherwise No.

## sample
hello
Yes