Help me in solving LPYAS155 problem

My issue

cook your dish here

n = int(input())
sum = 0
while(n > 0):
sum += n%10
n = n // 10
if sum == 9:
print(“Lucky”)
else:
print(“Not Lucky”)
For this problem I used this programme and it is showing that hidden test case failed. But logic for this programme is right.

My code

# cook your dish here
n = int(input())
sum = 0
while(n > 0):
    sum += n%10
    n = n // 10
if sum == 9:
    print("Lucky")
else:
    print("Not Lucky")

Learning course: Algorithmic Problem Solving
Problem Link: Lucky number in Algorithmic Problem Solving