


'''simple docstring'''

import math
import random





def __snake_case					(      UpperCAmelCase_						:						float					,				UpperCAmelCase_						:						bool = False		):
 if deriv:
  return value * (1 - value)
 return 1 / (1 + math.exp(-value		))


# Initial Value
a_  :				Tuple						= 0.0_2





def __snake_case					(      UpperCAmelCase_						:						int					,				UpperCAmelCase_						:						int		):
 lowerCamelCase_      =  float(2 * (random.randint(1					,				100		)) - 1		)

 for _ in range(UpperCAmelCase_		):
  # Forward propagation
  lowerCamelCase_      =  sigmoid_function(INITIAL_VALUE * weight		)
  # How much did we miss?
  lowerCamelCase_      =  (expected / 100) - layer_a
  # Error delta
  lowerCamelCase_      =  layer_1_error * sigmoid_function(UpperCAmelCase_					,				UpperCAmelCase_		)
  # Update weight
  weight += INITIAL_VALUE * layer_1_delta

 return layer_a * 100


if __name__ == "__main__":
     import doctest

     doctest.testmod()

     a_  :				List[Any]						= int(input("""Expected value: """))
     a_  :				Tuple						= int(input("""Number of propagations: """))
     print(forward_propagation(expected, number_propagations))









_UpperCAmelCase		:  Tuple	=   {str(digit): digit**5 for digit in range(10)}



def 					UpperCAmelCase__     (   lowerCamelCase      ):
  return sum(DIGITS_FIFTH_POWER[digit] for digit in str(lowerCamelCase      )      )



def 					UpperCAmelCase__     (   ):
  return sum(
      number
      for number in range(1000,	1000000      )
      if number == digits_fifth_powers_sum(lowerCamelCase      )      )


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



