<doocs>2048.Next Greater Numerically Balanced Number_1.py
def check(num):
    counter = [0] * 10
    for c in str(num):
        counter[int(c)] += 1
    
    for c in str(num):
        if counter[int(c)] != int(c):
            return False
    return True
def sample_funcname ( var_0 ) :
    var_3 = [ 0 ] * 10
    for var_5 in str ( var_0 ) :
        var_3 [ int ( var_5 ) ] += 1
    for var_5 in str ( var_0 ) :
        if var_3 [ int ( var_5 ) ] != int ( var_5 ) :
            return False
    return True
