


def 	lowerCamelCase_       (			_a      ,  _a      ,  _a			):




		"""simple docstring"""






		if power < 0:
				return -1
		base %= mod
		lowerCAmelCase__  :     Union[str, Any]       	=   1

		while power > 0:
				if power & 1:
						lowerCAmelCase__  :     int       	=   (result * base) % mod
				lowerCAmelCase__  :     Union[str, Any]       	=   power >> 1
				lowerCAmelCase__  :     Tuple       	=   (base * base) % mod

		return result






def 	lowerCamelCase_       (			):




		"""simple docstring"""






		print(modular_exponential(3      ,  200      ,  13			)			)


if __name__ == "__main__":
		import doctest

		doctest.testmod()

		main()










def       _a (		SCREAMING_SNAKE_CASE_				:							int , SCREAMING_SNAKE_CASE_				:							int	):
					if a < b:
										return gcd(SCREAMING_SNAKE_CASE_ , SCREAMING_SNAKE_CASE_	)
					if a % b == 0:
										return b
					return gcd(SCREAMING_SNAKE_CASE_ , a % b	)







def       _a (		SCREAMING_SNAKE_CASE_				:							int , SCREAMING_SNAKE_CASE_				:							int , SCREAMING_SNAKE_CASE_				:							int	):
					if y == 0:
										return 1
					__lowerCAmelCase							  =			power(SCREAMING_SNAKE_CASE_ , y // 2 , SCREAMING_SNAKE_CASE_	) % mod
					__lowerCAmelCase							  =			(temp * temp) % mod
					if y % 2 == 1:
										__lowerCAmelCase							  =			(temp * x) % mod
					return temp







def       _a (		SCREAMING_SNAKE_CASE_				:							int	):
					__lowerCAmelCase							  =			2
					while b < n:
										if gcd(SCREAMING_SNAKE_CASE_ , SCREAMING_SNAKE_CASE_	) == 1 and power(SCREAMING_SNAKE_CASE_ , n - 1 , SCREAMING_SNAKE_CASE_	) != 1:
															return False
										b += 1
					return True


if __name__ == "__main__":
					UpperCamelCase__            =     int(input("""Enter number: """).strip())
					if is_carmichael_number(number):
										print(f'''{number} is a Carmichael Number.''')
					else:
										print(f'''{number} is not a Carmichael Number.''')




