human
Find two numbers with given sum and maximum possible LCM | Function that print two numbers with the sum X and maximum possible LCM.
If X is odd.
If X is even.
If floor ( X / 2 ) is even.
If floor ( X / 2 ) is odd.
Print the result.
Driver Code.
Given Number.
Function call"
Solution in Python:

Can you provide a code to find two numbers with given sum and maximum possible LCM and the other steps required?
assistant
#Here is code to find two numbers with given sum and maximum possible LCM and the other steps required.
 def maxLCMWithGivenSum ( X ) :
	if X % 2 != 0 :
		A = X / 2
		B = X / 2 + 1
	else :
		if ( X / 2 ) % 2 == 0 :
			A = X / 2 - 1
			B = X / 2 + 1
		else :
			A = X / 2 - 2
			B = X / 2 + 2
	print ( int ( A ) , int ( B ) , end = " ▁ " )
if __name__ == ' _ _ main _ _ ' :
	X = 30
	maxLCMWithGivenSum ( X )