



'''simple docstring'''
class 							lowercase__	:





	def __init__( self					:				Dict ,lowerCamelCase__					:				int ):







							'''simple docstring'''
							_UpperCamelCase					:		Dict 				=   n
							_UpperCamelCase					:		Optional[int] 				=   [None] * self.n
							_UpperCamelCase					:		List[str] 				=   0  # index of the first element
							_UpperCamelCase					:		Dict 				=   0
							_UpperCamelCase					:		int 				=   0





	def __len__( self					:				Optional[int] ):







							'''simple docstring'''
							return self.size





	def 	UpperCamelCase_  ( self					:				Union[str, Any] ):







							'''simple docstring'''
							return self.size == 0





	def 	UpperCamelCase_  ( self					:				Union[str, Any] ):







							'''simple docstring'''
							return False if self.is_empty() else self.array[self.front]





	def 	UpperCamelCase_  ( self					:				Union[str, Any] ,lowerCamelCase__					:				Tuple ):







							'''simple docstring'''
							if self.size >= self.n:
													raise Exception('QUEUE IS FULL' )

							_UpperCamelCase					:		Optional[int] 				=   data
							_UpperCamelCase					:		Tuple 				=   (self.rear + 1) % self.n
							self.size += 1
							return self





	def 	UpperCamelCase_  ( self					:				Any ):







							'''simple docstring'''
							if self.size == 0:
													raise Exception('UNDERFLOW' )

							_UpperCamelCase					:		List[Any] 				=   self.array[self.front]
							_UpperCamelCase					:		Union[str, Any] 				=   None
							_UpperCamelCase					:		Optional[int] 				=   (self.front + 1) % self.n
							self.size -= 1
							return temp






"""simple docstring"""




def     lowercase			(SCREAMING_SNAKE_CASE_		:				int = 10_00  )   ->						int:
						SCREAMING_SNAKE_CASE													=					2**power
						SCREAMING_SNAKE_CASE													=					0
						while n:
												SCREAMING_SNAKE_CASE							,				SCREAMING_SNAKE_CASE													=					r + n % 10, n // 10
						return r


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


