One of the first things I learned when travelling in Europe, knowing only English, was to prioritise learning the word “sorry” when preparing to enter a new country.
There’s nothing wrong with learning “hello”, “thank you” and “please”, “I am…” and “where’s the nearest…”, but if you’re going to learn one word by heart, that’s the one I’d recommend. If you get yourself in trouble, it will likely be the word you need the most.