i am new to python....nd gettings tle in 0 0 Pairs....
plz sm1 help me...
def main():
pass
if __name__ == '__main__':
try:
import psyco
psyco.full()
except ImportError:
pass
main()
A=[0,1]
k=1000
i=2
for i in range(2,1000):
a=(A[i-1])+(2*A[i-2])
A.append(a)
try:
import psyco
psyco.full()
except ImportError:
pass
while(1):
try:
n=int(input())
print (A[n-1]);
except:
break