#K52072. Mystic Eye Symmetry

    ID: 29228 Type: Default 1000ms 256MiB

Mystic Eye Symmetry

Mystic Eye Symmetry

You are given a string s containing arbitrary characters. Your task is to extract all occurrences of a specific set of characters: \(\{8, 9, T, H, X, Y\}\) from s in the order they appear. Then, print a symmetric pattern by concatenating the filtered characters, a fixed separator '--o--', and the reverse of the filtered characters.

If there are no valid characters from the set in the input, the output should be exactly '--o--'.

Example:
For input 8YX9HT, the filtered characters are 8YX9HT and its reverse is TH9XY8, so the final output is 8YX9HT'--o--'TH9XY8.

inputFormat

The input consists of a single line containing a string s which may include letters, digits, and other characters.

You should read from standard input (stdin).

outputFormat

Output the resulting symmetric pattern as described in the problem statement to standard output (stdout).

## sample
8YX9HT
8YX9HT'--o--'TH9XY8