lst=[["cot(b*x+a)","x",1], ["cot(b*x+a)^2","x",1], ["cot(b*x+a)^3","x",1], ["cot(b*x+a)^4","x",1], ["cot(b*x+a)^5","x",1], ["cot(b*x+a)^6","x",1], ["cot(b*x+a)^7","x",1], ["cot(b*x+a)^8","x",1], ["(c*cot(b*x+a))^(7/2)","x",1], ["(c*cot(b*x+a))^(5/2)","x",1], ["(c*cot(b*x+a))^(3/2)","x",1], ["(c*cot(b*x+a))^(1/2)","x",1], ["1/(c*cot(b*x+a))^(1/2)","x",1], ["1/(c*cot(b*x+a))^(3/2)","x",1], ["1/(c*cot(b*x+a))^(5/2)","x",1], ["1/(c*cot(b*x+a))^(7/2)","x",1], ["(c*cot(b*x+a))^(4/3)","x",1], ["(c*cot(b*x+a))^(2/3)","x",1], ["(c*cot(b*x+a))^(1/3)","x",1], ["1/(c*cot(b*x+a))^(1/3)","x",1], ["1/(c*cot(b*x+a))^(2/3)","x",1], ["1/(c*cot(b*x+a))^(4/3)","x",1], ["cot(b*x+a)^n","x",1], ["(b*cot(d*x+c))^n","x",1], ["(a*cot(x)^2)^(3/2)","x",1], ["(a*cot(x)^2)^(1/2)","x",1], ["1/(a*cot(x)^2)^(1/2)","x",1], ["1/(a*cot(x)^2)^(3/2)","x",1], ["(a*cot(x)^3)^(3/2)","x",1], ["(a*cot(x)^3)^(1/2)","x",1], ["1/(a*cot(x)^3)^(1/2)","x",1], ["1/(a*cot(x)^3)^(3/2)","x",1], ["(a*cot(x)^4)^(3/2)","x",1], ["(a*cot(x)^4)^(1/2)","x",1], ["1/(a*cot(x)^4)^(1/2)","x",1], ["1/(a*cot(x)^4)^(3/2)","x",1], ["(b*cot(d*x+c)^p)^n","x",1], ["(a*(b*cot(d*x+c))^p)^n","x",1], ["(b*cot(f*x+e))^n*(a*sin(f*x+e))^m","x",1], ["(a*cos(f*x+e))^m*(b*cot(f*x+e))^n","x",1], ["(a*cot(f*x+e))^m*(b*cot(f*x+e))^n","x",1], ["(b*cot(f*x+e))^n*(a*sec(f*x+e))^m","x",1], ["(d*cot(f*x+e))^n*csc(f*x+e)^6","x",1], ["(d*cot(f*x+e))^n*csc(f*x+e)^4","x",1], ["(d*cot(f*x+e))^n*csc(f*x+e)^2","x",1], ["(d*cot(f*x+e))^n*sin(f*x+e)^2","x",1], ["(d*cot(f*x+e))^n*sin(f*x+e)^4","x",1], ["(d*cot(f*x+e))^n*csc(f*x+e)^3","x",1], ["(d*cot(f*x+e))^n*csc(f*x+e)","x",1], ["(d*cot(f*x+e))^n*sin(f*x+e)","x",1], ["(d*cot(f*x+e))^n*sin(f*x+e)^3","x",1], ["(b*cot(f*x+e))^n*(a*csc(f*x+e))^m","x",1]]