#C14474. First Non-Repeating Character

    ID: 44127 Type: Default 1000ms 256MiB

First Non-Repeating Character

First Non-Repeating Character

Given a string s, your task is to find the first non-repeating character in the string.

If the string is empty, output The string is empty. If every character repeats, output All characters repeat.

Note: You should read the string from standard input and write the result to standard output.

For example:

  • Input: a, Output: a
  • Input: aabbcc, Output: All characters repeat
  • Input: (empty string), Output: The string is empty

inputFormat

A single line containing the input string. The string can include any character. Note that the input is read from standard input.

outputFormat

Output a single line containing the first non-repeating character. If the string is empty, output "The string is empty". If all characters repeat, output "All characters repeat".## sample

a
a