



'''simple docstring'''



def       UpperCAmelCase__ (     UpperCAmelCase_   :    int							)					->		bool:
     __lowerCamelCase       :     int        =		9

     while num > 0:
          if num % 10 != digit:
               return False
          num //= 1_00
          digit -= 1

     return True



def       UpperCAmelCase__ (     )					->		int:
     __lowerCamelCase       :     List[str]        =		1_38_90_26_63

     while not is_square_form(num * num							):
          if num % 10 == 3:
               num -= 6  # (3 - 6) % 10 = 7
          else:
               num -= 4  # (7 - 4) % 10 = 3

     return num * 10


if __name__ == "__main__":
      print(f'''{solution() = }''')










'''simple docstring'''



def       UpperCAmelCase__ (     UpperCAmelCase_   :    int = 4_00_00_00							)					->		int:
     __lowerCamelCase       :     int        =		1
     __lowerCamelCase       :     Union[str, Any]        =		2
     __lowerCamelCase       :     Optional[int]        =		0
     while j <= n:
          if j % 2 == 0:
               total += j
          __lowerCamelCase    ,	__lowerCamelCase       :     List[Any]        =		j, i + j

     return total


if __name__ == "__main__":
      print(f'''{solution() = }''')






