Any chemist can tell you that NH3 is a weak base and H2S is a weak acid. For one, you should memorize the common strong acids (your book should present this to you). Second, hydrogen sulfide's acidity can be deduced from the fact that it must be a stronger acid than water because sulfur is below oxygen (again, something that they should discuss in the textbook). As you become more knowledgeable about chemistry, you will gain an intuition about things like this.