






import math
import random




def      lowercase__      (     __snake_case    :							float     ,       __snake_case    :							bool = False  ):


					'''simple docstring'''


					if deriv:
										return value * (1 - value)
					return 1 / (1 + math.exp(-value  ))


# Initial Value
__UpperCAmelCase								=						0.0_2




def      lowercase__      (     __snake_case    :							int     ,       __snake_case    :							int  ):


					'''simple docstring'''


					UpperCAmelCase_    :      str            =						float(2 * (random.randint(1     ,       100  )) - 1  )

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

					return layer_a * 100


if __name__ == "__main__":
		import doctest

		doctest.testmod()

		__UpperCAmelCase								=						int(input('Expected value: '))
		__UpperCAmelCase								=						int(input('Number of propagations: '))
		print(forward_propagation(expected, number_propagations))










"""simple docstring"""


def _lowerCamelCase	(		):

			'''simple docstring'''




			__lowerCAmelCase				    =			[]
			__lowerCAmelCase				    =			1

			while len(_UpperCamelCase      ) < 1e6:
						constant.append(str(_UpperCamelCase      )      )
						i += 1

			__lowerCAmelCase				    =			"".join(_UpperCamelCase      )

			return (
			    int(constant[0]      )
			    * int(constant[9]      )
			    * int(constant[99]      )
			    * int(constant[999]      )
			    * int(constant[9999]      )
			    * int(constant[9_9999]      )
			    * int(constant[99_9999]      )
			)


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




