#C3058. Taco Encryption

    ID: 46443 Type: Default 1000ms 256MiB

Taco Encryption

Taco Encryption

Given a string s consisting of lowercase English letters and an integer k, encrypt the string by shifting each letter by k positions in the alphabet. The shift wraps around so that after 'z', the sequence continues from 'a'.

The transformation for each character c is defined by the formula:

\( new\_char = ((c - 'a' + k) \mod 26) + 'a' \)

You are required to implement this encryption process. The input will be provided via standard input and the encrypted string should be printed to standard output.

inputFormat

The input consists of two lines:

  • The first line contains the string s (only lowercase English letters).
  • The second line contains the integer k indicating the shift value.

outputFormat

Output the encrypted string.

## sample
abc
3
def