public static void main ( String [ ] args ) {
  int H = ni ( ) ;
  int W = ni ( ) ;
  char [ ] [ ] A = new char [ H ] [ W ] ;
  for ( int i = 0 ;
  i < H ;
  i ++ ) {
    A [ i ] = sc . next ( ) . toCharArray ( ) ;
  }
  for ( int x1 = 0 ;
  x1 < H ;
  x1 ++ ) for ( int y1 = 0 ;
  y1 < W ;
  y1 ++ ) {
    for ( int x2 = 0 ;
    x2 < H ;
    x2 ++ ) for ( int y2 = 0 ;
    y2 < W ;
    y2 ++ ) {
      if ( x1 < x2 && y2 < y1 && A [ x1 ] [ y1 ] == '#' && A [ x2 ] [ y2 ] == '#' ) {
        System . out . println ( "Impossible" ) ;
        return ;
      }
    }
  }
  System . out . println ( "Possible" ) ;
}

public static void main ( String [ ] args ) { int H = ni ( ) ; int W = ni ( ) ; char [ ] [ ] A = new char [ H ] [ W ] ; for ( int i = 0 ; i < H ; i ++ ) { A [ i ] = sc . next ( ) . toCharArray ( ) ; } for ( int x1 = 0 ; x1 < H ; x1 ++ ) for ( int y1 = 0 ; y1 < W ; y1 ++ ) { for ( int x2 = 0 ; x2 < H ; x2 ++ ) for ( int y2 = 0 ; y2 < W ; y2 ++ ) { if ( x1 < x2 && y2 < y1 && A [ x1 ] [ y1 ] == ' # ' && A [ x2 ] [ y2 ] == ' # ' ) { System . out . println ( " Impossible " ) ; return ; } } } System . out . println ( " Possible " ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (identifier)) dimensions: (dimensions_expr (identifier))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list)))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier))) right: (binary_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (character_literal))) right: (binary_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (character_literal)))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (return_statement))))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))))