NZEC in spoj FACKT
<p>I was trying to solve this problem <a href="http://www.spoj.pl/problems/FACKT/" rel="nofollow">http://www.spoj.pl/problems/FACKT/</a>, and I keep getting a Non-Zero Exit Code (NZEC). How exactly do I figure out what to change in the code to overcome this?</p>

<p>Here is the code</p>

<pre><code>import math
import sys
def cal_num(n):

    i = 1
    f = 1
    while f&lt;n:
        f *= i
        i = i + 1
    return i-1


while 1:
    line = sys.stdin.readline()
    if line == "":
        break
    n = int(line)
    x = cal_num(n)
    y = math.factorial(2*x)
    l = int(math.ceil(math.log(y,10)))
    print (x,l)
</code></pre>

<p>Any suggestion would be welcome.</p>
