#CCC24J4. Troublesome Keys

Troublesome Keys

Alex’s keyboard has two troublesome keys:

  1. A silly key that always types the same wrong letter.
  2. 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:

  1. The sequence of keys pressed.
  2. 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
-