f=lambda x:x>2and f(x-1)*f(x-3)+1or x&1 print f(37)