N is a 4-digit positive integer, whose last digit is not zero, and which does not contain any leading zeros.
R(N) is the four-digit integer obtained by reversing the digits of N; for example, R(4386) = 6834