119. Magic Pairs time limit per test: 0.25 sec.
“Prove that for any integer X and Y if 5X+4Y is divided by 23 than 3X+7Y is divided by 23 too.” The task is from city Olympiad in mathematics in Saratov, Russia for schoolchildren of 8th form. 20012002 year.
Input Each input consists of positive integer numbers N, A_{0}_{ and B0 (N,A0,B0£ 10000) separated by whitespaces. }
Output Write number of pairs (A, B) to the first line of output. Write each pair on a single line in order of nondescreasing A (and B in case of equal A). Separate numbers by single space.
Sample Input 3 1 2
Sample Output 3 0 0 1 2 2 1  

Name 
