Byang wants to write a secret message to his friend. He has recently discovered Caesar Cipher.
Caesar cipher is simple encryption techniques where each letter in the message is replaced by a letter some fixed number of positions down the alphabet.
For example, with a left shift of 2, C would be replaced by A, D would become B, and so on.
After applying Caesar cipher of left shift 2:
The first line of the input will contain one integer (), indicating the left shift of the cipher.
The second line will contain a message in all lower case alphabets and spaces. The message will contain at most 100 characters.
Print the message after applying the Ceaser cipher using the specified left shift.
2 hello world
Login to submit
We have to iterate over the given string and decrease the value of every character. But for some cas...