def minimum_Length(s) :
     
    maxOcc = 0
    n = len(s) 
    arr = [0]*26
    for i in range(n) : 
        arr[ord(s[i]) -ord('a')] += 1
    for i in range(26) : 
        if arr[i] > maxOcc : 
            maxOcc = arr[i] 
    return n - maxOcc 
def minimum_Length(s):
    maxOcc = 0
    n = len(s)
    arr = [0] * 26
    for f in range(n):
       
        arr[ord(s[f]) - ord("a")] += 1
    for f in range(26):
        if arr[f] > maxOcc:
            maxOcc = arr[f]
    return n - maxOcc