





import random
from typing import Any





def  __magic_name__  (				lowercase				)				-> list[Any]:

							"""simple docstring"""



							for _ in range(len(lowercase				)				):
														lowercase_	:   Union[str, Any]  				=     random.randint(0				,       len(lowercase				) - 1				)
														lowercase_	:   Optional[int]  				=     random.randint(0				,       len(lowercase				) - 1				)
														lowercase_				,		lowercase_	:   str  				=     data[b], data[a]
							return data


if __name__ == "__main__":
							UpperCAmelCase_							=				[0, 1, 2, 3, 4, 5, 6, 7]
							UpperCAmelCase_							=				["""python""", """says""", """hello""", """!"""]
							print("""Fisher-Yates Shuffle:""")
							print("""List""", integers, strings)
							print("""FY Shuffle""", fisher_yates_shuffle(integers), fisher_yates_shuffle(strings))






def  __magic_name__  (				lowercase = 1000				)				-> int:

							"""simple docstring"""



							lowercase_				,		lowercase_	:   Optional[Any]  				=     1, 1
							lowercase_	:   Tuple  				=     2
							while True:
														lowercase_	:   Dict  				=     0
														lowercase_	:   List[Any]  				=     fa + fa
														lowercase_				,		lowercase_	:   List[str]  				=     fa, f
														index += 1
														for _ in str(lowercase				):
																					i += 1
														if i == n:
																					break
							return index


if __name__ == "__main__":
							print(solution(int(str(input()).strip())))