Scanf.(scanf " %d %d" @@ fun h w -> print_endline @@ if Array.(fold_left (+) 0 @@ init (h * w) @@ fun _ -> scanf " %c" @@ fun a -> if a = '#' then 1 else 0) = h + w - 1 then "Possible" else "Impossible")