def strong(n) -> bool:
    """Checks whether the given number is Strong Number or not."""
    sum = 0
    temp = n
    while(n):
        i = 1
        f = 1
        r = n % 10
        while(i <= r):
            f = f*i
            i = i+1
        sum = sum+f
        n = n//10
    if(sum == temp):
        return True
    else:
        return False