Equation#12344

Equation

2 seconds
256 megabytes
Medium

Given three strings , , and , composed of the first lowercase Latin letters a-j. You need to replace each Latin letter with a digit 0-9 such that:

Replace the letters accordingly and output these three strings with the replaced digits.

Input

The first line of the input data contains the string (1 \leq |a| \leq 8).

The second line of the input data contains the string (1 \leq |b| \leq 8).

The third line of the input data contains the string (1 \leq |a|, |b| \leq |c| \leq 8).

Note that for any string , denotes its length.

It is guaranteed that an answer exists.

Output

In a single line of output data, output the strings a, b, c after replacing letters with digits separated by spaces.

Examples

Example 1

Loading
Loading

Scoring

There will be tests (excluding examples) for the problem, each evaluated at points.