func pageCount(n int32, p int32) int32 {
// Write your code here
if n%2==1{
n=n-1
}
if p%2==1{
p=p-1
}
if n==p{
return 0
}
left :=false
begin:=int32(0)
if (n-p)<p{
left = true
begin=n
}
countpage:=int32(0)
if left==false{
for begin<p{
begin+=2
countpage++
fmt.Println(begin)
}
}else if left==true{
for begin>p{
begin-=2
countpage++
}
}
return countpage
}