main(c,n){for(scanf("%d ",&n);c=getchar(),~c;putchar(isalpha(c)?c&96|(c%32+n-1)%26+1:693%c?c:c^30));}