#K84952. Captain Blackbeard's Pirate Encryption

    ID: 36533 Type: Default 1000ms 256MiB

Captain Blackbeard's Pirate Encryption

Captain Blackbeard's Pirate Encryption

You are tasked with implementing Captain Blackbeard's encryption scheme. In this scheme, every letter in the message is replaced by the next letter in the alphabet. The transformation wraps around such that 'z' becomes 'a' and 'Z' becomes 'A'. All non-letter characters (digits, spaces, punctuation, etc.) remain unchanged.

Note: The encryption follows the formula:

\( f(c) = \begin{cases} a, & \text{if } c = z \\ A, & \text{if } c = Z \\ \text{chr}(\text{ord}(c) + 1), & \text{if } c \text{ is an alphabet letter not at the end} \\ c, & \text{otherwise} \end{cases} \)

Ensure that your solution reads from the standard input (stdin) and writes to standard output (stdout).

inputFormat

The input consists of a single line containing the message string that needs to be encrypted. The message may contain letters, digits, and special characters.

outputFormat

Output a single line containing the encrypted message according to Captain Blackbeard's scheme.## sample

attack@dawn123
buubdl@ebxo123