a = "abcdefghijklm".split("") b = a - gets.split("") if(b[1]) puts "Impossible" exit end if(b[0]) puts b[0] exit end puts a