from statistics import*

(n,),*t=[list(map(int,t.split()))for t in open(0)]

a,b=list(map(median,list(zip(*t))))

print((int((b-a)*(2-n%2))+1))
from numpy import*

(n,),*d=[int_(i.split())for i in open(0)]

a,b=median(d,0)

print((int((b-a)*(2-n%2))+1))
from statistics import *

(n,), *t = [list(map(int, t.split())) for t in open(0)]
a, b = list(map(median, list(zip(*t))))
print((int((b - a) * (2 - n % 2)) + 1))

from numpy import *

(n,), *d = [int_(i.split()) for i in open(0)]
a, b = median(d, 0)
print((int((b - a) * (2 - n % 2)) + 1))

-from statistics import * +from numpy import * -(n,), *t = [list(map(int, t.split())) for t in open(0)] -a, b = list(map(median, list(zip(*t)))) +(n,), *d = [int_(i.split()) for i in open(0)] +a, b = median(d, 0)