public static void main(String[] args) {

		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		String s = in.next();
		int c = in.nextInt();
		c = c%26;
		
		StringBuffer sb = new StringBuffer();
		
		for(int i=0; i < n; i++) {
			char t = s.charAt(i);
			if (t <= 'z' && t >= 'a') {
				if ((int)t + c <= (int)'z') {
					sb.append((char)((int)t + c));
				} else {
					sb.append((char)((int)t + c - (int)'z' + (int)'a' - 1));
				}
			} else if (t <= 'Z' && t >= 'A') {
				if ((int)t + c <= (int)'Z') {
					sb.append((char)((int)t + c));
				} else {
					sb.append((char)((int)t + c - (int)'Z' + (int)'A' - 1));
				}
			} else {
				sb.append(t);
			}
		}
		
		System.out.println(sb.toString());
	}