The smallest positive number p for which the equation cos (p sin x) = sin (p cos x) has a solution in [0,2π] is