input = gets #input = "abcdefghijklmnopqrstuvwxyz" val = "abcdefghijklmnopqrstuvwxyz".split("") a = input.split("") i = 0 val.each {|v| if (v != a[i]) then puts v + "to" + a[i] end i = i + 1 }