{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eMari kita perkenalkan beberapa definisi yang akan diperlukan nanti.\u003c/p\u003e\u003cp\u003eMisalkan $$$prime(x)$$$ adalah himpunan pembagi prima dari $$$x$$$. Misalnya, $$$prime(140) \u003d \\{ 2, 5, 7 \\}$$$, $$$prime(169) \u003d \\{ 13 \\}$$$.\u003c/p\u003e\u003cp\u003eMisalkan $$$g(x, p)$$$ menjadi bilangan bulat maksimum yang mungkin $$$p^k$$$ dimana $$$k$$$ adalah bilangan bulat sehingga $$$x$$$ habis dibagi $$$p^k$$$. Contoh:\u003c/p\u003e\u003cul\u003e \u003cli\u003e $$$g(45, 3) \u003d 9$$$ ($$$45$$$ habis dibagi $$$3^2\u003d9$$$ tetapi tidak habis dibagi dibagi $$$3^3\u003d27$$$), \u003c/li\u003e\u003cli\u003e $$$g(63, 7) \u003d 7$$$ ($$$63$$$ habis dibagi $$$7^1\u003d 7$$$ tetapi tidak habis dibagi $$$7^2\u003d49$$$). \u003c/li\u003e\u003c/ul\u003e\u003cp\u003eMisalkan $$$f(x, y)$$$ menjadi hasil kali $$$g(y, p)$$$ untuk semua $$$p$$$ di $$$prima(x)$$$. Misalnya:\u003c/p\u003e\u003cul\u003e \u003cli\u003e $$$f(30, 70) \u003d g(70, 2) \\cdot g(70, 3) \\cdot g(70, 5) \u003d 2^1 \\ cdot 3^0 \\cdot 5^1 \u003d 10$$$, \u003c/li\u003e\u003cli\u003e $$$f(525, 63) \u003d g(63, 3) \\cdot g(63, 5) \\cdot g( 63, 7) \u003d 3^2 \\cdot 5^0 \\cdot 7^1 \u003d 63$$$. \u003c/li\u003e\u003c/ul\u003e\u003cp\u003eAnda memiliki bilangan bulat $$$x$$$ dan $$$n$$$. Hitung $$$f(x, 1) \\cdot f(x, 2) \\cdot \\ldots \\cdot f(x, n) \\bmod{(10^{9} + 7)}$$$.\u003c/p \u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003eSatu-satunya baris berisi bilangan bulat $$$x$$$ dan $$$n$$$ ($$$2 \\le x \\le 10^{9}$$$, $$$1 \\le n \\le 10 ^{18}$$$)\u0026nbsp;— angka yang digunakan dalam rumus.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003eCetak jawabannya.\u003c/p\u003e"}},{"title":"Examples","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e10 2\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e2\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e20190929 1605\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e363165664\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e947 987654321987654321\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e593574252\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Note","value":{"format":"HTML","content":"\u003cp\u003ePada contoh pertama, $$$f(10, 1) \u003d g(1, 2) \\cdot g(1, 5) \u003d 1$$$, $$$f(10, 2) \u003d g( 2, 2) \\cdot g(2, 5) \u003d 2$$$.\u003c/p\u003e\u003cp\u003ePada contoh kedua, nilai rumus sebenarnya kira-kira $$$1,597 \\cdot 10^{171}$$$. Pastikan Anda mencetak modul jawaban $$$(10^{9} + 7)$$$.\u003c/p\u003e\u003cp\u003ePada contoh ketiga, berhati-hatilah terhadap masalah overflow.\u003c/p\u003e"}}]}