Case #1:
0 1
Case #2:
0 1
Case #3:
666665666667000000 235042059
Case #4:
249999500000 1
Case #5:
249999000001 2
Case #6:
499999000000 1
Case #7:
16841689027335900 1
Case #8:
3340958684220274 1
Case #9:
151581792885443713 987482457
Case #10:
25296007323620596 1
Case #11:
202203687302301762 105963621
Case #12:
29268557048244750 336806951
Case #13:
119126030763726856 1
Case #14:
241360486715056592 1
Case #15:
116346495509196673 970185681
Case #16:
28745392510482810 692527661
Case #17:
8544109271125850 598368519
Case #18:
51492828988375000 105879273
Case #19:
21534780512165564 482357077
Case #20:
2827817268417225 973460119
Case #21:
127218573494646820 837661489
Case #22:
249724014379318610 1
Case #23:
90644955640731632 1
Case #24:
74985934512643896 10995746
Case #25:
500660595759473 910220863
Case #26:
329293222707364678 973453052
Case #27:
425037170240195376 871364712
Case #28:
2628635919393040 1
Case #29:
319262444343522946 991615879
Case #30:
5323658288267721 67213985
Case #31:
27695612154073120 1
Case #32:
38508740619699928 22114543
Case #33:
84115102741727288 1
Case #34:
25667545526764953 859362711
Case #35:
12680223841439968 515352053
Case #36:
276796139565040372 1
Case #37:
418123941323635664 1
Case #38:
110986729328824180 1
Case #39:
103744350589883553 541550221
Case #40:
1795379590897970 1
Case #41:
16691190105624642 1
Case #42:
26416433605503480 581432662
Case #43:
9124159875447380 1
Case #44:
30942461585391872 1
Case #45:
113539819099059080 577741405
Case #46:
129298041454643433 574498665
Case #47:
22703843717459737 284504384
Case #48:
7249445739929162 614332386
Case #49:
392702967983084992 1
Case #50:
59743068197322896 1
Case #51:
74425843744400400 1
Case #52:
41679638907315574 284592347
Case #53:
932800726856590 1
Case #54:
168378628414989392 604948662
Case #55:
9395636766121984 1
Case #56:
149549215658426016 782200760
Case #57:
454856515220440881 806346020
Case #58:
100411074197099232 1
Case #59:
8051937516909272 1
Case #60:
250096268724969170 697114469
Case #61:
115893183790498532 1
Case #62:
138693298865213626 159548938
Case #63:
185121235394290584 1
Case #64:
27311821838033260 1
Case #65:
15011561094742930 1
Case #66:
42531412550339166 196981259
Case #67:
50819400521514856 959870641
Case #68:
17320701047482648 786137789
Case #69:
266029605745350000 750812540
Case #70:
189368247125441950 1
Case #71:
88269142443297180 1
Case #72:
191401829753177761 68780626
Case #73:
33433018723897940 464703729
Case #74:
295561899358490 1
Case #75:
2210094790269948 454514081
Case #76:
2085835516789248 624934429
Case #77:
24737045311124820 857005750
Case #78:
1475595000217108 514364171
Case #79:
66218009283320440 1
Case #80:
107008631103592730 516273262
Case #81:
78933908161149340 1
Case #82:
46187617457785472 676580104
Case #83:
5019121491066830 1
Case #84:
46361649752338760 996441969
Case #85:
383608932777533120 433870586
Case #86:
36161527959403848 855675623
Case #87:
14258074525639428 1
Case #88:
36691205412801940 1
Case #89:
247382847214543744 62047473
Case #90:
32276488326590300 1
Case #91:
427512751691391040 1
Case #92:
414146099461485618 261213744
Case #93:
40842452721029768 989922034
Case #94:
195673452246648600 346350131
Case #95:
49082889895050960 1
Case #96:
109490045648315921 354782070
Case #97:
422697121517067096 713138951
Case #98:
148471729795148244 442334054
Case #99:
241864300706850696 129155338
Case #100:
222380049260088030 1