T197452 #Lucky

题目背景

Digits $4$ and $7$ are lucky, while all others are unlucky. An integer is lucky if it contains only lucky digits in decimal notation. We would like to know the $k-th$ lucky positive integer. 翻译:数字4和7是幸运数字,而其他所有数字都是不吉利数字。如果一个整数在十进制中只包含幸运数字,那么它就是幸运的。我们想知道第k个幸运正整数是多少。

题目描述

无

输入格式

The first and only line of input contains a positive integer $K$ $(1 ≤ K ≤ 10^9)$. 翻译:第一行也是唯一的一行输入包含一个正整数$K$

输出格式

The first and only line of output must contain the **$K-th$** lucky positive integer. 翻译:输出的第一行也是唯一一行包含第k个幸运正整数。