S=gets h=(?a .. ?z).group_by{|c|S.count(c)} puts h[1]&.size == 1 && h[2]&.size == 6 ? h[1] : :Impossible