#P1745. 【基础】丑数

【基础】丑数

Description

素因子都在集合{2 3 5 7}的数称为ugly number
求第n大的丑数

Input Format

读入N。N<=100000

Output Format

输出结果如题所述。
12
15

Hint

50%的数据n<=100

100%的数据 n<=100000

Source

队列