




"""simple docstring"""




import math



def     a__ (				)						->					None:
			lowerCamelCase			      =					input("""Enter message: """				)
			lowerCamelCase			      =					int(input(F'Enter key [2-{len(lowercase_				) - 1}]: '				)				)
			lowerCamelCase			      =					input("""Encryption/Decryption [e/d]: """				)

			if mode.lower().startswith("""e"""				):
						lowerCamelCase			      =					encrypt_message(lowercase_       , lowercase_				)
			elif mode.lower().startswith("""d"""				):
						lowerCamelCase			      =					decrypt_message(lowercase_       , lowercase_				)

			# Append pipe symbol (vertical bar) to identify spaces at the end.
			print(F'Output:\n{text + "|"}'				)



def     a__ (				snake_case__       , snake_case__				)						->					str:
			lowerCamelCase			      =					[""""""] * key
			for col in range(lowercase_				):
						lowerCamelCase			      =					col
						while pointer < len(lowercase_				):
									cipher_text[col] += message[pointer]
									pointer += key
			return "".join(lowercase_				)



def     a__ (				snake_case__       , snake_case__				)						->					str:
			lowerCamelCase			      =					math.ceil(len(lowercase_				) / key				)
			lowerCamelCase			      =					key
			lowerCamelCase			      =					(num_cols * num_rows) - len(lowercase_				)
			lowerCamelCase			      =					[""""""] * num_cols
			lowerCamelCase			      =					0
			lowerCamelCase			      =					0

			for symbol in message:
						plain_text[col] += symbol
						col += 1

						if (
						    (col == num_cols)
						    or (col == num_cols - 1)
						    and (row >= num_rows - num_shaded_boxes)
						):
									lowerCamelCase			      =					0
									row += 1

			return "".join(lowercase_				)


if __name__ == "__main__":
					import doctest

					doctest.testmod()
					main()






def 						UpperCamelCase					(lowercase_: int = 10					)     ->      str:
	if not isinstance(lowercase_    ,      lowercase_					) or n < 0:
		raise ValueError("""Invalid input"""					)
	A__							:    List[str]        =		10**n
	A__							:    Any        =		28433 * (pow(2    ,      7830457    ,      lowercase_					)) + 1
	return str(number % modulus					)


if __name__ == "__main__":
	from doctest import testmod

	testmod()
	print(f'''{solution(10) = }''')



