character(10**5) S
character LastS
integer K
read*,S
read*,K

do i=1,len_trim(S)-1
  if(S(i:i)/="a".and.ichar("z")+1-ichar(S(i:i))<=K)then
    K=K-(ichar("z")+1-ichar(S(i:i)))
    S(i:i)="a"
  endif
end do
LastS=S(len_trim(S):len_trim(S))
S(len_trim(S):len_trim(S))=char(ichar("a")+mod(ichar(LastS)-ichar("a")+K,26) )

print"(A)",trim(S)
end