# frozen_string_literal: true puts [('a'..'z').to_a, gets.chomp.chars].transpose.find { _1 != _2 }.then { "#{_1}to#{_2}" }