Por favor, gracias, perdón... are not the most important words to learn in Spanish. English speakers (in general) use them way too much when speaking Spanish, and they don't really have the desired effect. It is more important to greet people, for instance, before you start saying your piece.