Thanks.
But what if I try to resolve the forces along the "upright" x and y axes,i.e,I get
N cos(theta)=mg+mv^2/R cos(theta)
and
N sin(theta)= mv^2/R sin(theta) and the energy equation.
Now,how do I find the theta at which N becomes zero(which is when it loses contact,right?)