Given that a and B are positive integers, and the difference between the square of a and the square of B is equal to the value of a and B?

Given that a and B are positive integers, and the difference between the square of a and the square of B is equal to the value of a and B?

The difference between the square of a and the square of B is 2011
(A+B)×(A-B)=2011
That is, A-B = 1, a + B = 2011
A=1006、B=1005