def ascan; gets.split.map(&:to_i); end def scan; gets.to_i; end n,m = ascan if 6<=n puts "Possible" exit 0 end if n == 5 || n == 3 || n == 4 puts "Possible" elsif n == 2 || n == 1 if m != 0 puts "Possible" else puts "Impossible" end else abort end