Why am i getting a runtime error during submisson

My code is

https://www.codechef.com/viewsolution/28345585

Using “Run”, with your code and language PYPY3, with the custom input set to the sample test input for this question:

3
21
132
104

gives the following error:

Traceback (most recent call last):
  File "prog.py", line 11, in <module>
    while int(l1[0]) == 0:
IndexError: list index out of range

i fixed that but it is still showing runtime error during submisson

https://www.codechef.com/viewsolution/28346428

Consider the testcase:

1
10