import tables var S = initCountTable[char]() for s in stdin.readLine: S.inc s if S.largest.val == 2: let ss = S.smallest if ss.val == 1: echo ss.key quit() echo "Impossible"