wanting to print if list elements are armstrong number or not :     n = int(input("" ""))
    l = []
    for i in  range(n):
        a = int(input())
        l.append(a)
        s=0
    for i in l:
        temp = i
    
        while temp>0:
            d = temp % 10
            s += d**3
            temp //= 10
        if n == s:
            print("yes")
        else:
            print("no")

I am trying to print yes if the number is Armstrong number if not no but the code give me only else part if part is not executing please help.