input_array = gets.split print input_array for input in input_array if input == 'Z' input = 'A' else input.succ end print input end