On Gromov-Witten invariants of P^1