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 c = NList; var (n, m) = (c[0], c[1]); if (n == 1) { WriteLine(m == 1 ? "Possible" : "Impossible"); return; } if (n == 3 || m == 3) { WriteLine("Possible"); return; } var set = new HashSet() { 1 }; for (var i = 2; i <= n; ++i) { var nset = new HashSet(); foreach (var si in set) { nset.Add(si + i); nset.Add(si - i); } set = nset; } var dpp1 = new bool[n + 3]; var offset = 1; for (var i = 0; i < dpp1.Length; ++i) if (set.Contains(i - offset)) { dpp1[i] = true; if (i - 1 >= 0) dpp1[i - 1] = true; } set = new HashSet() { -1 }; for (var i = 2; i <= n; ++i) { var nset = new HashSet(); foreach (var si in set) { nset.Add(si + i); nset.Add(si - i); } set = nset; } var dpp2 = new bool[n + 3]; for (var i = 0; i < dpp2.Length; ++i) if (set.Contains(i - offset)) { dpp2[i] = true; if (i + 1 < dpp2.Length) dpp2[i + 1] = true; } WriteLine(dpp1[m + offset] || dpp2[m + offset] ? "Possible" : "Impossible"); } }