human
Split N natural numbers into two sets having GCD of their sums greater than 1 | Function to create and print the two sets.
For n <= 2 such sets can never be formed.
Check if N is even or odd and store the element which divides the sum of N natural numbers accordingly.
First set.
Print elements of second set.
Driver code"
How can the above be solved in Python?

Write me a code to split N natural numbers into two sets having GCD of their sums greater than 1 and the other steps required?
assistant
#Here is code to split N natural numbers into two sets having GCD of their sums greater than 1 and the other steps required.
 def createSets ( n ) :
	if ( n <= 2 ) :
		print ( " - 1" ) ;
		return ;
	else :
		x = ( n // 2 ) if ( n % 2 == 0 ) else ( ( n + 1 ) // 2 ) ;
		print ( x , " ▁ " ) ;
		for i in range ( 1 , n + 1 ) :
			if ( i == x ) :
				continue ;
			print ( i , end = " ▁ " ) ;
	return ;
if __name__ == ' _ _ main _ _ ' :
	N = 7 ;
	createSets ( N ) ;