C = [0] * 256 gets.chop.chars { |c| C[c.ord] += 1 } puts C.count(1) == 1 && C.count(2) == 6 ? C.find_index(1).chr : :Impossible