Math Problem : G.19 Sum of odd number and even number

As for numbers from 1 to a certain integer N, the sum of all the odd number is 9801 and the sum of all the even number is 9702.

Find a certain integer N.




Answer
197