while line = gets
  arr = line.chomp.split("").map(&:ord)
  offset = arr[0] - 116
  arr.each{|n|
    case n
    when 32
      print " "
    when 46
      print "."
    else
      print "#{(n-offset).chr}"
    end
  }
  puts
end