human
Determine the position of the third person on regular N sided polygon | Function to find out the number of that vertices.
Another person can 't stand on  vertex on which 2 children stand..
calculating minimum jumps from each vertex ..
Calculate Sum of jumps ..
Driver code.
Calling function"
Solution in Python:
 Write me a code to determine the position of the third person on regular N sided polygon and the other steps required?
assistant
#Here is code to determine the position of the third person on regular N sided polygon and the other steps required.
 def vertices ( N , A , B ) :
	position = 0
	miniSum = 10 ** 9
	Sum = 0
	for i in range ( 1 , N + 1 ) :
		if ( i == A or i == B ) :
			continue
		else :
			x = abs ( i - A )
			y = abs ( i - B )
			Sum = x + y
			if ( Sum < miniSum ) :
				miniSum = Sum
				position = i
	return position
N = 3
A = 1
B = 2
print ( " Vertex ▁ = ▁ " , vertices ( N , A , B ) )