#Lutece2669. 菲奥奈之章 - 黑羽的讯息

菲奥奈之章 - 黑羽的讯息

Migrated from Lutece 2669 菲奥奈之章 - 黑羽的讯息

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

「剑的意义......会随着挥剑之人......而改变」

「你要役剑......」

「绝对,不要为剑所役......」

image.png


为了进一步得到抓捕黑羽的相关线索,凯伊姆和菲奥奈来到了一处已确定的黑羽藏身地点。在这里,他们在一处墙上发现了这项讯息:

$$\left(\sum\limits_{i_1=1}^{n}\sum\limits_{i_2=1}^{n}...\sum\limits_{i_k=1}^{n}\gcd(f(i_1),f(i_2),...,f(i_k))\right)\bmod (10^9+9) \\ $$

同时,在地板上,他们发现除了有一些白色与黑色粉末的混合物,还有疑似黑羽用爪子亲自刻下来的:

$$f(n)=\left \{ \begin{aligned} &0,&n = 0 \\ &1,&n = 1 \\ &f(n-1)+f(n-2),&n\ge 2 \end{aligned} \right. $$

菲奥奈认为这是黑羽提供的十分重要的线索,回到家后,他们两人决定解决这个问题。

image.png

Input

输入仅包含两个正整数 n,kn,k

Output

输出一行表示答案。

Samples

2 2
4
114 514
599653794

Constraints

1n,k1081\le n,k \le 10^{8}

Resources

2021 UESTC ICPC Training for Math and Geometry