





'''simple docstring'''

def 						__magic_name__       (							__UpperCAmelCase							,	__UpperCAmelCase							,	__UpperCAmelCase							,	__UpperCAmelCase							,	__UpperCAmelCase      )						->					int:

   '''simple docstring'''







   if index == number_of_items:
      return 0
   __SCREAMING_SNAKE_CASE      							=       0
   __SCREAMING_SNAKE_CASE      							=       0
   __SCREAMING_SNAKE_CASE      							=       knapsack(__UpperCAmelCase							,	__UpperCAmelCase							,	__UpperCAmelCase							,	__UpperCAmelCase							,	index + 1      )
   if weights[index] <= max_weight:
      __SCREAMING_SNAKE_CASE      							=       values[index] + knapsack(
          __UpperCAmelCase							,	__UpperCAmelCase							,	__UpperCAmelCase							,	max_weight - weights[index]							,	index + 1      )
   return max(__UpperCAmelCase							,	__UpperCAmelCase      )


if __name__ == "__main__":
    import doctest

    doctest.testmod()












'''simple docstring'''

def 						__magic_name__       (							__UpperCAmelCase      )						->					bool:

   '''simple docstring'''







   if num < 0:
      return False

   __SCREAMING_SNAKE_CASE      							=       num
   __SCREAMING_SNAKE_CASE      							=       0
   while num > 0:
      __SCREAMING_SNAKE_CASE      							=       rev_num * 10 + (num % 10)
      num //= 10

   return num_copy == rev_num


if __name__ == "__main__":
    import doctest

    doctest.testmod()





