before = %w(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z)
after  = %w(D E F G H I J K L M N O P Q R S T U V W X Y Z A B C)

fukugo = {}
0.upto(before.length-1) do |i|
  fukugo[after[i]] = before[i]
end

s = gets.chomp.chars.to_a
ans = (s.map {|ch| fukugo[ch]}).join("")
puts ans