All numbers in NumberLand are standing in a circle for a dancing ceremony. Every number needs a dancing partner. Dancing partner of any number is the number which is standing radially opposite to it in the circle. The numbers are from 0 to N-1. A certain number X wants to know who will be its dancing partner. Please help X.
Two positive integers denoting the value of N and X.
Print the number radially opposite to X in a circle of N numbers.
4 ≤ N ≤ 20
0 ≤ X < N
Dcoded By: Mrudul Sankhere
Solved By: 2418
Maximum Marks: 6