using System; using System.Linq; public class Program { public static void Main(string[] args) { var result = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int perfect = result[0]; int great = result[1]; int good = result[2]; int miss = result[3]; var score = 0; if (miss >= 10) { Console.WriteLine("Impossible"); return; } for (int i = 1; i <= great; i++) { if (1 <= i && i <= 100) score += 50; else if (101 <= i && i <= 200) score += 100; else if (201 <= i && i <= 300) score += 200; else if (301 <= i && i <= 400) score += 400; } for (int i = 1; i <= perfect; i++) { if (1 <= i && i <= 100) score += 100; else if (101 <= i && i <= 200) score += 200; else if (201 <= i && i <= 300) score += 400; else if (301 <= i && i <= 400) score += 800; } Console.WriteLine("Possible\n{0}",score); } }