'''simple docstring'''

from typing import Callable, Optional

from .. import Features
from ..packaged_modules.generator.generator import Generator
from .abc import AbstractDatasetInputStream
class   SCREAMING_SNAKE_CASE			(						__lowercase):







		"""simple docstring"""






		def __init__(   self		,						__A		,						__A = None		,						__A = None		,						__A = False		,						__A = False		,						__A = None		,						__A = None		,						**__A		,						) ->     List[str]:
								super().__init__(
								    features=__A		,						cache_dir=__A		,						keep_in_memory=__A		,						streaming=__A		,						num_proc=__A		,						**__A		,						)
								_lowerCAmelCase										=Generator(
								    cache_dir=__A		,						features=__A		,						generator=__A		,						gen_kwargs=__A		,						**__A		,						)






		def 		UpperCamelCase__       (   self				) ->     List[str]:
								# Build iterable dataset
								if self.streaming:
														_lowerCAmelCase										=self.builder.as_streaming_dataset(split='train'				)
								# Build regular (map-style) dataset
								else:
														_lowerCAmelCase										=None
														_lowerCAmelCase										=None
														_lowerCAmelCase										=None
														_lowerCAmelCase										=None

														self.builder.download_and_prepare(
														    download_config=__A		,						download_mode=__A		,						verification_mode=__A		,						base_path=__A		,						num_proc=self.num_proc		,						)
														_lowerCAmelCase										=self.builder.as_dataset(
														    split='train'		,						verification_mode=__A		,						in_memory=self.keep_in_memory				)
								return dataset






'''simple docstring'''

def 							UpperCamelCase__			(			a__ = 1_0_0_0      ):


						'''simple docstring'''






						_lowerCAmelCase										=2**power
						_lowerCAmelCase										=0
						while n:
												_lowerCAmelCase						,				_lowerCAmelCase										=r + n % 1_0, n // 1_0
						return r


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





