{"problem":{"name":"Happy New Year!","description":{"content":"Among the positive integers that consist of $0$'s and $2$'s when written in base $10$, find the $K$\\-th smallest integer.","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc234_c"},"statements":[{"statement_type":"Markdown","content":"Among the positive integers that consist of $0$'s and $2$'s when written in base $10$, find the $K$\\-th smallest integer.\n\n## Constraints\n\n*   $K$ is an integer between $1$ and $10^{18}$ (inclusive).\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$K$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc234_c","tags":[],"sample_group":[["3","22\n\nThe positive integers that consist of $0$'s and $2$'s when written in base $10$ are $2,20,22,\\dots$ in ascending order.  \nThe $(K=)$ $3$\\-rd of them, which is $22$, should be printed."],["11","2022"],["923423423420220108","220022020000202020002022022000002020002222002200002022002200\n\nNote that the exact value of the answer must be printed as an integer, even if it is big."]],"created_at":"2026-03-03 11:01:14"}}