#K77697. Decrypt the Encrypted Message
Decrypt the Encrypted Message
Decrypt the Encrypted Message
You are given an encrypted message consisting of lowercase English letters and an integer shift value. The encryption was done by shifting each letter forward in the alphabet by a fixed number of positions. Your task is to decrypt the message by shifting each letter backward by the given number of positions.
Note:
- The length of the encrypted message satisfies \(1 \leq \text{length} \leq 100\).
- The shift value satisfies \(1 \leq s \leq 25\).
For example, if the encrypted message is khoor
and the shift is 3
, the decrypted message is hello
.
inputFormat
The input is given in two lines:
- The first line contains the encrypted message, which is a string of lowercase English letters.
- The second line contains an integer representing the shift value.
outputFormat
Output the decrypted message as a string on a single line.
## samplekhoor
3
hello