

def 						_snake_case(    SCREAMING_SNAKE_CASE__			:	int = 1000      )							->      int:





    '''simple docstring'''






    A__          =   2**power
    A__          =   0
    while n:
        A__      ,						A__          =   r + n % 10, n // 10
    return r


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




'''simple docstring'''






def 		_A     (    A__ = 10     ,				A__ = 22      ):






 """simple docstring"""



 __lowercase							  = range(1     ,				A__      )
 __lowercase							  = range(1     ,				A__      )
 return sum(
     1 for power in powers for base in bases if len(str(base**power      )      ) == power      )


if __name__ == "__main__":
 print(f'{solution(10, 22) = }')

