T = 'abcdefghijklmnopqrstuvwxyz' S = gets.chomp S.size.times do |i| next if S[i] == T[i] puts "#{T[i]}to#{S[i]}" end