



"""simple docstring"""

from typing import TypeVar

from .arrow_dataset import Dataset, _split_by_node_map_style_dataset
from .iterable_dataset import IterableDataset, _split_by_node_iterable_dataset


A_	:						List[Any]				=   TypeVar('DatasetType', Dataset, IterableDataset)
def    __snake_case       (  __A			:	Dict       ,		__A			:	int       ,		__A			:	Dict    )    ->					DatasetType:






				'''simple docstring'''






				if isinstance(UpperCAmelCase_       ,		UpperCAmelCase_    ):
								return _split_by_node_map_style_dataset(UpperCAmelCase_       ,		rank=UpperCAmelCase_       ,		world_size=UpperCAmelCase_    )
				else:
								return _split_by_node_iterable_dataset(UpperCAmelCase_       ,		rank=UpperCAmelCase_       ,		world_size=UpperCAmelCase_    )










"""simple docstring"""

def    __snake_case       (  __A			:	int = 100    )    ->					int:






				'''simple docstring'''
				SCREAMING_SNAKE_CASE	:       Any 							=    1
				SCREAMING_SNAKE_CASE	:       Optional[int] 							=    0
				for i in range(1       ,		num + 1    ):
								fact *= i

				for j in str(__A    ):
								result += int(__A    )

				return result


if __name__ == "__main__":
							print(solution(int(input('Enter the Number: ').strip())))





