




from __future__ import annotations

from typing import Any



class 			a     :

     '''simple docstring'''





     def __init__(	self   :			Union[str, Any]					,    __snake_case   :			Any					,    __snake_case   :			Any				):  # noqa: A002
         UpperCAmelCase_							 =     item
         UpperCAmelCase_							 =     next



class 			a     :

     '''simple docstring'''





     def __init__(	self   :			str				):
         UpperCAmelCase_							 =     None
         UpperCAmelCase_							 =     0
     def   lowerCamelCase_   (	self   :			Optional[int]					,    __snake_case   :			Any				):
         UpperCAmelCase_							 =     Node(__snake_case					,    self.head				)
         self.size += 1
     def   lowerCamelCase_   (	self   :			Any				):
         # Switched 'self.is_empty()' to 'self.head is None'
         # because mypy was considering the possibility that 'self.head'
         # can be None in below else part and giving error
         if self.head is None:
             return None
         else:
             UpperCAmelCase_							 =     self.head.item
             UpperCAmelCase_							 =     self.head.next
             self.size -= 1
             return item
     def   lowerCamelCase_   (	self   :			int				):
         return self.head is None
     def __str__(	self   :			Optional[int]				):
         if self.is_empty():
             return ""
         else:
             UpperCAmelCase_							 =     self.head
             UpperCAmelCase_							 =     ''''''
             UpperCAmelCase_							 =     []
             while iterate:
                 item_list.append(str(iterate.item				)				)
                 UpperCAmelCase_							 =     iterate.next

             UpperCAmelCase_							 =     ''' --> '''.join(__snake_case				)

             return item_str




     def __len__(	self   :			Dict				):
         return self.size











def     __SCREAMING_SNAKE_CASE      (     lowercase_					)				->		bool:

    """simple docstring"""


    if not isinstance(lowercase_    ,   lowercase_					):
        __UpperCamelCase     						=  F"Input value of [number={number}] must be an integer"
        raise TypeError(lowercase_					)
    if number < 0 or number % 2 == 1:
        return False
    __UpperCamelCase     						=  int(number**0.5					)
    return number == number_sqrt * (number_sqrt + 1)


if __name__ == "__main__":
 import doctest

 doctest.testmod()






