Text decryption

A simple yet unknown mathematical method XX was used to encrypt texts made up of only lower-case letters, upper-case letters, spaces and punctuation characters. For every such text tt, denote by X(t)X(t) the result of encrypting tt with XX. It is known that for two texts t1t2t_1 \neq t_2, X(t1)X(t2)X(t_1) \neq X(t_2).

Write a program to decrypt a text that was encrypted with XX. Deduce XX from the sample input and the sample output below.

Input

Input consists of one text encrypted with XX, that is, X(t)X(t). It has at most 1000 lines, each one with at most 1000 characters.

Output

Print the text such that, once encrypted, produced X(t)X(t), that is, the original text tt.

Problem information

Author: Salvador Roura

Generation: 2026-01-25T11:37:43.137Z

© Jutge.org, 2006–2026.
https://jutge.org