


from __future__ import annotations




def    a__    (		snake_case__					:							int = 4     ):
  _UpperCAmelCase		:							Union[str, Any]							=     abs(snake_case__     ) or 4
  return [[1 + x + y * row_size for x in range(snake_case__     )] for y in range(snake_case__     )]




def    a__    (		snake_case__					:							list[list[int]]     ):
  return reverse_row(transpose(snake_case__     )     )
  # OR.. transpose(reverse_column(matrix))




def    a__    (		snake_case__					:							list[list[int]]     ):
  return reverse_row(reverse_column(snake_case__     )     )
  # OR.. reverse_column(reverse_row(matrix))




def    a__    (		snake_case__					:							list[list[int]]     ):
  return reverse_column(transpose(snake_case__     )     )
  # OR.. transpose(reverse_row(matrix))




def    a__    (		snake_case__					:							list[list[int]]     ):
  _UpperCAmelCase		:							int							=     [list(snake_case__     ) for x in zip(*snake_case__     )]
  return matrix




def    a__    (		snake_case__					:							list[list[int]]     ):
  _UpperCAmelCase		:							int							=     matrix[::-1]
  return matrix




def    a__    (		snake_case__					:							list[list[int]]     ):
  _UpperCAmelCase		:							List[str]							=     [x[::-1] for x in matrix]
  return matrix




def    a__    (		snake_case__					:							list[list[int]]     ):
  for i in matrix:
    print(*snake_case__     )


if __name__ == "__main__":
 SCREAMING_SNAKE_CASE__					:     List[Any]       =     make_matrix()
 print('\norigin:\n')
 print_matrix(matrix)
 print('\nrotate 90 counterclockwise:\n')
 print_matrix(rotate_aa(matrix))

 SCREAMING_SNAKE_CASE__					:     Any       =     make_matrix()
 print('\norigin:\n')
 print_matrix(matrix)
 print('\nrotate 180:\n')
 print_matrix(rotate_aaa(matrix))

 SCREAMING_SNAKE_CASE__					:     str       =     make_matrix()
 print('\norigin:\n')
 print_matrix(matrix)
 print('\nrotate 270 counterclockwise:\n')
 print_matrix(rotate_aaa(matrix))









def    a__    (		snake_case__					:							int						,   snake_case__					:							int     ):
  return 1 if input_a == input_a else 0




def    a__    (		):
  assert xnor_gate(0						,   0     ) == 1
  assert xnor_gate(0						,   1     ) == 0
  assert xnor_gate(1						,   0     ) == 0
  assert xnor_gate(1						,   1     ) == 1


if __name__ == "__main__":
 print(xnor_gate(0, 0))
 print(xnor_gate(0, 1))
 print(xnor_gate(1, 0))
 print(xnor_gate(1, 1))





