print grep(++$$_>2,<>=~/./g)|(@b=grep$$_==1,a..z)>1?Impossible:@b