a = "abcdefghijklmnopqrstuvwxyz".split("") b = gets.split("") (0..25).each do |i| if a[i] != b[i] puts a[i] + "to" + b[i] end end