/*
 * Cesartall.java
 *
 * Created on 30 September 2004, 10:35
 */

import easyIO.*;

class Cesartall
{
    public static void main(String[] args) {
       In tast =  new In();
       Out print = new Out();
       
       String tekst = tast.inWord("\n");
       int tall = tast.inInt();
       for(int i = 0; i < tekst.length(); i++) {
           int ting = tekst.charAt(i)+tall;
           print.out((char)ting);
       }
    }
}