import sequtils, strutils let s: string = stdin.readline var a: array[26, int] ans: string = "Impossible" for i in 0..