#CCC24J4. Troublesome Keys
Troublesome Keys
Alex’s keyboard has two troublesome keys:
- A silly key that always types the same wrong letter.
- A quiet key that produces no output.
- Alex presses the silly key at least once.
- Alex may or may not press the quiet key.
- The two keys are never pressed consecutively.
You are given two lines:
- The sequence of keys pressed.
- The text shown on screen.
Output:
- Line 1: silly key and the letter it types (space-separated).
- Line 2: quiet key or
-
if none.
Sample Input
forloops
fxrlxxps
Sample Output
o x
-