




def       _a (		SCREAMING_SNAKE_CASE_				:							list , SCREAMING_SNAKE_CASE_				:							int , SCREAMING_SNAKE_CASE_				:							int , SCREAMING_SNAKE_CASE_				:							int	):
					__lowerCAmelCase							  =			int((lower_bound + upper_bound) // 2	)
					if array[r] == value:
										return r
					if lower_bound >= upper_bound:
										return -1
					if array[r] < value:
										return binary_search(SCREAMING_SNAKE_CASE_ , r + 1 , SCREAMING_SNAKE_CASE_ , SCREAMING_SNAKE_CASE_	)
					else:
										return binary_search(SCREAMING_SNAKE_CASE_ , SCREAMING_SNAKE_CASE_ , r - 1 , SCREAMING_SNAKE_CASE_	)







def       _a (		SCREAMING_SNAKE_CASE_				:							int , SCREAMING_SNAKE_CASE_				:							list	):
					__lowerCAmelCase							  =			0
					if matrix[index][0] == value:
										return [index, 0]
					while index < len(SCREAMING_SNAKE_CASE_	) and matrix[index][0] < value:
										__lowerCAmelCase							  =			binary_search(matrix[index] , 0 , len(matrix[index]	) - 1 , SCREAMING_SNAKE_CASE_	)
										if r != -1:
															return [index, r]
										index += 1
					return [-1, -1]


if __name__ == "__main__":
					import doctest

					doctest.testmod()










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.''')




