As a Polish guy, I'd like to place a correction; the stress falls not always on the last but one syllable. In some words of foreign origin (for example: Greek, Latin), stress falls sometimes on third-last syllable, like:

These are the rules. But even the native speakers tend to forget about that...