A simple yet unknown mathematical method was used to encrypt texts made up of only lower-case letters, upper-case letters, spaces and punctuation characters. For every such text , denote by the result of encrypting with . It is known that for two texts , .
Write a program to decrypt a text that was encrypted with . Deduce from the sample input and the sample output below.
Input consists of one text encrypted with , that is, . It has at most 1000 lines, each one with at most 1000 characters.
Print the text such that, once encrypted, produced , that is, the original text .
Author: Salvador Roura
Generation: 2026-01-25T11:37:43.137Z
© Jutge.org, 2006–2026.
https://jutge.org