



"""simple docstring"""
def        __magic_name__			(							lowercase	):
   SCREAMING_SNAKE_CASE_:	List[str]            =9

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

   return True





def        __magic_name__			(							):
   SCREAMING_SNAKE_CASE_:	int            =1_3890_2663

   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        __magic_name__			(							lowercase = 1000	):
   SCREAMING_SNAKE_CASE_:	Dict            =0
   SCREAMING_SNAKE_CASE_:	Any            =0
   while 1:
      num += 3
      if num >= n:
         break
      total += num
      num += 2
      if num >= n:
         break
      total += num
      num += 1
      if num >= n:
         break
      total += num
      num += 3
      if num >= n:
         break
      total += num
      num += 1
      if num >= n:
         break
      total += num
      num += 2
      if num >= n:
         break
      total += num
      num += 3
      if num >= n:
         break
      total += num
   return total


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



