Best drugs for studying?

I'm currently writing my master's thesis and i really need it to be perfect as i want to pursue a PhD after finishing my master's. From your own experience, what drug would be best for becoming more productive?