SDE Path

Caesar Shift a Word

Easy

Caesar Shift a Word

Shift each letter of a word forward by K places in the alphabet.

Input format

A single line with a lowercase word S and an integer K (0 to 25), separated by a space.

Output format

Print S with each letter shifted forward by K positions in the alphabet, wrapping from z back to a.

Constraints

  • Values fit in a 64-bit signed integer
  • Trailing whitespace and a trailing newline are ignored by the judge

Read from stdin, write to stdout. Sample cases below show the exact format.

Sample cases

Example 1
Input
abc 3
Expected output
def
Example 2
Input
xyz 2
Expected output
zab