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ational) e$B$N7k2L$Oe(B Rational e$B$G$O$J$/e(B
Integer e$B$K$7$F$$$^$9!#$b$A$m$se(B divmod e$B$b$=$l$HO"F0$7e(B
e$B$F$$$^$9!#e(B