#Lutece3328. Multiple
Multiple
Description
Let denote the -th element in the Fibonacci sequence, i.e. . denotes divides , i.e. is a divisor of . For example, and .
Then, let . Given two integers and , you need to find the -th smallest element in the set .
denotes all positive integers, i.e. .
Input
The first and only line of the input contains two integers .
Output
Output an integer, indicating the -th smallest element in set .
Samples
3 6
18
Note
Since , can be , and , the sixth smallest element is .
Resources
电子科技大学第十四届 ACM 趣味程序设计竞赛