






def     snake_case   (UpperCAmelCase__ = 1_0_0_0    )			->							Any:
  UpperCamelCase_:   int        =							2**power
  UpperCamelCase_:   Optional[Any]        =							0
  while n:
    UpperCamelCase_ ,UpperCamelCase_:   Tuple        =							r + n % 1_0, n // 1_0
  return r


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

"""simple docstring"""


from torch import nn






def    _snake_case					(		snake_case__ :  Union[str, Any]  ):
	if act_fn in ["swish", "silu"]:
		return nn.SiLU()
	elif act_fn == "mish":
		return nn.Mish()
	elif act_fn == "gelu":
		return nn.GELU()
	else:
		raise ValueError(F'Unsupported activation function: {act_fn}'  )