def findDigits(n):
    # Write your code here
    cnt = 0
    for i in str(n):
        i = int(i)
        if i == 0:
            continue
        else:
            if n % i == 0:
                cnt += 1
                
    return cnt