using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static int[] NList => ReadLine().Split().Select(int.Parse).ToArray(); public static void Main() { Solve(); } static void Solve() { var s = ReadLine(); var count = new int[13]; foreach (var ci in s) ++count[ci - 'a']; var three = count.Count(ci => ci > 2); var two = count.Count(ci => ci == 2); if (three > 0 || two >= 2) WriteLine("Impossible"); else if (two == 0) WriteLine("a\nb\nc\nd\ne\nf\ng\nh\ni\nj\nk\nl\nm"); else { for (var i = 0; i < 13; ++i) if (count[i] == 0) WriteLine((char)(i + 'a')); } } }