#P1988. 火炬
火炬
Description
At the 2008 Beijing Olympics, you want to become a torchbearer in Wenchuan, Sichuan. After multiple rounds of selection, you finally reach the last challenge.
This challenge is a hard problem: Given any positive integer , find the smallest positive integer such that the decimal representation of contains only 1 and 0.
Input Format
One line containing a positive integer .
Output Format
Output one line. If a solution exists, output an integer representing the smallest , otherwise output No Solution.
12
925
Hint
Constraints: .
Translated by ChatGPT 5
京公网安备 11011102002149号