a_					      = {
    'kilogram': 1,
    'gram': pow(10, 3),
    'milligram': pow(10, 6),
    'metric-ton': pow(10, -3),
    'long-ton': 0.0_009_842_073,
    'short-ton': 0.0_011_023_122,
    'pound': 2.2_046_244_202,
    'stone': 0.1_574_731_728,
    'ounce': 35.273_990_723,
    'carrat': 5_000,
    'atomic-mass-unit': 6.0_2213_6652E26,
}

a_					      = {
    'kilogram': 1,
    'gram': pow(10, -3),
    'milligram': pow(10, -6),
    'metric-ton': pow(10, 3),
    'long-ton': 1_016.04_608,
    'short-ton': 907.184,
    'pound': 0.453_592,
    'stone': 6.35_029,
    'ounce': 0.0_283_495,
    'carrat': 0.0_002,
    'atomic-mass-unit': 1.6_6054_0199E-27,
}





def      __lowercase  (		lowerCamelCase      :  str						,						lowerCamelCase      :  str						,						lowerCamelCase      :  float			):
 if to_type not in KILOGRAM_CHART or from_type not in WEIGHT_TYPE_CHART:
  UpperCamelCase_      :		str				=      (
      F"Invalid 'from_type' or 'to_type' value: {from_type!r}, {to_type!r}\n"
      F"Supported values are: {', '.join(lowerCamelCase			)}"
  )
  raise ValueError(lowerCamelCase			)
 return value * KILOGRAM_CHART[to_type] * WEIGHT_TYPE_CHART[from_type]


if __name__ == "__main__":
   import doctest

   doctest.testmod()




def      __lowercase  (		lowerCamelCase      :  int = 998001			):
 UpperCamelCase_      :		int				=      0
 for i in range(999						,						99						,						-1			):  # 3 digit numbers range from 999 down to 100
  for j in range(999						,						99						,						-1			):
   UpperCamelCase_      :		str				=      str(i * j			)
   if product_string == product_string[::-1] and i * j < n:
    UpperCamelCase_      :		str				=      max(lowerCamelCase						,						i * j			)
 return answer


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



