@s=<>=~/./g;printf grep join('',sort@s,$_)=~/^((.)\2(?!\2)){7}$|I/,a..z,Impossible