def 	__A		(      _A				,					_A       ):



 """simple docstring"""


 __a							=	[[] for _ in range(_A       )]
 __a							=	key - 1

 if key <= 0:
  raise ValueError("Height of grid can't be 0 or negative"       )
 if key == 1 or len(_A       ) <= key:
  return input_string

 for position, character in enumerate(_A       ):
  __a							=	position % (lowest * 2)  # puts it in bounds
  __a							=	min(_A				,					lowest * 2 - num       )  # creates zigzag pattern
  temp_grid[num].append(_A       )
 __a							=	["".join(_A       ) for row in temp_grid]
 __a							=	"".join(_A       )

 return output_string



def 	__A		(      _A				,					_A       ):



 """simple docstring"""


 __a							=	[]
 __a							=	key - 1

 if key <= 0:
  raise ValueError("Height of grid can't be 0 or negative"       )
 if key == 1:
  return input_string

 __a							=	[[] for _ in range(_A       )]  # generates template
 for position in range(len(_A       )       ):
  __a							=	position % (lowest * 2)  # puts it in bounds
  __a							=	min(_A				,					lowest * 2 - num       )  # creates zigzag pattern
  temp_grid[num].append("*"       )

 __a							=	0
 for row in temp_grid:  # fills in the characters
  __a							=	input_string[counter : counter + len(_A       )]
  grid.append(list(_A       )       )
  counter += len(_A       )

 __a							=	""  # reads as zigzag
 for position in range(len(_A       )       ):
  __a							=	position % (lowest * 2)  # puts it in bounds
  __a							=	min(_A				,					lowest * 2 - num       )  # creates zigzag pattern
  output_string += grid[num][0]
  grid[num].pop(0       )
 return output_string



def 	__A		(      _A       ):



 """simple docstring"""


 __a							=	{}
 for key_guess in range(1				,					len(_A       )       ):  # tries every key
  __a							=	decrypt(_A				,					_A       )
 return results


if __name__ == "__main__":
  import doctest

  doctest.testmod()



from typing import Any



def 	__A		(      _A       ):



 """simple docstring"""


 if not input_list:
  return []
 __a							=	[input_list.count(_A       ) for value in input_list]
 __a							=	max(_A       )  # Gets the maximum count in the input list.
 # Gets values of modes
 return sorted({input_list[i] for i, value in enumerate(_A       ) if value == y}       )


if __name__ == "__main__":
  import doctest

  doctest.testmod()


