def power(m,n,x):
temp=power(m,n/2,x)
if n%2 == 0:
return (temp%x*temp%x)%x
else:
return (m*temp%x*temp%x)%x
t=int(input())
g=1298074214633706835075030044377087
while(t):
t=t-1
p=int(input())
print (power(2,p+1,g)-1)%g
the code when compiled gives runtime error ..saying eof when reading a file.. plz.. tell me how to overcome this .. i'm new to python