def float_(n):
  if n==0:
    return 0
  len=0
  s=n
  while(n>=1):
    n=n/10
    
    len=len+1
    t=n
  return s/(10**len-1) 


a=998
b=9
c=(float_(a))
d=(float_(b))
print(c)
print(d)
print(c<d)
  
def largestNumber(nums):
        nums = sorted(nums,key=float_,reverse=True)
        if nums[0] == 0:
            return "0"
        print(nums)
        return "".join([str(i) for i in nums])

nums=[111,321,98,124,1249,7777777777,998,9,0,999]
print(largestNumber(nums))