

import math
def 	a (     )       -> None:





      """simple docstring"""



      _lowercase      			=input('Enter message: '	)
      _lowercase      			=int(input(F'''Enter key [2-{len(A__	) - 1}]: '''	)	)
      _lowercase      			=input('Encryption/Decryption [e/d]: '	)

      if mode.lower().startswith('e'	):
            _lowercase      			=encrypt_message(A__ ,  A__	)
      elif mode.lower().startswith('d'	):
            _lowercase      			=decrypt_message(A__ ,  A__	)

      # Append pipe symbol (vertical bar) to identify spaces at the end.
      print(F'''Output:\n{text + "|"}'''	)
def 	a (     A__      :  int ,  A__      :  str	)       -> str:





      """simple docstring"""



      _lowercase      			=[''] * key
      for col in range(A__	):
            _lowercase      			=col
            while pointer < len(A__	):
                  cipher_text[col] += message[pointer]
                  pointer += key
      return "".join(A__	)
def 	a (     A__      :  int ,  A__      :  str	)       -> str:





      """simple docstring"""



      _lowercase      			=math.ceil(len(A__	) / key	)
      _lowercase      			=key
      _lowercase      			=(num_cols * num_rows) - len(A__	)
      _lowercase      			=[''] * num_cols
      _lowercase      			=0
      _lowercase      			=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)
            ):
                  _lowercase      			=0
                  row += 1

      return "".join(A__	)


if __name__ == "__main__":
  import doctest

  doctest.testmod()
  main()





def 	a (     A__      :  int	)       -> bool:





      """simple docstring"""



      return sum(i for i in range(1 ,  number // 2 + 1	) if number % i == 0	) == number


if __name__ == "__main__":
  print('Program to check whether a number is a Perfect number or not...')
  lowercase_   							=  int(input('Enter number: ').strip())
  print(f"{number} is {'' if perfect(number) else 'not '}a Perfect Number.")


