

_lowerCamelCase							=[chr(i) for i in range(32, 1_26)]
_lowerCamelCase							=list(range(len(alphabets)))
_lowerCamelCase							=list(range(len(alphabets)))
_lowerCamelCase							=list(range(len(alphabets)))
_lowerCamelCase							=list(reversed(range(len(alphabets))))
_lowerCamelCase							=[]
_lowerCamelCase							=_lowerCamelCase							=_lowerCamelCase							=0







def      snake_case__							(  ):





     """simple docstring"""







     global gear_one_pos
     global gear_two_pos
     global gear_three_pos
     SCREAMING_SNAKE_CASE 		=gear_one[0]
     gear_one.append(lowerCAmelCase_     )
     del gear_one[0]
     gear_one_pos += 1
     if gear_one_pos % int(len(lowerCAmelCase_     )     ) == 0:
          SCREAMING_SNAKE_CASE 		=gear_two[0]
          gear_two.append(lowerCAmelCase_     )
          del gear_two[0]
          gear_two_pos += 1
          if gear_two_pos % int(len(lowerCAmelCase_     )     ) == 0:
               SCREAMING_SNAKE_CASE 		=gear_three[0]
               gear_three.append(lowerCAmelCase_     )
               del gear_three[0]
               gear_three_pos += 1







def      snake_case__							(  lowerCAmelCase_     ):





     """simple docstring"""







     SCREAMING_SNAKE_CASE 		=alphabets.index(lowerCAmelCase_     )
     SCREAMING_SNAKE_CASE 		=gear_one[target]
     SCREAMING_SNAKE_CASE 		=gear_two[target]
     SCREAMING_SNAKE_CASE 		=gear_three[target]
     SCREAMING_SNAKE_CASE 		=reflector[target]
     SCREAMING_SNAKE_CASE 		=gear_three.index(lowerCAmelCase_     )
     SCREAMING_SNAKE_CASE 		=gear_two.index(lowerCAmelCase_     )
     SCREAMING_SNAKE_CASE 		=gear_one.index(lowerCAmelCase_     )
     code.append(alphabets[target]     )
     rotator()


if __name__ == "__main__":
 _lowerCamelCase							=list(input("Type your message:\n"))
 while True:
  try:
   _lowerCamelCase							=int(input("Please set token:(must be only digits)\n"))
   break
  except Exception as error:
   print(error)
 for _ in range(token):
  rotator()
 for j in decode:
  engine(j)
 print("\n" + "".join(code))
 print(
     f'\nYour Token is {token} please write it down.\nIf you want to decode '
     "this message again you should input same digits as token!"
 )




import os







def      snake_case__							(  ):





     """simple docstring"""







     SCREAMING_SNAKE_CASE 		=os.path.dirname(os.path.realpath(lowerCAmelCase_     )     )
     SCREAMING_SNAKE_CASE 		=os.path.join(lowerCAmelCase_,       'triangle.txt'     )

     with open(lowerCAmelCase_     ) as f:
          SCREAMING_SNAKE_CASE 		=f.readlines()

     SCREAMING_SNAKE_CASE 		=[[int(lowerCAmelCase_     ) for y in x.rstrip('\r\n'     ).split(' '     )] for x in triangle]

     for i in range(1,       len(lowerCAmelCase_     )     ):
          for j in range(len(a[i]     )     ):
               SCREAMING_SNAKE_CASE 		=a[i - 1][j] if j != len(a[i - 1]     ) else 0
               SCREAMING_SNAKE_CASE 		=a[i - 1][j - 1] if j > 0 else 0
               a[i][j] += max(lowerCAmelCase_,       lowerCAmelCase_     )
     return max(a[-1]     )


if __name__ == "__main__":
 print(solution())

