! 2019.11.24
!
      program answer
      implicit none
      character(len=10000) :: S
      character(len=10000) :: res
      integer :: N
      integer :: i
      character,external :: ch
      intrinsic len_trim
!
      read(*,*) N
      read(*,*) S
!
      do i=1,len_trim(S)
        res(i:i) = ch(S(i:i),N)
      end do
      write(*,*) res(1:len_trim(S))
      end program answer
!
      function ch(S,N) result(res)
      implicit none
      integer :: N
      integer :: S_N
      character(len=1) :: S
      character(len=1) :: res
      intrinsic mod
!
      res = '1'
      select case(S)
        case('A')
          S_N = 0
        case('B')
          S_N = 1
        case('C')
          S_N = 2
        case('D')
          S_N = 3
        case('E')
          S_N = 4
        case('F')
          S_N = 5
        case('G')
          S_N = 6
        case('H')
          S_N = 7
        case('I')
          S_N = 8
        case('J')
          S_N = 9
        case('K')
          S_N = 10
        case('L')
          S_N = 11
        case('M')
          S_N = 12
        case('N')
          S_N = 13
        case('O')
          S_N = 14
        case('P')
          S_N = 15
        case('Q')
          S_N = 16
        case('R')
          S_N = 17
        case('S')
          S_N = 18
        case('T')
          S_N = 19
        case('U')
          S_N = 20
        case('V')
          S_N = 21
        case('W')
          S_N = 22
        case('X')
          S_N = 23
        case('Y')
          S_N = 24
        case('Z')
          S_N = 25
      end select
!
      S_N = mod(S_N+N,26)
!
      select case (S_N)
        case(0)
          res = 'A'
        case(1)
          res = 'B'
        case(2)
          res = 'C'
        case(3)
          res = 'D'
        case(4)
          res = 'E'
        case(5)
          res = 'F'
        case(6)
          res = 'G'
        case(7)
          res = 'H'
        case(8)
          res = 'I'
        case(9)
          res = 'J'
        case(10)
          res = 'K'
        case(11)
          res = 'L'
        case(12)
          res = 'M'
        case(13)
          res = 'N'
        case(14)
          res = 'O'
        case(15)
          res = 'P'
        case(16)
          res = 'Q'
        case(17)
          res = 'R'
        case(18)
          res = 'S'
        case(19)
          res = 'T'
        case(20)
          res = 'U'
        case(21)
          res = 'V'
        case(22)
          res = 'W'
        case(23)
          res = 'X'
        case(24)
          res = 'Y'
        case(25)
          res = 'Z'
      end select
      end function ch