How to steal elections